forked from Mapan/odoo17e
72 lines
1.6 KiB
JavaScript
72 lines
1.6 KiB
JavaScript
/** @odoo-module */
|
|
|
|
export function confirmPopup() {
|
|
return [
|
|
{
|
|
content: "confirm popup",
|
|
trigger: ".popups .modal-dialog .button.confirm",
|
|
},
|
|
];
|
|
}
|
|
export function clickTicketButton() {
|
|
return [
|
|
{
|
|
trigger: ".pos-topheader .ticket-button",
|
|
},
|
|
{
|
|
trigger: ".screen.ticket-screen",
|
|
run: () => {},
|
|
},
|
|
];
|
|
}
|
|
export function clickMenuButton() {
|
|
return [
|
|
{
|
|
content: "Click on the menu button",
|
|
trigger: ".menu-button",
|
|
},
|
|
];
|
|
}
|
|
export function closeSession() {
|
|
return [
|
|
...clickMenuButton(),
|
|
{
|
|
content: "click on the close session menu button",
|
|
trigger: ".close-button",
|
|
},
|
|
{
|
|
content: "click on the close session popup button",
|
|
trigger: ".close-pos-popup .footer .button.highlight",
|
|
},
|
|
{
|
|
content: "check that the session is closed without error",
|
|
trigger: ".o_web_client",
|
|
isCheck: true,
|
|
},
|
|
];
|
|
}
|
|
export function isCashMoveButtonHidden() {
|
|
return [
|
|
{
|
|
extraTrigger: ".pos-topheader",
|
|
trigger: ".pos-topheader:not(:contains(Cash In/Out))",
|
|
run: () => {},
|
|
},
|
|
];
|
|
}
|
|
export function isCashMoveButtonShown() {
|
|
return [
|
|
{
|
|
trigger: ".pos-topheader:contains(Cash In/Out)",
|
|
run: () => {},
|
|
},
|
|
];
|
|
}
|
|
export function endTour() {
|
|
return {
|
|
content: "Last tour step that avoids error mentioned in commit 443c209",
|
|
trigger: "body",
|
|
isCheck: true,
|
|
};
|
|
}
|