mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_test_custo: adapt test_website_theme_preview tour
Follow-up off38205873ecloses odoo/design-themes#1074 X-original-commit:861a663aebSigned-off-by: Hubert Van De Walle <huvw@odoo.com>
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
registry.category("web_tour.tours").add("website_theme_preview", {
|
||||
test: true,
|
||||
url: "/web#action=website.action_website_configuration",
|
||||
steps: () => [
|
||||
{
|
||||
@@ -13,10 +12,10 @@ registry.category("web_tour.tours").add("website_theme_preview", {
|
||||
}, {
|
||||
content: "insert website name",
|
||||
trigger: '[name="name"] input',
|
||||
run: "text Website Test",
|
||||
run: "edit Website Test",
|
||||
}, {
|
||||
content: "Validate the website creation modal",
|
||||
trigger: "button.btn-primary",
|
||||
trigger: ".modal button.btn-primary",
|
||||
run: "click",
|
||||
},
|
||||
// Configurator first screen
|
||||
@@ -26,7 +25,7 @@ registry.category("web_tour.tours").add("website_theme_preview", {
|
||||
run: "click",
|
||||
}, {
|
||||
content: "Click on the Live preview of a theme",
|
||||
trigger: ".o_theme_preview .o_button_area .btn-secondary:contains('Live Preview')",
|
||||
trigger: ".o_theme_preview button:not(:visible)",
|
||||
run: "click",
|
||||
}, {
|
||||
content: "Switch from desktop to mobile preview",
|
||||
|
||||
Reference in New Issue
Block a user