mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
test: fix mermaid test flake (#7249)
This commit is contained in:
parent
9006caff39
commit
3c96943db3
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
import { act, fireEvent, render } from "./test-utils";
|
||||
import { act, fireEvent, render, waitFor } from "./test-utils";
|
||||
import { Excalidraw } from "../packages/excalidraw/index";
|
||||
import React from "react";
|
||||
import { expect, vi } from "vitest";
|
||||
|
@ -111,7 +111,7 @@ describe("Test <MermaidToExcalidraw/>", () => {
|
|||
|
||||
it("should open mermaid popup when active tool is mermaid", async () => {
|
||||
const dialog = document.querySelector(".dialog-mermaid")!;
|
||||
|
||||
await waitFor(() => dialog.querySelector("canvas"));
|
||||
expect(dialog.outerHTML).toMatchSnapshot();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue