Deflake unskippable verification (#28222)

Discovering what is the correct way of asserting that an element is *not*
on screen with Playwright, which apparently is nontrivial.
pull/28230/head
David Baker 2024-10-17 15:44:53 +01:00 committed by GitHub
parent 0c19991e3c
commit 1fc0122523
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ test.describe("Login", () => {
const h1 = await page.getByRole("heading", { name: "Verify this device", level: 1 }); const h1 = await page.getByRole("heading", { name: "Verify this device", level: 1 });
await expect(h1).toBeVisible(); await expect(h1).toBeVisible();
expect(h1.locator(".mx_CompleteSecurity_skip")).not.toBeVisible(); await expect(h1.locator(".mx_CompleteSecurity_skip")).toHaveCount(0);
}); });
}); });
}); });