Deflake ManualDeviceKeyVerificationDialog-test (#31244)
Some checks are pending
Build / Build on macos-14 (push) Waiting to run
Build / Build on ubuntu-24.04 (push) Waiting to run
Build / Build on windows-2022 (push) Waiting to run
Build and Deploy develop / Build & Deploy develop.element.io (push) Waiting to run
Deploy documentation / GitHub Pages (push) Waiting to run
Deploy documentation / deploy (push) Blocked by required conditions
Shared Component Visual Tests / Run Visual Tests (push) Waiting to run
Static Analysis / Analyse Dead Code (push) Waiting to run
Static Analysis / ESLint (push) Waiting to run
Static Analysis / Style Lint (push) Waiting to run
Static Analysis / Workflow Lint (push) Waiting to run
Static Analysis / Typescript Syntax Check (push) Waiting to run
Static Analysis / i18n Check (push) Waiting to run
Static Analysis / Rethemendex Check (push) Waiting to run

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2025-11-14 15:07:05 +00:00 committed by GitHub
parent ac0a91be9e
commit c675453d72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,9 @@ describe("ManualDeviceKeyVerificationDialog", () => {
});
// And an error is displayed
expect(screen.getByText("Failed to verify 'VERIFIED_DEVICEID': This device is already verified")).toBeVisible();
await expect(
screen.findByText("Failed to verify 'VERIFIED_DEVICEID': This device is already verified"),
).resolves.toBeVisible();
});
it("should not call crossSignDevice if device is already verified and fingerprint is wrong", async () => {