[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) <moc@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
@@ -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',
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user