feat: add route option (close #1505) #425
Annotations
10 errors and 2 notices
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L87
1) [chromium] › router/navigate-by-link.spec.ts:85:3 › should preserve hash › markdown clean links
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404"
Received string: "http://127.0.0.1:9080/404#404"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
85 | test('markdown clean links', async ({ page }) => {
86 | await page.locator('#markdown-clean-links + ul > li > a').nth(2).click()
> 87 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
88 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
89 | })
90 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:87:24
|
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L87
1) [chromium] › router/navigate-by-link.spec.ts:85:3 › should preserve hash › markdown clean links
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404"
Received string: "http://127.0.0.1:9080/404#404"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
85 | test('markdown clean links', async ({ page }) => {
86 | await page.locator('#markdown-clean-links + ul > li > a').nth(2).click()
> 87 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
88 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
89 | })
90 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:87:24
|
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L87
1) [chromium] › router/navigate-by-link.spec.ts:85:3 › should preserve hash › markdown clean links
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404"
Received string: "http://127.0.0.1:9080/404#404"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
85 | test('markdown clean links', async ({ page }) => {
86 | await page.locator('#markdown-clean-links + ul > li > a').nth(2).click()
> 87 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
88 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
89 | })
90 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:87:24
|
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L99
2) [chromium] › router/navigate-by-link.spec.ts:97:3 › should preserve hash › html clean links ───
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404"
Received string: "http://127.0.0.1:9080/404#404"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
97 | test('html clean links', async ({ page }) => {
98 | await page.locator('#html-clean-links + p > a').nth(2).click()
> 99 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
100 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
101 | })
102 | })
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:99:24
|
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L99
2) [chromium] › router/navigate-by-link.spec.ts:97:3 › should preserve hash › html clean links ───
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404"
Received string: "http://127.0.0.1:9080/404#404"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
97 | test('html clean links', async ({ page }) => {
98 | await page.locator('#html-clean-links + p > a').nth(2).click()
> 99 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
100 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
101 | })
102 | })
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:99:24
|
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L99
2) [chromium] › router/navigate-by-link.spec.ts:97:3 › should preserve hash › html clean links ───
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404"
Received string: "http://127.0.0.1:9080/404#404"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404"
97 | test('html clean links', async ({ page }) => {
98 | await page.locator('#html-clean-links + p > a').nth(2).click()
> 99 | await expect(page).toHaveURL(`${BASE}404.html#404`)
| ^
100 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
101 | })
102 | })
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:99:24
|
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L119
3) [chromium] › router/navigate-by-link.spec.ts:117:3 › should preserve hash and query › markdown clean links
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404?notFound=true"
Received string: "http://127.0.0.1:9080/404#404?notFound=true"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
117 | test('markdown clean links', async ({ page }) => {
118 | await page.locator('#markdown-clean-links + ul > li > a').nth(3).click()
> 119 | await expect(page).toHaveURL(`${BASE}404.html#404?notFound=true`)
| ^
120 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
121 | })
122 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:119:24
|
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L119
3) [chromium] › router/navigate-by-link.spec.ts:117:3 › should preserve hash and query › markdown clean links
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404?notFound=true"
Received string: "http://127.0.0.1:9080/404#404?notFound=true"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
117 | test('markdown clean links', async ({ page }) => {
118 | await page.locator('#markdown-clean-links + ul > li > a').nth(3).click()
> 119 | await expect(page).toHaveURL(`${BASE}404.html#404?notFound=true`)
| ^
120 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
121 | })
122 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:119:24
|
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L119
3) [chromium] › router/navigate-by-link.spec.ts:117:3 › should preserve hash and query › markdown clean links
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404?notFound=true"
Received string: "http://127.0.0.1:9080/404#404?notFound=true"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
117 | test('markdown clean links', async ({ page }) => {
118 | await page.locator('#markdown-clean-links + ul > li > a').nth(3).click()
> 119 | await expect(page).toHaveURL(`${BASE}404.html#404?notFound=true`)
| ^
120 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
121 | })
122 |
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:119:24
|
E2E test (base /):
e2e/tests/router/navigate-by-link.spec.ts#L131
4) [chromium] › router/navigate-by-link.spec.ts:129:3 › should preserve hash and query › html clean links
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://127.0.0.1:9080/404.html#404?notFound=true"
Received string: "http://127.0.0.1:9080/404#404?notFound=true"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://127.0.0.1:9080/404#404?notFound=true"
129 | test('html clean links', async ({ page }) => {
130 | await page.locator('#html-clean-links + p > a').nth(3).click()
> 131 | await expect(page).toHaveURL(`${BASE}404.html#404?notFound=true`)
| ^
132 | await expect(page.locator('#notfound-h2')).toHaveText('NotFound H2')
133 | })
134 | })
at /Users/runner/work/core/core/e2e/tests/router/navigate-by-link.spec.ts:131:24
|
E2E test (base /)
76 passed (23.9s)
|
E2E test (base /)
4 failed
[chromium] › router/navigate-by-link.spec.ts:85:3 › should preserve hash › markdown clean links
[chromium] › router/navigate-by-link.spec.ts:97:3 › should preserve hash › html clean links ────
[chromium] › router/navigate-by-link.spec.ts:117:3 › should preserve hash and query › markdown clean links
[chromium] › router/navigate-by-link.spec.ts:129:3 › should preserve hash and query › html clean links
69 passed (1.4m)
|
Loading