@@ -214,7 +214,12 @@ registerWebsitePreviewTour("conditional_visibility_5", {
214214 trigger : ":iframe .s_text_image img" ,
215215 run : "click" ,
216216 } ,
217- changeOption ( "DeviceVisibility" , 'we-button[data-toggle-device-visibility="no_desktop"]' ) ,
217+ // changeOption("Column", "Visibility", "[data-action-id='toggleDeviceVisibility']"),
218+ {
219+ content : "Change visibility of the 'Text - Image' snippet" ,
220+ trigger : "[data-container-title='Column'] [data-label='Visibility'] button[data-action-id='toggleDeviceVisibility']" ,
221+ run : "click" ,
222+ } ,
218223 {
219224 content : "Check that the Column has been added in the 'Invisible Elements' panel" ,
220225 trigger : ".o_we_invisible_el_panel .o_we_invisible_entry:contains('Column')" ,
@@ -224,10 +229,15 @@ registerWebsitePreviewTour("conditional_visibility_5", {
224229 trigger : ":iframe .s_text_image" ,
225230 run : "click" ,
226231 } ,
227- changeOption ( "ConditionalVisibility" , 'we-button[data-toggle-device-visibility="no_desktop"]' ) ,
232+ // changeOption("Text - Image", "Visibility", "[data-action-id='toggleDeviceVisibility']"),
233+ {
234+ content : "Change visibility of the 'Text - Image' snippet" ,
235+ trigger : "[data-container-title='Text - Image'] [data-label='Visibility'] button[data-action-id='toggleDeviceVisibility']" ,
236+ run : "click" ,
237+ } ,
228238 {
229239 content : "Check that the 'Text - Image' is the parent of 'Column' in the 'Invisible Elements' panel" ,
230- trigger : ".o_we_invisible_el_panel .o_we_invisible_root_parent.o_we_invisible_entry:contains('Text - Image') + ul .o_we_invisible_entry.o_we_sublevel_1 :contains('Column')" ,
240+ trigger : ".o_we_invisible_el_panel .o_we_invisible_root_parent.o_we_invisible_entry:contains('Text - Image') + ul .o_we_invisible_entry.o_we_sublevel :contains('Column')" ,
231241 } ,
232242 {
233243 content : "Click on the 'Text - Image' entry on the 'Invisible Elements' panel" ,
@@ -238,7 +248,12 @@ registerWebsitePreviewTour("conditional_visibility_5", {
238248 content : "Check that the snippet is visible on the website" ,
239249 trigger : ":iframe .s_text_image.o_snippet_desktop_invisible.o_snippet_override_invisible" ,
240250 } ,
241- changeOption ( "ConditionalVisibility" , 'we-button[data-toggle-device-visibility="no_mobile"]' ) ,
251+ {
252+ content : "Change visibility of the 'Text - Image' snippet" ,
253+ trigger : "[data-container-title='Text - Image'] [data-label='Visibility'] button[data-action-id='toggleDeviceVisibility']" ,
254+ run : "click" ,
255+ } ,
256+ // changeOption("Text - Image", "Visibility", "[data-action-id='toggleDeviceVisibility']"),
242257 {
243258 content : "Check that the 'Text - Image' has been removed from the 'Invisible Elements' panel" ,
244259 trigger : ".o_we_invisible_el_panel:not(.o_we_invisible_entry:contains('Text - Image'))" ,
@@ -252,14 +267,19 @@ registerWebsitePreviewTour("conditional_visibility_5", {
252267 content : "Check that the column is visible on the website" ,
253268 trigger : ":iframe .s_text_image .row > .o_snippet_desktop_invisible.o_snippet_override_invisible" ,
254269 } ,
255- changeOption ( "DeviceVisibility" , 'we-button[data-toggle-device-visibility="no_mobile"]' ) ,
270+ // changeOption("DeviceVisibility", 'we-button[data-toggle-device-visibility="no_mobile"]'),
271+ {
272+ content : "Change visibility of the 'Text - Image' snippet" ,
273+ trigger : "[data-container-title='Column'] [data-label='Visibility'] button[data-action-id='toggleDeviceVisibility']" ,
274+ run : "click" ,
275+ } ,
256276 {
257277 content : "Check that the column has been removed from the 'Invisible Elements' panel" ,
258- trigger : "#oe_snippets :not(:has(.o_we_invisible_entry:contains('Column')))" ,
278+ trigger : ".o-snippets-menu :not(:has(.o_we_invisible_entry:contains('Column')))" ,
259279 } ,
260280 {
261281 content : "Activate mobile preview" ,
262- trigger : ".o_we_website_top_actions button[data-action='mobile']" ,
282+ trigger : ".o-snippets-top-actions button[data-action='mobile']" ,
263283 run : "click" ,
264284 } ,
265285 {
0 commit comments