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

Commit

Permalink
Fix rte flaky test (#9811)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros authored and weeman1337 committed Dec 21, 2022
1 parent a1a1907 commit 20d9eb3
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,15 @@ describe("EditWysiwygComposer", () => {
);
};

beforeAll(() => {
// Load the dynamic import
customRender(false).unmount();
});

it("Should not render the component when not ready", async () => {
// When
const { rerender } = customRender(false);
await waitFor(() => expect(screen.getByRole("textbox")).toHaveAttribute("contentEditable", "true"), {
timeout: 2000,
});
await waitFor(() => expect(screen.getByRole("textbox")).toHaveAttribute("contentEditable", "true"));

rerender(
<MatrixClientContext.Provider value={mockClient}>
Expand Down

0 comments on commit 20d9eb3

Please sign in to comment.