From c290a7247ab3ad8fb7e10f6de032250b7320135d Mon Sep 17 00:00:00 2001 From: Oto Ciulis Date: Fri, 6 Dec 2024 10:49:14 -0800 Subject: [PATCH] Temp workaround --- .github/workflows/test_windows.yml | 2 +- tests/integration/example.spec.ts | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_windows.yml b/.github/workflows/test_windows.yml index 60d3f81f..add49058 100644 --- a/.github/workflows/test_windows.yml +++ b/.github/workflows/test_windows.yml @@ -35,5 +35,5 @@ jobs: uses: actions/upload-artifact@v3 with: name: screenshot - path: screenshot.png + path: screenshot*.png diff --git a/tests/integration/example.spec.ts b/tests/integration/example.spec.ts index 8ec4b5b6..3b4a57f4 100644 --- a/tests/integration/example.spec.ts +++ b/tests/integration/example.spec.ts @@ -18,5 +18,14 @@ test('has title', async () => { // Expect a title "to contain" a substring. await expect(page).toHaveTitle(/ComfyUI/); - await page.screenshot({ path: 'screenshot.png' }); + await page.screenshot({ path: 'screenshot-load.png' }); + + const getStartedButton = await page.$("button[data-testid='get-started-button']"); + + expect(getStartedButton).toBeDefined(); + + getStartedButton?.click(); + + + await page.screenshot({ path: 'screenshot-get-started.png' }); });