Commit 76d86137 authored by Tasso Evangelista's avatar Tasso Evangelista

Work around icon window in e2e tests

parent 6cdc30f5
......@@ -23,7 +23,13 @@ export async function startApp() {
await app.start();
await app.client.waitUntilWindowLoaded();
await app.client.windowByIndex(1);
for (let i = 0; i < (await app.client.windowHandles()).value.length; ++i) {
await app.client.windowByIndex(i);
if (await app.browserWindow.isVisible()) {
break;
}
}
logFetchInterval = setInterval(fetchLogs, 100);
}
......
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