fix: fix route resolving error with hash and queries (close #1561) #421
Annotations
10 errors and 3 notices
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L11
1) [chromium] › router/navigate-by-link.spec.ts:9:3 › should preserve query › markdown links with html suffix
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/?home=true"
Received string: "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
9 | test('markdown links with html suffix', async ({ page }) => {
10 | await page.locator('#markdown-links-with-html + ul > li > a').nth(0).click()
> 11 | await expect(page).toHaveURL(`${BASE}?home=true`)
| ^
12 | await expect(page.locator('#home-h2')).toHaveText('Home H2')
13 | })
14 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:11:24
|
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L11
1) [chromium] › router/navigate-by-link.spec.ts:9:3 › should preserve query › markdown links with html suffix
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/?home=true"
Received string: "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
9 | test('markdown links with html suffix', async ({ page }) => {
10 | await page.locator('#markdown-links-with-html + ul > li > a').nth(0).click()
> 11 | await expect(page).toHaveURL(`${BASE}?home=true`)
| ^
12 | await expect(page.locator('#home-h2')).toHaveText('Home H2')
13 | })
14 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:11:24
|
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L11
1) [chromium] › router/navigate-by-link.spec.ts:9:3 › should preserve query › markdown links with html suffix
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/?home=true"
Received string: "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
9 | test('markdown links with html suffix', async ({ page }) => {
10 | await page.locator('#markdown-links-with-html + ul > li > a').nth(0).click()
> 11 | await expect(page).toHaveURL(`${BASE}?home=true`)
| ^
12 | await expect(page.locator('#home-h2')).toHaveText('Home H2')
13 | })
14 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:11:24
|
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L31
2) [chromium] › router/navigate-by-link.spec.ts:29:3 › should preserve query and hash › markdown links with html suffix
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/?home=true#home"
Received string: "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
29 | test('markdown links with html suffix', async ({ page }) => {
30 | await page.locator('#markdown-links-with-html + ul > li > a').nth(1).click()
> 31 | await expect(page).toHaveURL(`${BASE}?home=true#home`)
| ^
32 | await expect(page.locator('#home-h2')).toHaveText('Home H2')
33 | })
34 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:31:24
|
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L31
2) [chromium] › router/navigate-by-link.spec.ts:29:3 › should preserve query and hash › markdown links with html suffix
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/?home=true#home"
Received string: "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
29 | test('markdown links with html suffix', async ({ page }) => {
30 | await page.locator('#markdown-links-with-html + ul > li > a').nth(1).click()
> 31 | await expect(page).toHaveURL(`${BASE}?home=true#home`)
| ^
32 | await expect(page.locator('#home-h2')).toHaveText('Home H2')
33 | })
34 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:31:24
|
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L31
2) [chromium] › router/navigate-by-link.spec.ts:29:3 › should preserve query and hash › markdown links with html suffix
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/?home=true#home"
Received string: "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
29 | test('markdown links with html suffix', async ({ page }) => {
30 | await page.locator('#markdown-links-with-html + ul > li > a').nth(1).click()
> 31 | await expect(page).toHaveURL(`${BASE}?home=true#home`)
| ^
32 | await expect(page.locator('#home-h2')).toHaveText('Home H2')
33 | })
34 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:31:24
|
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L51
3) [chromium] › router/navigate-by-link.spec.ts:49:3 › should preserve hash › markdown links with html suffix
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/404.html#404"
Received string: "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
49 | test('markdown links with html suffix', async ({ page }) => {
50 | await page.locator('#markdown-links-with-html + ul > li > a').nth(2).click()
> 51 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
52 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
53 | })
54 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:51:24
|
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L51
3) [chromium] › router/navigate-by-link.spec.ts:49:3 › should preserve hash › markdown links with html suffix
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/404.html#404"
Received string: "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
49 | test('markdown links with html suffix', async ({ page }) => {
50 | await page.locator('#markdown-links-with-html + ul > li > a').nth(2).click()
> 51 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
52 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
53 | })
54 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:51:24
|
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L51
3) [chromium] › router/navigate-by-link.spec.ts:49:3 › should preserve hash › markdown links with html suffix
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/404.html#404"
Received string: "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://127.0.0.1:9080/e2e/router/navigate-by-link.html"
49 | test('markdown links with html suffix', async ({ page }) => {
50 | await page.locator('#markdown-links-with-html + ul > li > a').nth(2).click()
> 51 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
52 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
53 | })
54 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:51:24
|
E2E test (base /e2e/):
e2e/tests/router/navigate-by-link.spec.ts#L63
4) [chromium] › router/navigate-by-link.spec.ts:61:3 › should preserve hash › html links ─────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/e2e/404.html#404"
Received string: "http://127.0.0.1:9080/404.html#404"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html>…</html>
- unexpected value "http://127.0.0.1:9080/404.html#404"
- locator resolved to <html>…</html>
- unexpected value "http://127.0.0.1:9080/404.html#404"
- locator resolved to <html>…</html>
- unexpected value "http://127.0.0.1:9080/404.html#404"
- locator resolved to <html>…</html>
- unexpected value "http://127.0.0.1:9080/404.html#404"
- locator resolved to <html>…</html>
- unexpected value "http://127.0.0.1:9080/404.html#404"
- locator resolved to <html>…</html>
- unexpected value "http://127.0.0.1:9080/404.html#404"
- locator resolved to <html>…</html>
- unexpected value "http://127.0.0.1:9080/404.html#404"
- locator resolved to <html>…</html>
- unexpected value "http://127.0.0.1:9080/404.html#404"
- locator resolved to <html>…</html>
- unexpected value "http://127.0.0.1:9080/404.html#404"
61 | test('html links', async ({ page }) => {
62 | await page.locator('#html-links + p > a').nth(2).click()
> 63 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
64 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
65 | })
66 | })
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:63:24
|
E2E test (base /e2e/)
6 failed
[chromium] › router/navigate-by-link.spec.ts:9:3 › should preserve query › markdown links with html suffix
[chromium] › router/navigate-by-link.spec.ts:29:3 › should preserve query and hash › markdown links with html suffix
[chromium] › router/navigate-by-link.spec.ts:49:3 › should preserve hash › markdown links with html suffix
[chromium] › router/navigate-by-link.spec.ts:61:3 › should preserve hash › html links ──────────
[chromium] › router/navigate-by-link.spec.ts:69:3 › should preserve hash and query › markdown links with html suffix
[chromium] › router/navigate-by-link.spec.ts:81:3 › should preserve hash and query › html links
58 passed (1.9m)
|
E2E test (base /)
64 passed (16.7s)
|
E2E test (base /)
61 passed (11.5s)
|
Loading