11/** @odoo -module */
22
33import * as wTourUtils from '@website/js/tours/tour_utils' ;
4- import { stepUtils } from "@web_tour/tour_service/tour_utils" ;
54
65wTourUtils . registerWebsitePreviewTour ( 'theme_menu_hierarchies' , {
76 url : '/example' ,
87} , ( ) => [
9- stepUtils . waitIframeIsReady ( ) ,
108 {
119 content : 'Check Mega Menu is correctly created' ,
1210 trigger : ":iframe .top_menu a.o_mega_menu_toggle" ,
1311 run : "click" ,
1412 } , {
1513 content : 'Check Mega Menu content' ,
1614 trigger : ":iframe .top_menu div.o_mega_menu.show .fa-cube" ,
17- run : ( ) => null , // It's a check.
1815 } , {
1916 content : 'Check new top level menu is correctly created' ,
2017 trigger : ':iframe .top_menu .nav-item.dropdown .dropdown-toggle:contains("Example 1")' ,
2118 run : "click" ,
2219 } , {
2320 content : 'Check sub menu are correctly created' ,
2421 trigger : ':iframe .top_menu .dropdown-menu.show a.dropdown-item:contains("Item 1")' ,
25- run : ( ) => null , // It's a check.
2622 } , {
2723 content : 'The new menu hierarchy should not be included in the navbar' ,
2824 trigger : ':iframe body:not(:has(.top_menu a[href="/dogs"]))' ,
29- run : ( ) => null , // It's a check.
3025 } , {
3126 content : 'The new menu hierarchy should be inside the footer' ,
3227 trigger : ':iframe footer ul li a[href="/dogs"]' ,
33- run : ( ) => null , // It's a check.
3428 } ,
3529 ...wTourUtils . clickOnEditAndWaitEditMode ( ) ,
3630 {
@@ -40,30 +34,26 @@ wTourUtils.registerWebsitePreviewTour('theme_menu_hierarchies', {
4034 } , {
4135 content : 'The theme custom footer template should be listed and selected' ,
4236 trigger : '[data-container-title="Footer"] [data-label="Template"] button.btn-secondary svg.theme_test_custo_footer' ,
43- run : ( ) => null , // It's a check.
4437 } , {
4538 content : 'Click on header' ,
4639 trigger : ':iframe header' ,
4740 run : "click" ,
4841 } , {
4942 content : 'The theme custom header template should be listed and selected' ,
5043 trigger : '[data-container-title="Header"] [data-label="Template"] button.btn-secondary svg.theme_test_custo_header' ,
51- run : ( ) => null , // It's a check.
5244 } , {
5345 content : 'Click on image which has a shape' ,
5446 trigger : ':iframe #wrap .s_text_image img[data-shape]' ,
5547 run : "click" ,
5648 } , {
5749 content : 'The theme custom "Blob 01" shape should be listed and selected' ,
5850 trigger : '[data-container-title="Image"] [data-label="Shape"] div.dropdown:contains("Blob 01")' ,
59- run : ( ) => null , // It's a check.
6051 } , {
6152 content : 'Click on section which has a bg shape' ,
6253 trigger : ':iframe #wrap .s_text_block[data-oe-shape-data]' ,
6354 run : "click" ,
6455 } , {
6556 content : 'The theme custom "Curve 01" shape should be listed and selected' ,
6657 trigger : '[data-container-title="Text"] [data-label="Shape"] button.btn-secondary:contains("Curve 01")' ,
67- run : ( ) => null , // It's a check.
6858 } ,
6959] ) ;
0 commit comments