diff options
| author | Aurélien Warnon <awa@odoo.com> | 2021-01-21 10:26:17 +0000 |
|---|---|---|
| committer | Aurélien Warnon <awa@odoo.com> | 2021-01-21 10:28:59 +0000 |
| commit | f332541bc84d6110c90d4c5e736892f185fff3df (patch) | |
| tree | 01f3add49dc3506fc53b1f61b806a1f90d77fd15 | |
| parent | cefb14f79185bc135d6717e7ca8dbe5d23856371 (diff) | |
[FIX] crm: fix rainbowman nondeterministic tour issue
This commit fixes a nondeterministic issue during the rainbowman tour.
We make sure that the record is properly created and the kanban reloaded before
moving on to the next step, ensuring that the tour completes without race
conditions.
Task-2426257
closes odoo/odoo#64845
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
| -rw-r--r-- | addons/crm/static/tests/tours/crm_rainbowman.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/crm/static/tests/tours/crm_rainbowman.js b/addons/crm/static/tests/tours/crm_rainbowman.js index 9d71d92229e..3cfed895780 100644 --- a/addons/crm/static/tests/tours/crm_rainbowman.js +++ b/addons/crm/static/tests/tours/crm_rainbowman.js @@ -48,6 +48,9 @@ odoo.define('crm.tour_crm_rainbowman', function (require) { trigger: "button.o_kanban_add", content: "create lead", }, { + trigger: ".o_kanban_record .o_kanban_record_title:contains('Test Lead 2')", + run: function () {} // wait for the record to be properly created + }, { // move first test back to new stage to be able to test rainbowman a second time trigger: ".o_kanban_record .o_kanban_record_title:contains('Test Lead 1')", content: "move back to new stage", |
