ソースを参照

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

David Luzar 11 ヶ月 前
コミット
232242d2e9

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

@@ -1,7 +1,6 @@
 name: Tests
 name: Tests
 
 
 on:
 on:
-  pull_request:
   push:
   push:
     branches: master
     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 () => {
   it("should open mermaid popup when active tool is mermaid", async () => {
     const dialog = document.querySelector(".ttd-dialog")!;
     const dialog = document.querySelector(".ttd-dialog")!;
-    await waitFor(() => dialog.querySelector("canvas"));
+    await waitFor(() => expect(dialog.querySelector("canvas")).not.toBeNull());
     expect(dialog.outerHTML).toMatchSnapshot();
     expect(dialog.outerHTML).toMatchSnapshot();
   });
   });