Commit 689e242c authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_web_renderjs_ui: Add a small delay during language change.

In order to stabilise UI tests which are waiting for the loading animation
to play during language change.
Pick a small delay so users should not notice (value suggested by Romain).
parent 9ce2a212
...@@ -22,7 +22,11 @@ ...@@ -22,7 +22,11 @@
.declareMethod("render", function () { .declareMethod("render", function () {
var gadget = this; var gadget = this;
return new RSVP.Queue() return new RSVP.Queue(
// Stabilise UI tests with a tiny delay, which should be unnoticeable
// to users.
RSVP.delay(200)
)
.push(function () { .push(function () {
return RSVP.all([ return RSVP.all([
gadget.getUrlForList([{command: 'history_previous'}]), gadget.getUrlForList([{command: 'history_previous'}]),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment