portal/static/tests/tours/portal.js
Данил Воробьев c5833477ca initial commit
2024-05-03 09:57:08 +00:00

34 lines
925 B
JavaScript

/** @odoo-module **/
import { registry } from "@web/core/registry";
registry.category("web_tour.tours").add('portal_load_homepage', {
test: true,
url: '/my',
steps: () => [
{
content: "Check portal is loaded",
trigger: 'a[href*="/my/account"]:contains("Edit"):first',
},
{
content: "Load my account details",
trigger: 'input[value="Joel Willis"]',
isCheck: true,
},
{
content: 'type a different phone number',
trigger: 'input[name="phone"]',
run: 'text +1 555 666 7788',
},
{
content: "Submit the form",
trigger: 'button[type=submit]',
},
{
content: "Check that we are back on the portal",
trigger: 'a[href*="/my/account"]:contains("Edit"):first',
isCheck: true,
}
]
});