Skip to content

Commit

Permalink
chore: debug commit 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Jul 26, 2023
1 parent 7f5fe34 commit 0797860
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ jobs:
run: npx nx serve-compiled demo --path ${{ env.DIST }} --port ${{ env.NG_SERVER_PORT }}

- name: Run screenshot tests on ${{ env.DIST }}
continue-on-error: true
run: npx nx e2e demo-playwright

- name: Clean up resources
Expand Down
3 changes: 1 addition & 2 deletions projects/demo-playwright/tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ test(`has title`, async ({page}) => {

test(`debug screenshot`, async ({page}) => {
await page.goto(`/components/mobile-calendar`);
await page.locator(`tui-mobile-calendar-example-1 button`).click();

await expect(page.locator(`tui-dialog tui-mobile-calendar`)).toHaveScreenshot(
await expect(page.locator(`tui-mobile-calendar-example-1`)).toHaveScreenshot(

Check failure on line 13 in projects/demo-playwright/tests/example.spec.ts

View workflow job for this annotation

GitHub Actions / playwright

[chromium] › tests/example.spec.ts:10:5 › debug screenshot

1) [chromium] › tests/example.spec.ts:10:5 › debug screenshot ──────────────────────────────────── Error: Timeout 5000ms exceeded. Call log: - expect.toHaveScreenshot(test-playwright-screenshot.png) with timeout 5000ms - generating new stable screenshot expectation - waiting for locator('tui-mobile-calendar-example-1') - Timeout 5000ms exceeded. 11 | await page.goto(`/components/mobile-calendar`); 12 | > 13 | await expect(page.locator(`tui-mobile-calendar-example-1`)).toHaveScreenshot( | ^ 14 | `test-playwright-screenshot.png`, 15 | ); 16 | }); at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/example.spec.ts:13:65

Check failure on line 13 in projects/demo-playwright/tests/example.spec.ts

View workflow job for this annotation

GitHub Actions / playwright

[chromium] › tests/example.spec.ts:10:5 › debug screenshot

1) [chromium] › tests/example.spec.ts:10:5 › debug screenshot ──────────────────────────────────── Error: Timeout 5000ms exceeded. Call log: - expect.toHaveScreenshot(test-playwright-screenshot.png) with timeout 5000ms - generating new stable screenshot expectation - waiting for locator('tui-mobile-calendar-example-1') - Timeout 5000ms exceeded. 11 | await page.goto(`/components/mobile-calendar`); 12 | > 13 | await expect(page.locator(`tui-mobile-calendar-example-1`)).toHaveScreenshot( | ^ 14 | `test-playwright-screenshot.png`, 15 | ); 16 | }); at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/example.spec.ts:13:65
`test-playwright-screenshot.png`,
);
});

0 comments on commit 0797860

Please sign in to comment.