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 off38205873eX-original-commit:861a663aebPart-of: odoo/design-themes#1081 Related: odoo/odoo#210294 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
committed by
qsm-odoo
parent
bfa1fed43a
commit
d741e3ed3a
@@ -3,7 +3,6 @@
|
|||||||
import { registry } from "@web/core/registry";
|
import { registry } from "@web/core/registry";
|
||||||
|
|
||||||
registry.category("web_tour.tours").add("website_theme_preview", {
|
registry.category("web_tour.tours").add("website_theme_preview", {
|
||||||
test: true,
|
|
||||||
url: "/web#action=website.action_website_configuration",
|
url: "/web#action=website.action_website_configuration",
|
||||||
steps: () => [
|
steps: () => [
|
||||||
{
|
{
|
||||||
@@ -13,10 +12,10 @@ registry.category("web_tour.tours").add("website_theme_preview", {
|
|||||||
}, {
|
}, {
|
||||||
content: "insert website name",
|
content: "insert website name",
|
||||||
trigger: '[name="name"] input',
|
trigger: '[name="name"] input',
|
||||||
run: "text Website Test",
|
run: "edit Website Test",
|
||||||
}, {
|
}, {
|
||||||
content: "Validate the website creation modal",
|
content: "Validate the website creation modal",
|
||||||
trigger: "button.btn-primary",
|
trigger: ".modal button.btn-primary",
|
||||||
run: "click",
|
run: "click",
|
||||||
},
|
},
|
||||||
// Configurator first screen
|
// Configurator first screen
|
||||||
@@ -26,7 +25,7 @@ registry.category("web_tour.tours").add("website_theme_preview", {
|
|||||||
run: "click",
|
run: "click",
|
||||||
}, {
|
}, {
|
||||||
content: "Click on the Live preview of a theme",
|
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",
|
run: "click",
|
||||||
}, {
|
}, {
|
||||||
content: "Switch from desktop to mobile preview",
|
content: "Switch from desktop to mobile preview",
|
||||||
|
|||||||
Reference in New Issue
Block a user