Merge pull request #941 from vector-im/andybalaam/increase-timeouts-in-tests

Increase timeouts in tests to try and reduce flakiness
This commit is contained in:
Andy Balaam 2023-05-11 09:23:31 +01:00 committed by GitHub
commit f6fc792f61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,19 +48,19 @@ describe("App launch", () => {
}, },
}); });
window = await app.firstWindow(); window = await app.firstWindow();
}, 30000); }, 60000);
afterAll(async () => { afterAll(async () => {
await app?.close().catch((e) => { await app?.close().catch((e) => {
console.error(e); console.error(e);
}); });
fs.rmSync(tmpDir, { recursive: true }); fs.rmSync(tmpDir, { recursive: true });
}, 30000); }, 60000);
it("should launch and render the welcome view successfully", async () => { it("should launch and render the welcome view successfully", async () => {
await window.locator("#matrixchat").waitFor(); await window.locator("#matrixchat").waitFor();
await window.locator(".mx_Welcome").waitFor(); await window.locator(".mx_Welcome").waitFor();
await expect(window).toMatchURL("vector://vector/webapp/#/welcome"); await expect(window).toMatchURL("vector://vector/webapp/#/welcome");
await window.screenshot({ path: path.join(artifactsPath, "welcome.png") }); await window.screenshot({ path: path.join(artifactsPath, "welcome.png") });
}, 30000); }, 60000);
}); });