| 1 | import * as PosHr from "@pos_hr/../tests/tours/utils/pos_hr_helpers"; |
| 2 | import * as ProductScreen from "@point_of_sale/../tests/pos/tours/utils/product_screen_util"; |
| 3 | import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util"; |
| 4 | import * as FloorScreen from "@pos_restaurant/../tests/tours/utils/floor_screen_util"; |
| 5 | import * as SelectionPopup from "@point_of_sale/../tests/generic_helpers/selection_popup_util"; |
| 6 | import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util"; |
| 7 | import { registry } from "@web/core/registry"; |
| 8 | |
| 9 | registry.category("web_tour.tours").add("test_post_login_default_screen_is_tables", { |
| 10 | steps: () => |
| 11 | [ |
| 12 | Chrome.clickBtn("Open Register"), |
| 13 | PosHr.clickLoginButton(), |
| 14 | SelectionPopup.has("Mitchell Admin", { run: "click" }), |
| 15 | Dialog.confirm("Open Register"), |
| 16 | FloorScreen.isShown(), |
| 17 | ].flat(), |
| 18 | }); |
| 19 | |
| 20 | registry.category("web_tour.tours").add("test_post_login_default_screen_is_register", { |
| 21 | steps: () => |
| 22 | [ |
| 23 | Chrome.clickBtn("Open Register"), |
| 24 | PosHr.clickLoginButton(), |
| 25 | SelectionPopup.has("Mitchell Admin", { run: "click" }), |
| 26 | Dialog.confirm("Open Register"), |
| 27 | ProductScreen.isShown(), |
| 28 | ].flat(), |
| 29 | }); |