소스 검색

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
 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();
   });
   });