oca-ocb-pos/odoo-bringout-oca-ocb-pos_restaurant/pos_restaurant/static/tests/tours/utils/chrome.js
Ernad Husremovic 3ca647e428 19.0 vanilla
2026-03-09 09:29:53 +01:00

19 lines
533 B
JavaScript

import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util";
export function isTabActive(tabText) {
return [
{
content: "Check if the active tab contains the text" + tabText,
trigger: `.pos-leftheader span.text-bg-info:contains(${tabText})`,
},
];
}
export function closePrintingWarning() {
return [
{
...Dialog.confirm(),
content: "acknowledge printing error ( because we don't have printer in the test. )",
},
];
}