mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-08 12:11:07 +01:00
Hopefully fix manual device verification test (#31175)
Looks like it's failing to clear modals between tests
This commit is contained in:
parent
b8e7c725e2
commit
d9e3aa52e2
@ -11,7 +11,7 @@ import { act, fireEvent, render, screen, waitFor } from "jest-matrix-react";
|
||||
import { type MatrixClient } from "matrix-js-sdk/src/matrix";
|
||||
import { DeviceVerificationStatus } from "matrix-js-sdk/src/crypto-api";
|
||||
|
||||
import { stubClient } from "../../../../test-utils";
|
||||
import { clearAllModals, stubClient } from "../../../../test-utils";
|
||||
import { ManualDeviceKeyVerificationDialog } from "../../../../../src/components/views/dialogs/ManualDeviceKeyVerificationDialog";
|
||||
|
||||
describe("ManualDeviceKeyVerificationDialog", () => {
|
||||
@ -21,9 +21,10 @@ describe("ManualDeviceKeyVerificationDialog", () => {
|
||||
return render(<ManualDeviceKeyVerificationDialog onFinished={onFinished} />);
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
beforeEach(async () => {
|
||||
mockClient = stubClient();
|
||||
mockExistingDevices();
|
||||
await clearAllModals();
|
||||
});
|
||||
|
||||
it("should render correctly", () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user