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

30 lines
611 B
JavaScript

/** @odoo-module */
export function inputText(val) {
return [
{
content: `input text '${val}'`,
trigger: `.modal-dialog .popup-textarea textarea`,
run: `text ${val}`,
},
];
}
export function clickConfirm() {
return [
{
content: "confirm text input popup",
trigger: ".modal-dialog .confirm",
},
];
}
export function isShown() {
return [
{
content: "text input popup is shown",
trigger: ".modal-dialog .popup-textarea",
run: () => {},
},
];
}