Skip to content

Commit

Permalink
save testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tylersayshi committed Nov 18, 2024
1 parent 8232409 commit 8d2ed27
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions e2e/use-router.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,26 @@ test.describe('useRouter', async () => {
test(`on dynamic pages`, async ({ page }) => {
const [port, pid] = await start();
await page.goto(`http://localhost:${port}/dynamic`);
await page.click('text=Increment query');
const incrementLink = page.getByRole('link', { name: 'Increment query' });
await incrementLink.click();
await expect(page.getByTestId('query')).toHaveText('Query: 1');
await page.click('text=Increment query (push)');
const incrementButton = page.getByRole('button', {
name: 'Increment query (push)',
});
await incrementButton.click();
await expect(page.getByTestId('query')).toHaveText('Query: 2');
await terminate(pid!);
});
test(`on static pages`, async ({ page }) => {
const [port, pid] = await start();
await page.goto(`http://localhost:${port}/static`);
await page.click('text=Increment query');
const incrementLink = page.getByRole('link', { name: 'Increment query' });
await incrementLink.click();
await expect(page.getByTestId('query')).toHaveText('Query: 1');

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on macos-latest (Node 22.7.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /Users/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on macos-latest (Node 22.7.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /Users/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on macos-latest (Node 22.7.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /Users/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on macos-latest (Node 22.7.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /Users/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47

Check failure on line 141 in e2e/use-router.spec.ts

View workflow job for this annotation

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (2/4)

[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages

1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─ Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('query') Expected string: "Query: 1" Received string: "Query: 0" Call log: - expect.toHaveText with timeout 10000ms - waiting for getByTestId('query') - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" - locator resolved to <p data-testid="query">…</p> - unexpected value "Query: 0" 139 | const incrementLink = page.getByRole('link', { name: 'Increment query' }); 140 | await incrementLink.click(); > 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1'); | ^ 142 | const incrementButton = page.getByRole('button', { 143 | name: 'Increment query (push)', 144 | }); at /home/runner/work/waku/waku/e2e/use-router.spec.ts:141:47
await page.click('text=Increment query (push)');
const incrementButton = page.getByRole('button', {
name: 'Increment query (push)',
});
await incrementButton.click();
await expect(page.getByTestId('query')).toHaveText('Query: 2');
await terminate(pid!);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/waku/src/router/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ const InnerRouter = ({ routerData }: { routerData: RouterData }) => {
// Note: The router data must be a stable mutable object (array).
type RouterData = [
shouldSkip?: ShouldSkip,
locationListners?: Set<(path: string, query: string) => void>,
locationListeners?: Set<(path: string, query: string) => void>,
has404?: boolean,
];

Expand Down

0 comments on commit 8d2ed27

Please sign in to comment.