瀏覽代碼

test: skip test.yml in PRs (#8330)

David Luzar 1 年之前
父節點
當前提交
232242d2e9
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 1
      .github/workflows/test.yml
  2. 1 1
      packages/excalidraw/tests/MermaidToExcalidraw.test.tsx

+ 0 - 1
.github/workflows/test.yml

@@ -1,7 +1,6 @@
 name: Tests
 
 on:
-  pull_request:
   push:
     branches: master
 

+ 1 - 1
packages/excalidraw/tests/MermaidToExcalidraw.test.tsx

@@ -90,7 +90,7 @@ describe("Test <MermaidToExcalidraw/>", () => {
 
   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();
   });