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