From 232242d2e90c7f78730a609b9d11f37f1d289177 Mon Sep 17 00:00:00 2001 From: David Luzar <5153846+dwelle@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:04:04 +0200 Subject: [PATCH] test: skip test.yml in PRs (#8330) --- .github/workflows/test.yml | 1 - packages/excalidraw/tests/MermaidToExcalidraw.test.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac66fe1adc..7d454ecfc4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,6 @@ name: Tests on: - pull_request: push: branches: master diff --git a/packages/excalidraw/tests/MermaidToExcalidraw.test.tsx b/packages/excalidraw/tests/MermaidToExcalidraw.test.tsx index 101c26e5bf..05727a0f4e 100644 --- a/packages/excalidraw/tests/MermaidToExcalidraw.test.tsx +++ b/packages/excalidraw/tests/MermaidToExcalidraw.test.tsx @@ -90,7 +90,7 @@ describe("Test ", () => { it("should open mermaid popup when active tool is mermaid", async () => { const dialog = document.querySelector(".ttd-dialog")!; - await waitFor(() => dialog.querySelector("canvas")); + await waitFor(() => expect(dialog.querySelector("canvas")).not.toBeNull()); expect(dialog.outerHTML).toMatchSnapshot(); });