[IMP] website: mark check steps with isCheck: true in link tour
Related to runbot-57204 X-original-commit: 072a94f81b6d24e3ec1a823826753b46d65a8847 Part-of: odoo/odoo#154679
This commit is contained in:
@@ -87,7 +87,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "The link should have the secondary button style.",
|
||||
trigger: 'iframe .s_text_image a.btn.btn-secondary[href="http://odoo.be"]:contains("odoo website")',
|
||||
run: () => {}, // It's a check.
|
||||
isCheck: true,
|
||||
},
|
||||
// 4. Add link on image.
|
||||
...wTourUtils.clickOnEditAndWaitEditMode(),
|
||||
@@ -119,12 +119,12 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Check that the second image is not within a link.",
|
||||
trigger: 'iframe .s_three_columns .row > :nth-child(2) div > img',
|
||||
run: () => {}, // It's a check.
|
||||
isCheck: true,
|
||||
},
|
||||
{
|
||||
content: "Check that link tools appear.",
|
||||
trigger: 'iframe .popover div a:contains("http://odoo.com")',
|
||||
run: () => {}, // It's a check.
|
||||
isCheck: true,
|
||||
},
|
||||
// 5. Remove link from image.
|
||||
{
|
||||
@@ -134,7 +134,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Check that image is not within a link anymore.",
|
||||
trigger: 'iframe .s_three_columns .row > :nth-child(1) div > img',
|
||||
run: () => {}, // It's a check.
|
||||
isCheck: true,
|
||||
},
|
||||
// 6. Add mega menu with Cards template and edit URL on text-selected card.
|
||||
wTourUtils.clickOnElement("menu link", "iframe header .nav-item a"),
|
||||
@@ -158,7 +158,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Wait for drop",
|
||||
trigger: '.oe_menu_editor:first-child:contains("Mega")',
|
||||
run: () => {}, // This is a check.
|
||||
isCheck: true,
|
||||
},
|
||||
wTourUtils.clickOnElement("Save button", ".btn-primary:contains('Save')"),
|
||||
wTourUtils.clickOnElement("mega menu", "iframe header .o_mega_menu_toggle"),
|
||||
@@ -173,7 +173,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Check nothing is lost",
|
||||
trigger: "iframe header .s_mega_menu_cards a[href='https://www.odoo.com']:has(img):has(h4):has(p)",
|
||||
run: () => {}, // This is a check.
|
||||
isCheck: true,
|
||||
},
|
||||
// 7. Create new a link from a URL-like text.
|
||||
{
|
||||
@@ -198,7 +198,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
// input at input[name=url]
|
||||
content: "Check that link was created",
|
||||
trigger: "iframe .s_text_image p a[href='http://odoo.com']:contains('odoo.com')",
|
||||
run: () => null,
|
||||
isCheck: true,
|
||||
},
|
||||
{
|
||||
content: "Click on link to open the link tools",
|
||||
@@ -213,7 +213,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Check that link was updated",
|
||||
trigger: "iframe .s_text_image p a[href='https://odoo.com']:contains('odoo.com')",
|
||||
run: () => null,
|
||||
isCheck: true,
|
||||
},
|
||||
{
|
||||
content: "Change it back http",
|
||||
@@ -223,7 +223,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Check that link was updated",
|
||||
trigger: "iframe .s_text_image p a[href='http://odoo.com']:contains('odoo.com')",
|
||||
run: () => null,
|
||||
isCheck: true,
|
||||
},
|
||||
// 9. Test conversion between http and mailto links.
|
||||
{
|
||||
@@ -234,7 +234,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Check that link was updated and link content is synced with URL",
|
||||
trigger: "iframe .s_text_image p a[href='mailto:callme@maybe.com']:contains('callme@maybe.com')",
|
||||
run: () => null,
|
||||
isCheck: true,
|
||||
},
|
||||
{
|
||||
content: "Change URL back into a http one",
|
||||
@@ -257,7 +257,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Popover should be shown",
|
||||
trigger: "iframe .o_edit_menu_popover .o_we_url_link:contains('http://callmemaybe.com')",
|
||||
run: () => null,
|
||||
isCheck: true,
|
||||
},
|
||||
*/
|
||||
{
|
||||
@@ -277,7 +277,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Check that links's href was updated",
|
||||
trigger: "iframe .s_text_image p a[href='http://callmemaybe.com/shop']:contains('callmemaybe.com/shop')",
|
||||
run: () => null,
|
||||
isCheck: true,
|
||||
},
|
||||
// TODO this step is disabled for now because it is a cause of race
|
||||
// condition (last check: 57 over 162 tries failed on this). The popover
|
||||
@@ -287,7 +287,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Check popover content is up-to-date",
|
||||
trigger: "iframe .popover div a:contains('http://callmemaybe.com/shop')",
|
||||
run: () => null,
|
||||
isCheck: true,
|
||||
},
|
||||
*/
|
||||
{
|
||||
@@ -312,7 +312,7 @@ wTourUtils.registerWebsitePreviewTour('link_tools', {
|
||||
{
|
||||
content: "Check that links's href and label were updated",
|
||||
trigger: "iframe .s_text_image p a[href='/contactus']:contains('/contactus')",
|
||||
run: () => null,
|
||||
isCheck: true,
|
||||
},
|
||||
// 12. Add a link leading to a 404 page
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user