Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website: fix race condition on snippet drag and drop tour
A mega-tour was introduced with [1] to test every single snippet. This tour, despite being very useful as it tests the core behavior of the website builder, is creating a lot of race conditions. This commit should prevent one of those race condition: When the step was removing the snippet, it was then clicking on the "Blocks" tab to get ready to drag and drop the next snippet. The issue was that in some cases, it would click on the "Blocks" tab before the snippet removal process was fully done. Basically, when the race condition happened, it was the same as doing: ``` $('we-button.oe_snippet_remove:first').click(); $('.o_we_add_snippet_btn').click(); ``` which, when done in the browser console, will result in the same visual than the screenshots on the failing runbot builds. [1]: odoo@460d5ec task-2726529 closes odoo#82169 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
- Loading branch information