Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
EditWysiwygComposer-test: wait for the wasm to load in beforeAll (#11904
Browse files Browse the repository at this point in the history
)
  • Loading branch information
richvdh authored Nov 19, 2023
1 parent 6b73700 commit 29ed917
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ describe("EditWysiwygComposer", () => {
);
};

beforeAll(() => {
// Load the dynamic import
customRender(false).unmount();
});
beforeAll(
async () => {
// 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 () => {
// When
Expand Down

0 comments on commit 29ed917

Please sign in to comment.