Debian Codegraph @

addons/portal/static/tests/tours/portal.js

raw
1 import { registry } from "@web/core/registry";
2
3 registry.category("web_tour.tours").add("portal_load_homepage", {
4 url: "/my",
5 steps: () => [
6 {
7 content: "Check portal is loaded",
8 trigger: 'a[href*="/my/account"]:contains("Edit"):first',
9 run: "click",
10 expectUnloadPage: true,
11 },
12 {
13 content: "Load my account details",
14 trigger: 'input[value="Joel Willis"]',
15 run: "click",
16 },
17 {
18 content: "type a different phone number",
19 trigger: 'input[name="phone"]',
20 run: "edit +1 555 666 7788",
21 },
22 {
23 content: "Submit the form",
24 trigger: "button[id=save_address]",
25 run: "click",
26 expectUnloadPage: true,
27 },
28 {
29 content: "Check that we are back on the portal",
30 trigger: 'a[href*="/my/account"]:contains("Edit"):first',
31 },
32 ],
33 });