diff options
| author | Christophe Monniez <moc@odoo.com> | 2020-10-27 09:39:48 +0000 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2020-10-28 08:39:03 +0000 |
| commit | b261ab598c7a18bbe6590114aa171d61ea9c2767 (patch) | |
| tree | a3222d49129670f6af3bf04ce66187fef60b6892 /addons | |
| parent | 00497c03db080914fed81dc3fc66fa5d45f65a4e (diff) | |
[FIX] test_event_full: add a step after event registration
When an event is registered during the tour, a link is clicked without
waiting for any result.
As a consequence, the tour stops and the browser cookies are cleaned.
This leads to random failures because sometimes the remaining requests
generated by the link click have enough time to be completed and
sometimes not.
With this commit a simple step is added, that waits for the clicked link
page to be loaded.
closes odoo/odoo#60875
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/test_event_full/static/src/js/tours/wevent_register_tour.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/test_event_full/static/src/js/tours/wevent_register_tour.js b/addons/test_event_full/static/src/js/tours/wevent_register_tour.js index 2d44644cdb3..782b3fea0c0 100644 --- a/addons/test_event_full/static/src/js/tours/wevent_register_tour.js +++ b/addons/test_event_full/static/src/js/tours/wevent_register_tour.js @@ -113,6 +113,9 @@ var registerSteps = [{ content: "Click on 'register favorites talks' button", trigger: 'a:contains("register to your favorites talks now")', run: 'click', +}, { + trigger: 'h1:contains("Book your talks")', + run: function() {}, }]; /** |
