Skip to content

Commit

Permalink
test: add e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed May 24, 2024
1 parent 26c28ed commit c2b0500
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 4 deletions.
21 changes: 20 additions & 1 deletion e2e/docs/router/navigate-by-link.md
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
<!-- TODO -->
## Markdown Links with html

- [Home with query](/?home=true)
- [Home with query and hash](/?home=true#home)
- [404 with hash](/404.html#404)
- [404 with hash and query](/404.html#404?notFound=true)

## Markdown Links with md

- [Home with query](/README.md?home=true)
- [Home with query and hash](/README.md?home=true#home)
- [404 with hash](/404.md#404)
- [404 with hash and query](/404.md#404?notFound=true)

## HTML Links

<a href="/?home=true" class="home-with-query">Home</a>
<a href="/?home=true#home" class="home-with-query-and-hash">Home</a>
<a href="/404.html#404" class="not-found-with-hash">404</a>
<a href="/404.html#404?notFound=true" class="not-found-with-hash-and-query">404</a>
81 changes: 78 additions & 3 deletions e2e/tests/router/navigate-by-link.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,82 @@ test.beforeEach(async ({ page }) => {
await page.goto('router/navigate-by-link.html')
})

test('TODO', async ({ page }) => {
// TODO
await expect(page).toHaveURL(`${BASE}router/navigate-by-link.html`)
test.describe('should preserve query', () => {
test('markdown links with html suffix', async ({ page }) => {
await page.locator('#markdown-links-with-html + ul > li > a').nth(0).click()
await expect(page).toHaveURL(`${BASE}?home=true`)
await expect(page.locator('#home-h2')).toHaveText('Home H2')
})

test('markdown links with md suffix', async ({ page }) => {
await page.locator('#markdown-links-with-md + ul > li > a').nth(0).click()
await expect(page).toHaveURL(`${BASE}?home=true`)
await expect(page.locator('#home-h2')).toHaveText('Home H2')
})

test('html links', async ({ page }) => {
await page.locator('#html-links + a').nth(0).click()

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50

Check failure on line 22 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links

1) [chromium] › router/navigate-by-link.spec.ts:21:3 › should preserve query › html links ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a').first() 20 | 21 | test('html links', async ({ page }) => { > 22 | await page.locator('#html-links + a').nth(0).click() | ^ 23 | await expect(page).toHaveURL(`${BASE}?home=true`) 24 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 25 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:22:50
await expect(page).toHaveURL(`${BASE}?home=true`)
await expect(page.locator('#home-h2')).toHaveText('Home H2')
})
})

test.describe('should preserve query and hash', () => {
test('markdown links with html suffix', async ({ page }) => {
await page.locator('#markdown-links-with-html + ul > li > a').nth(1).click()
await expect(page).toHaveURL(`${BASE}?home=true#home`)
await expect(page.locator('#home-h2')).toHaveText('Home H2')
})

test('markdown links with md suffix', async ({ page }) => {
await page.locator('#markdown-links-with-md + ul > li > a').nth(1).click()
await expect(page).toHaveURL(`${BASE}?home=true#home`)
await expect(page.locator('#home-h2')).toHaveText('Home H2')
})

test('html links', async ({ page }) => {
await page.locator('#html-links + a + a').nth(1).click()

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /home/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, vite)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54

Check failure on line 42 in e2e/tests/router/navigate-by-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, webpack)

[chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links

2) [chromium] › router/navigate-by-link.spec.ts:41:3 › should preserve query and hash › html links Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#html-links + a + a').nth(1) 40 | 41 | test('html links', async ({ page }) => { > 42 | await page.locator('#html-links + a + a').nth(1).click() | ^ 43 | await expect(page).toHaveURL(`${BASE}?home=true#home`) 44 | await expect(page.locator('#home-h2')).toHaveText('Home H2') 45 | }) at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:42:54
await expect(page).toHaveURL(`${BASE}?home=true#home`)
await expect(page.locator('#home-h2')).toHaveText('Home H2')
})
})

test.describe('should preserve hash', () => {
test('markdown links with html suffix', async ({ page }) => {
await page.locator('#markdown-links-with-html + ul > li > a').nth(2).click()
await expect(page).toHaveURL(`${BASE}404.html#404`)
await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
})

test('markdown links with md suffix', async ({ page }) => {
await page.locator('#markdown-links-with-md + ul > li > a').nth(2).click()
await expect(page).toHaveURL(`${BASE}404.html#404`)
await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
})

test('html links', async ({ page }) => {
await page.locator('#html-links + a + a + a').nth(2).click()
await expect(page).toHaveURL(`${BASE}404.html#404`)
await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
})
})

test.describe('should preserve hash and query', () => {
test('markdown links with html suffix', async ({ page }) => {
await page.locator('#markdown-links-with-html + ul > li > a').nth(3).click()
await expect(page).toHaveURL(`${BASE}404.html#404?notFound=true`)
await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
})

test('markdown links with md suffix', async ({ page }) => {
await page.locator('#markdown-links-with-md + ul > li > a').nth(3).click()
await expect(page).toHaveURL(`${BASE}404.html#404?notFound=true`)
await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
})

test('html links', async ({ page }) => {
await page.locator('#html-links + a + a + a + a').nth(3).click()
await expect(page).toHaveURL(`${BASE}404.html#404?notFound=true`)
await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
})
})

0 comments on commit c2b0500

Please sign in to comment.