summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant
diff options
context:
space:
mode:
Diffstat (limited to 'addons/pos_restaurant')
-rw-r--r--addons/pos_restaurant/static/tests/tours/FloorScreen.tour.js2
-rw-r--r--addons/pos_restaurant/static/tests/tours/helpers/FloorScreenTourMethods.js9
2 files changed, 10 insertions, 1 deletions
diff --git a/addons/pos_restaurant/static/tests/tours/FloorScreen.tour.js b/addons/pos_restaurant/static/tests/tours/FloorScreen.tour.js
index f4e12080305..af52936264c 100644
--- a/addons/pos_restaurant/static/tests/tours/FloorScreen.tour.js
+++ b/addons/pos_restaurant/static/tests/tours/FloorScreen.tour.js
@@ -93,7 +93,7 @@ odoo.define('pos_restaurant.tour.FloorScreen', function (require) {
// Opening product screen in main floor should go back to main floor
FloorScreen.do.clickEdit();
FloorScreen.check.editModeIsActive(false);
- FloorScreen.check.hasTable('T4');
+ FloorScreen.check.tableIsNotSelected('T4');
FloorScreen.do.clickTable('T4');
ProductScreen.check.isShown();
Chrome.check.backToFloorTextIs('Main Floor', 'T4');
diff --git a/addons/pos_restaurant/static/tests/tours/helpers/FloorScreenTourMethods.js b/addons/pos_restaurant/static/tests/tours/helpers/FloorScreenTourMethods.js
index b6e614357f0..733fd26d90a 100644
--- a/addons/pos_restaurant/static/tests/tours/helpers/FloorScreenTourMethods.js
+++ b/addons/pos_restaurant/static/tests/tours/helpers/FloorScreenTourMethods.js
@@ -140,6 +140,15 @@ odoo.define('pos_restaurant.tour.FloorScreenTourMethods', function (require) {
},
];
}
+ tableIsNotSelected(name) {
+ return [
+ {
+ content: `table '${name}' is not selected`,
+ trigger: `.floor-map .table:not(.selected) .label:contains("${name}")`,
+ run: function () {},
+ },
+ ];
+ }
}
class Execute {}