Remove redundant sleep from playwright test (#12667)

Nobody seems to know why this is here. Let's get rid of it and see what
happens.
pull/28217/head
Richard van der Hoff 2024-06-21 10:18:09 +01:00 committed by GitHub
parent 2d8c23e806
commit 132669fd28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -40,8 +40,6 @@ test.describe("Device verification", () => {
// Visit the login page of the app, to load the matrix sdk // Visit the login page of the app, to load the matrix sdk
await page.goto("/#/login"); await page.goto("/#/login");
await page.pause();
// wait for the page to load // wait for the page to load
await page.waitForSelector(".mx_AuthPage", { timeout: 30000 }); await page.waitForSelector(".mx_AuthPage", { timeout: 30000 });
@ -54,8 +52,6 @@ test.describe("Device verification", () => {
aliceBotClient.setCredentials(credentials); aliceBotClient.setCredentials(credentials);
const mxClientHandle = await aliceBotClient.prepareClient(); const mxClientHandle = await aliceBotClient.prepareClient();
await page.waitForTimeout(20000);
expectedBackupVersion = await mxClientHandle.evaluate(async (mxClient) => { expectedBackupVersion = await mxClientHandle.evaluate(async (mxClient) => {
return await mxClient.getCrypto()!.getActiveSessionBackupVersion(); return await mxClient.getCrypto()!.getActiveSessionBackupVersion();
}); });