mirror of https://github.com/vector-im/riot-web
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
parent
0c19991e3c
commit
1fc0122523
|
@ -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 New Issue