Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tonai committed Jan 20, 2025
1 parent 5ff136f commit d32638b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("MarkdownEditor component", () => {
test("it render the MarkdownEditor component", async () => {
render(<MarkdownEditor content="# Hello World" />);
// Wait for the loader
await waitFor(() => expect(screen.queryAllByRole("button").length).toEqual(18));
await waitFor(() => expect(screen.queryAllByRole("button").length).toEqual(19));
const title = screen.getByText("Hello World");
expect(title).toBeInTheDocument();
expect(title instanceof HTMLHeadingElement).toBe(true);
Expand Down

0 comments on commit d32638b

Please sign in to comment.