summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/tests/tours/helpers/TipScreenTourMethods.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/pos_restaurant/static/tests/tours/helpers/TipScreenTourMethods.js')
-rw-r--r--addons/pos_restaurant/static/tests/tours/helpers/TipScreenTourMethods.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/addons/pos_restaurant/static/tests/tours/helpers/TipScreenTourMethods.js b/addons/pos_restaurant/static/tests/tours/helpers/TipScreenTourMethods.js
index e0ba53ecb63..8895d566c31 100644
--- a/addons/pos_restaurant/static/tests/tours/helpers/TipScreenTourMethods.js
+++ b/addons/pos_restaurant/static/tests/tours/helpers/TipScreenTourMethods.js
@@ -49,12 +49,8 @@ odoo.define('pos_restaurant.tour.TipScreenTourMethods', function (require) {
inputAmountIs(amount) {
return [
{
- trigger: `.tip-screen .custom-amount-form input`,
- run: function() {
- if (this.$anchor.val().indexOf(amount) === -1) {
- throw new Error(`".tip-screen .custom-amount-form input" element does not contain ${amount}.`)
- };
- },
+ trigger: `.tip-screen .custom-amount-form input[data-amount="${amount}"]`,
+ run: () => {},
}
]
}