Skip to content

Commit d6f4fb3

Browse files
committed
[IMP] website: adapt snippet_carousel_autoplay tour
`snippet_carousel_autoplay` tour was broken and disabled after the new website builder changes. This commit adapts the tour steps accordingly and re-enables the related test.
1 parent 65f084c commit d6f4fb3

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,12 @@ registerWebsitePreviewTour("snippet_carousel_autoplay", {
119119
...clickOnSnippet(".carousel .carousel-item.active"),
120120
{
121121
content: "Decrease the interval between slides",
122-
trigger: "we-input[data-attribute-name='bsInterval'] input",
122+
trigger: "div[data-label='Speed'] input",
123123
run: 'edit 3',
124124
},
125-
{
126-
content: "Save the interval between slides",
127-
trigger: "we-input[data-attribute-name='bsInterval']",
128-
run: 'click',
129-
},
130125
{
131126
content: "Enable the autoplay option",
132-
trigger: ".autoplay we-checkbox",
127+
trigger: "div[data-label='Autoplay'] input",
133128
run: 'click',
134129
},
135130
...clickOnSave(),

addons/website/tests/test_ui.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,6 @@ def test_website_edit_menus_delete_parent(self):
771771
def test_snippet_carousel(self):
772772
self.start_tour('/', 'snippet_carousel', login='admin')
773773

774-
@unittest.skip
775774
def test_snippet_carousel_autoplay(self):
776775
self.start_tour("/", "snippet_carousel_autoplay", login="admin")
777776

0 commit comments

Comments
 (0)