Skip to content

Commit 0e102b9

Browse files
committed
[IMP] website: adapt test_snippet_carousel_autoplay tour
1 parent b8c7cbd commit 0e102b9

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

+2-7
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

-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,6 @@ def test_website_edit_menus_delete_parent(self):
774774
def test_snippet_carousel(self):
775775
self.start_tour('/', 'snippet_carousel', login='admin')
776776

777-
@unittest.skip
778777
def test_snippet_carousel_autoplay(self):
779778
self.start_tour("/", "snippet_carousel_autoplay", login="admin")
780779

0 commit comments

Comments
 (0)