You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
EditWysiwygComposer-test: wait for the wasm to load in beforeAll (#11904)
This commit is contained in:
committed by
GitHub
parent
6b73700b05
commit
29ed91749e
@ -54,10 +54,16 @@ describe("EditWysiwygComposer", () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(
|
||||||
// Load the dynamic import
|
async () => {
|
||||||
customRender(false).unmount();
|
// Load the dynamic import
|
||||||
});
|
const component = customRender(false);
|
||||||
|
await component.findByRole("textbox");
|
||||||
|
component.unmount();
|
||||||
|
},
|
||||||
|
// it can take a while to load the wasm
|
||||||
|
20000,
|
||||||
|
);
|
||||||
|
|
||||||
it("Should not render the component when not ready", async () => {
|
it("Should not render the component when not ready", async () => {
|
||||||
// When
|
// When
|
||||||
|
Reference in New Issue
Block a user