1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/point_of_sale/static/tests/tours/helpers/SelectionPopupTourMethods.js
2024-12-10 09:04:09 +07:00

30 lines
636 B
JavaScript

/** @odoo-module */
export function clickItem(name) {
return [
{
content: `click selection '${name}'`,
trigger: `.selection-item:contains("${name}")`,
},
];
}
export function hasSelectionItem(name) {
return [
{
content: `selection popup has '${name}'`,
trigger: `.selection-item:contains("${name}")`,
run: () => {},
},
];
}
export function isShown() {
return [
{
content: "selection popup is shown",
trigger: ".modal-dialog .popup-selection",
run: () => {},
},
];
}