Skip to content

Commit

Permalink
[FIX] web: race condition for widget_x2many test
Browse files Browse the repository at this point in the history
A step triggers an onchange before the return of the fields_view_get, the
result is a traceback in the view. Typically this bug happens if the
network is very slow (or the user extremely fast).
  • Loading branch information
Gorash committed Dec 14, 2017
1 parent cd7f4eb commit 16c3bbe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/web/static/test/x2many.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ Tour.register({
element: '.oe_form_button_edit',
},

{
title: "delay to remove race condition",
wait: 250, // next step triggers an onchange before the return of the fields_view_get
},

{
title: "edit title",
waitFor: ".oe_form_editable",
Expand Down

0 comments on commit 16c3bbe

Please sign in to comment.