Skip to content

Commit

Permalink
[FIX] web: add a small delay before starting clickEverywhere
Browse files Browse the repository at this point in the history
When the clickEverywhere js test is started with base only, the
web client opens the first app by default (see openFirstApp call in
web_client.js). Unfortunately, the test clicks immediately on the apps
menu and the client does not invalidate openFirstApp.
Then, when trying to click on a filter, it does not exists anymore and
leads to a timeout.

The present timeout should solve the problem without refactoring the web
client.

closes odoo#33339

Signed-off-by: Christophe Monniez (moc) <[email protected]>
  • Loading branch information
d-fence committed May 13, 2019
1 parent de4278c commit babef9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/web/static/src/js/tools/test_menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@
}
}

// Main function that starts orchestration of tests
function clickEverywhere(){
setTimeout(_clickEverywhere, 1000);
}

// Main function that starts orchestration of tests
function _clickEverywhere(){
console.log("Starting ClickEverywhere test");
var startTime = performance.now()
createWebClientHooks();
Expand Down

0 comments on commit babef9e

Please sign in to comment.