61 lines
1.7 KiB
JavaScript
61 lines
1.7 KiB
JavaScript
import { registry } from "@web/core/registry";
|
|
|
|
registry.category("web_tour.tours").add("required_fields_tour", {
|
|
steps: () => [
|
|
{
|
|
content: "Click on Check in",
|
|
trigger: ".btn:contains('Check in')",
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Filling the details",
|
|
trigger: "input#company",
|
|
run: "edit Office",
|
|
},
|
|
{
|
|
content: "Filling the details",
|
|
trigger: "input#name",
|
|
run: "edit Test_Tour_2",
|
|
},
|
|
{
|
|
content: "Filling the details",
|
|
trigger: "input#phone",
|
|
run: "edit 1234567890",
|
|
},
|
|
{
|
|
content: "Filling the details",
|
|
trigger: "input#email",
|
|
run: "edit test@example.com",
|
|
},
|
|
{
|
|
content: "Click on the check in button",
|
|
trigger: ".btn-primary:contains('Check In')",
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Click on Browse All Hosts button",
|
|
trigger: ".btn:contains('Browse All Hosts')",
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Search for host in manual selection",
|
|
trigger: 'input[placeholder="Search..."]',
|
|
run: "edit Test",
|
|
},
|
|
{
|
|
content: "Select the host from the card list",
|
|
trigger: '.card:contains("Test Host Employee")',
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Click on the Continue button",
|
|
trigger: ".btn:contains('Continue')",
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Check that we reached on the last page",
|
|
trigger: "h1:contains('You have been registered!')",
|
|
},
|
|
],
|
|
});
|