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.
This commit is contained in:
parent
0c19991e3c
commit
1fc0122523
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ test.describe("Login", () => {
|
|||
const h1 = await page.getByRole("heading", { name: "Verify this device", level: 1 });
|
||||
await expect(h1).toBeVisible();
|
||||
|
||||
expect(h1.locator(".mx_CompleteSecurity_skip")).not.toBeVisible();
|
||||
await expect(h1.locator(".mx_CompleteSecurity_skip")).toHaveCount(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue