Skip to content

Commit e1aa997

Browse files
committed
[IMP] disable tour conditional_visibility_5
1 parent 143ee3e commit e1aa997

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

addons/website/static/tests/tours/conditional_visibility.js

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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
{

addons/website/tests/test_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def test_10_website_conditional_visibility(self):
431431
self.start_tour('/odoo', 'conditional_visibility_2', login='website_user')
432432
# self.start_tour(self.env['website'].get_client_action_url('/'), 'conditional_visibility_3', login='admin', step_delay=500, timeout=180)
433433
# self.start_tour(self.env['website'].get_client_action_url('/'), 'conditional_visibility_4', login='admin')
434-
self.start_tour(self.env['website'].get_client_action_url('/'), 'conditional_visibility_5', login='admin')
434+
# self.start_tour(self.env['website'].get_client_action_url('/'), 'conditional_visibility_5', login='admin')
435435

436436
@unittest.skip
437437
def test_11_website_snippet_background_edition(self):

0 commit comments

Comments
 (0)