mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 18:55:58 +03:00
playwright: remove flaky check (#28260)
This sometimes happens too quickly for us to test. Fixes: #27585
This commit is contained in:
parent
5e5949257c
commit
3c8ac6fc49
1 changed files with 3 additions and 6 deletions
|
@ -114,13 +114,10 @@ test.describe("Cryptography", function () {
|
||||||
await dialog.getByRole("button", { name: "Continue" }).click();
|
await dialog.getByRole("button", { name: "Continue" }).click();
|
||||||
await copyAndContinue(page);
|
await copyAndContinue(page);
|
||||||
|
|
||||||
// When the device is verified, the `Setting up keys` step is skipped
|
// If the device is unverified, there should be a "Setting up keys" step; however, it
|
||||||
if (!isDeviceVerified) {
|
// can be quite quick, and playwright can miss it, so we can't test for it.
|
||||||
const uiaDialogTitle = page.locator(".mx_InteractiveAuthDialog .mx_Dialog_title");
|
|
||||||
await expect(uiaDialogTitle.getByText("Setting up keys")).toBeVisible();
|
|
||||||
await expect(uiaDialogTitle.getByText("Setting up keys")).not.toBeVisible();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// Either way, we end up at a success dialog:
|
||||||
await expect(dialog.getByText("Secure Backup successful")).toBeVisible();
|
await expect(dialog.getByText("Secure Backup successful")).toBeVisible();
|
||||||
await dialog.getByRole("button", { name: "Done" }).click();
|
await dialog.getByRole("button", { name: "Done" }).click();
|
||||||
await expect(dialog.getByText("Secure Backup successful")).not.toBeVisible();
|
await expect(dialog.getByText("Secure Backup successful")).not.toBeVisible();
|
||||||
|
|
Loading…
Reference in a new issue