forked from Mapan/odoo17e
58 lines
1.6 KiB
JavaScript
58 lines
1.6 KiB
JavaScript
/** @odoo-module **/
|
|
|
|
import { registry } from "@web/core/registry";
|
|
|
|
registry.category("web_tour.tours").add("required_fields_tour", {
|
|
test: true,
|
|
steps: () => [
|
|
{
|
|
content: "Click on Check in",
|
|
trigger: ".btn:contains('Check in')",
|
|
},
|
|
{
|
|
content: "Filling the details",
|
|
trigger: "input#company",
|
|
run: "text Office",
|
|
},
|
|
{
|
|
content: "Filling the details",
|
|
trigger: "input#name",
|
|
run: "text Test_Tour_2",
|
|
},
|
|
{
|
|
content: "Filling the details",
|
|
trigger: "input#phone",
|
|
run: "text 1234567890",
|
|
},
|
|
{
|
|
content: "Filling the details",
|
|
trigger: "input#email",
|
|
run: "text test@example.com",
|
|
},
|
|
{
|
|
content: "Click on the check in button",
|
|
trigger: ".btn-primary:contains('Check In')",
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Clicking on the selection field",
|
|
trigger: 'input[type="text"]',
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Select the host from the dropdown",
|
|
trigger: '.ui-autocomplete.dropdown-menu a:contains("Mitchell Admin")',
|
|
},
|
|
{
|
|
content: "Click on the check in button",
|
|
trigger: ".btn:contains('Confirm')",
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Check that we reached on the last page",
|
|
trigger: "h1:contains('You have been registered!')",
|
|
isCheck: true,
|
|
},
|
|
],
|
|
});
|