From a58192fae4a271e3fbea12effbf53a1473ef4320 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 12 May 2021 09:47:46 +0000 Subject: [PATCH] [FIX] sale_timesheet: fix randomly failing tour Before this commit, the wrong many2one value could have been selected in the tour, making it fail later on with the following error: ``` AssertionError: The test code "odoo.startTour('sale_timesheet_tour')" failed Tour sale_timesheet_tour failed at step Click on this stat button to see the SO linked to the SOL of the task. (trigger: button[name="action_view_so"]) ``` closes odoo/odoo#70789 X-original-commit: 4210d7663600027d39ccb88b0bcd6e1422f2d452 Signed-off-by: Christophe Monniez (moc) Signed-off-by: Aaron Bohy (aab) --- .../sale_timesheet/static/tests/tours/sale_timesheet_tour.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js b/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js index 7ec13918753..83c071f1f05 100644 --- a/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js +++ b/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js @@ -18,7 +18,7 @@ tour.register('sale_timesheet_tour', { actions.text('Brandon Freeman', this.$anchor.find('input')); }, }, { - trigger: 'ul.o_partner_autocomplete_dropdown > li:first-child > a', + trigger: 'ul.o_partner_autocomplete_dropdown > li:first-child > a:contains(Freeman)', content: 'Select the first item on the autocomplete dropdown', run: 'click', }, @@ -195,7 +195,7 @@ tour.register('sale_timesheet_tour', { actions.text('Azure Interior, Brandon Freeman', this.$anchor.find('input')); }, }, { - trigger: 'ul.o_partner_autocomplete_dropdown > li:first-child > a', + trigger: 'ul.o_partner_autocomplete_dropdown > li:first-child > a:contains(Freeman)', content: 'Select the customer in the autocomplete dropdown', run: 'click', }, {