From e3cf794cc1be22ee1dcada7b49d8ffe8a99f8664 Mon Sep 17 00:00:00 2001 From: "Simon Genin (ges)" Date: Wed, 29 Sep 2021 13:02:57 +0000 Subject: [PATCH] [IMP] test_lint: add no-dupe-class-members rule closes odoo/odoo#77719 X-original-commit: 591a94f6278abf51b114fd43870874c6ea8364ab Signed-off-by: Aaron Bohy (aab) --- .../tests/tours/helpers/PaymentScreenTourMethods.js | 8 -------- odoo/addons/test_lint/tests/test_eslint.py | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/addons/point_of_sale/static/tests/tours/helpers/PaymentScreenTourMethods.js b/addons/point_of_sale/static/tests/tours/helpers/PaymentScreenTourMethods.js index 93a5cef6aa7..89beb0fef07 100644 --- a/addons/point_of_sale/static/tests/tours/helpers/PaymentScreenTourMethods.js +++ b/addons/point_of_sale/static/tests/tours/helpers/PaymentScreenTourMethods.js @@ -36,14 +36,6 @@ odoo.define('point_of_sale.tour.PaymentScreenTourMethods', function (require) { ]; } - clickTipButton() { - return [ - { - trigger: `.payment-buttons .js_tip`, - }, - ]; - } - clickInvoiceButton() { return [{ content: 'click invoice button', trigger: '.payment-buttons .js_invoice' }]; } diff --git a/odoo/addons/test_lint/tests/test_eslint.py b/odoo/addons/test_lint/tests/test_eslint.py index e4465f96979..2ec61a5c091 100644 --- a/odoo/addons/test_lint/tests/test_eslint.py +++ b/odoo/addons/test_lint/tests/test_eslint.py @@ -13,7 +13,8 @@ RULES = ('{' '"no-undef": "error",' '"no-restricted-globals": ["error", "event", "self"],' '"no-const-assign": ["error"],' - '"no-debugger": ["error"]' + '"no-debugger": ["error"],' + '"no-dupe-class-members": ["error"]' '}' ) PARSER_OPTIONS = '{ecmaVersion: 2019, sourceType: module}'