[FIX] web: add a small delay before starting clickEverywhere
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/odoo#33339 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user