Skip to content

Commit cdc0150

Browse files
hubvdqsm-odoo
authored andcommitted
[FIX] theme_test_custo: adapt test_website_theme_preview tour
Follow-up of f382058 X-original-commit: d741e3e Part-of: #1082 Related: odoo/odoo#210890 Signed-off-by: Quentin Smetz (qsm) <[email protected]>
1 parent e0b3b87 commit cdc0150

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

theme_test_custo/static/tests/tours/website_theme_preview.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { registry } from "@web/core/registry";
44

55
registry.category("web_tour.tours").add("website_theme_preview", {
6-
test: true,
76
url: "/web#action=website.action_website_configuration",
87
steps: () => [
98
{
@@ -13,10 +12,10 @@ registry.category("web_tour.tours").add("website_theme_preview", {
1312
}, {
1413
content: "insert website name",
1514
trigger: '[name="name"] input',
16-
run: "text Website Test",
15+
run: "edit Website Test",
1716
}, {
1817
content: "Validate the website creation modal",
19-
trigger: "button.btn-primary",
18+
trigger: ".modal button.btn-primary",
2019
run: "click",
2120
},
2221
// Configurator first screen
@@ -26,7 +25,7 @@ registry.category("web_tour.tours").add("website_theme_preview", {
2625
run: "click",
2726
}, {
2827
content: "Click on the Live preview of a theme",
29-
trigger: ".o_theme_preview .o_button_area .btn-secondary:contains('Live Preview')",
28+
trigger: ".o_theme_preview button:not(:visible)",
3029
run: "click",
3130
}, {
3231
content: "Switch from desktop to mobile preview",

0 commit comments

Comments
 (0)