feat: auto-format using lint-staged and husky #44
Annotations
9 errors, 1 warning, and 1 notice
[chromium] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments:
tests/playwright/fragment-plugin.spec.ts#L51
1) [chromium] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments ──
Error: Timed out 3000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#list h2')
Expected string: "Green Items"
Received string: "All Items"
Call log:
- expect.toHaveText with timeout 3000ms
- waiting for locator('#list h2')
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
49 |
50 | /* #list was updated in the cache of /detail/ */
> 51 | await expect(page.locator('#list h2')).toHaveText('Green Items');
| ^
52 | });
53 |
54 | test('should not scroll', async ({ page }) => {
at /home/runner/work/fragment-plugin/fragment-plugin/tests/playwright/fragment-plugin.spec.ts:51:42
|
[chromium] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments:
tests/playwright/fragment-plugin.spec.ts#L51
1) [chromium] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments ──
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 3000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#list h2')
Expected string: "Green Items"
Received string: "All Items"
Call log:
- expect.toHaveText with timeout 3000ms
- waiting for locator('#list h2')
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
49 |
50 | /* #list was updated in the cache of /detail/ */
> 51 | await expect(page.locator('#list h2')).toHaveText('Green Items');
| ^
52 | });
53 |
54 | test('should not scroll', async ({ page }) => {
at /home/runner/work/fragment-plugin/fragment-plugin/tests/playwright/fragment-plugin.spec.ts:51:42
|
[firefox] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments:
tests/playwright/fragment-plugin.spec.ts#L51
2) [firefox] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments ───
Error: Timed out 3000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#list h2')
Expected string: "Green Items"
Received string: "All Items"
Call log:
- expect.toHaveText with timeout 3000ms
- waiting for locator('#list h2')
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
49 |
50 | /* #list was updated in the cache of /detail/ */
> 51 | await expect(page.locator('#list h2')).toHaveText('Green Items');
| ^
52 | });
53 |
54 | test('should not scroll', async ({ page }) => {
at /home/runner/work/fragment-plugin/fragment-plugin/tests/playwright/fragment-plugin.spec.ts:51:42
|
[firefox] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments:
tests/playwright/fragment-plugin.spec.ts#L51
2) [firefox] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments ───
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 3000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#list h2')
Expected string: "Green Items"
Received string: "All Items"
Call log:
- expect.toHaveText with timeout 3000ms
- waiting for locator('#list h2')
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
49 |
50 | /* #list was updated in the cache of /detail/ */
> 51 | await expect(page.locator('#list h2')).toHaveText('Green Items');
| ^
52 | });
53 |
54 | test('should not scroll', async ({ page }) => {
at /home/runner/work/fragment-plugin/fragment-plugin/tests/playwright/fragment-plugin.spec.ts:51:42
|
[webkit] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments:
tests/playwright/fragment-plugin.spec.ts#L51
3) [webkit] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments ────
Error: Timed out 3000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#list h2')
Expected string: "Green Items"
Received string: "All Items"
Call log:
- expect.toHaveText with timeout 3000ms
- waiting for locator('#list h2')
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
49 |
50 | /* #list was updated in the cache of /detail/ */
> 51 | await expect(page.locator('#list h2')).toHaveText('Green Items');
| ^
52 | });
53 |
54 | test('should not scroll', async ({ page }) => {
at /home/runner/work/fragment-plugin/fragment-plugin/tests/playwright/fragment-plugin.spec.ts:51:42
|
[webkit] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments:
tests/playwright/fragment-plugin.spec.ts#L51
3) [webkit] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 3000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#list h2')
Expected string: "Green Items"
Received string: "All Items"
Call log:
- expect.toHaveText with timeout 3000ms
- waiting for locator('#list h2')
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
- locator resolved to <h2>All Items</h2>
- unexpected value "All Items"
49 |
50 | /* #list was updated in the cache of /detail/ */
> 51 | await expect(page.locator('#list h2')).toHaveText('Green Items');
| ^
52 | });
53 |
54 | test('should not scroll', async ({ page }) => {
at /home/runner/work/fragment-plugin/fragment-plugin/tests/playwright/fragment-plugin.spec.ts:51:42
|
[webkit] › fragment-plugin.spec.ts:17:2 › Fragment Plugin › should ignore visits without a matching rule:
tests/playwright/fragment-plugin.spec.ts#L12
4) [webkit] › fragment-plugin.spec.ts:17:2 › Fragment Plugin › should ignore visits without a matching rule
Test timeout of 10000ms exceeded while running "beforeEach" hook.
10 |
11 | test.describe('Fragment Plugin', () => {
> 12 | test.beforeEach(async ({ page }) => {
| ^
13 | await page.goto('/');
14 | await waitForSwup(page);
15 | });
at /home/runner/work/fragment-plugin/fragment-plugin/tests/playwright/fragment-plugin.spec.ts:12:7
|
[webkit] › fragment-plugin.spec.ts:17:2 › Fragment Plugin › should ignore visits without a matching rule:
tests/playwright/inc/commands.ts#L13
4) [webkit] › fragment-plugin.spec.ts:17:2 › Fragment Plugin › should ignore visits without a matching rule
Error: page.waitForSelector: Test timeout of 10000ms exceeded.
Call log:
- waiting for locator('html.swup-enabled') to be visible
at inc/commands.ts:13
11 |
12 | export async function waitForSwup(page: Page) {
> 13 | await page.waitForSelector('html.swup-enabled');
| ^
14 | }
15 |
16 | export function sleep(timeout = 0): Promise<void> {
at waitForSwup (/home/runner/work/fragment-plugin/fragment-plugin/tests/playwright/inc/commands.ts:13:13)
at /home/runner/work/fragment-plugin/fragment-plugin/tests/playwright/fragment-plugin.spec.ts:14:9
|
E2E tests
Process completed with exit code 1.
|
E2E tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
🎭 Playwright Run Summary
3 failed
[chromium] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments ───
[firefox] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments ────
[webkit] › fragment-plugin.spec.ts:42:2 › Fragment Plugin › should cache foreign fragments ─────
1 flaky
[webkit] › fragment-plugin.spec.ts:17:2 › Fragment Plugin › should ignore visits without a matching rule
8 passed (1.4m)
|