Debian Codegraph @

addons/pos_restaurant/static/tests/tours/utils/chrome.js

raw
1 import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util";
2
3 export function isTabActive(tabText) {
4 return [
5 {
6 content: "Check if the active tab contains the text" + tabText,
7 trigger: `.pos-leftheader span.text-bg-info:contains(${tabText})`,
8 },
9 ];
10 }
11
12 export function closePrintingWarning() {
13 return [
14 {
15 ...Dialog.confirm(),
16 content: "acknowledge printing error ( because we don't have printer in the test. )",
17 },
18 ];
19 }