refactor(core): reuse inferRoutePath #519
Annotations
10 errors and 1 notice
e2e/tests/components/auto-link.spec.ts#L28
1) [chromium] › components/auto-link.spec.ts:24:1 › should render config correctly ───────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #config a').first()
Expected string: "/"
Received string: "/index.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #config a').first()
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
26 |
27 | await expect(locator.nth(0)).toHaveText('text1')
> 28 | await expect(locator.nth(0)).toHaveAttribute('href', BASE)
| ^
29 | await expect(locator.nth(0)).toHaveAttribute('aria-label', 'label')
30 |
31 | await expect(locator.nth(1)).toHaveText('text2')
at /Users/runner/work/core/core/e2e/tests/components/auto-link.spec.ts:28:32
|
e2e/tests/components/auto-link.spec.ts#L28
1) [chromium] › components/auto-link.spec.ts:24:1 › should render config correctly ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #config a').first()
Expected string: "/"
Received string: "/index.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #config a').first()
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
26 |
27 | await expect(locator.nth(0)).toHaveText('text1')
> 28 | await expect(locator.nth(0)).toHaveAttribute('href', BASE)
| ^
29 | await expect(locator.nth(0)).toHaveAttribute('aria-label', 'label')
30 |
31 | await expect(locator.nth(1)).toHaveText('text2')
at /Users/runner/work/core/core/e2e/tests/components/auto-link.spec.ts:28:32
|
e2e/tests/components/auto-link.spec.ts#L28
1) [chromium] › components/auto-link.spec.ts:24:1 › should render config correctly ───────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #config a').first()
Expected string: "/"
Received string: "/index.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #config a').first()
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link">…</a>
- unexpected value "/index.html"
26 |
27 | await expect(locator.nth(0)).toHaveText('text1')
> 28 | await expect(locator.nth(0)).toHaveAttribute('href', BASE)
| ^
29 | await expect(locator.nth(0)).toHaveAttribute('aria-label', 'label')
30 |
31 | await expect(locator.nth(1)).toHaveText('text2')
at /Users/runner/work/core/core/e2e/tests/components/auto-link.spec.ts:28:32
|
e2e/tests/components/auto-link.spec.ts#L44
2) [chromium] › components/auto-link.spec.ts:40:1 › should append attrs correctly ────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #attrs a').first()
Expected string: "/"
Received string: "/index.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #attrs a').first()
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
42 |
43 | await expect(locator.nth(0)).toHaveText('text1')
> 44 | await expect(locator.nth(0)).toHaveAttribute('href', BASE)
| ^
45 | await expect(locator.nth(0)).toHaveAttribute('aria-label', 'label')
46 | await expect(locator.nth(0)).toHaveAttribute('class', /class/)
47 | await expect(locator.nth(0)).not.toHaveAttribute('icon')
at /Users/runner/work/core/core/e2e/tests/components/auto-link.spec.ts:44:32
|
e2e/tests/components/auto-link.spec.ts#L44
2) [chromium] › components/auto-link.spec.ts:40:1 › should append attrs correctly ────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #attrs a').first()
Expected string: "/"
Received string: "/index.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #attrs a').first()
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
42 |
43 | await expect(locator.nth(0)).toHaveText('text1')
> 44 | await expect(locator.nth(0)).toHaveAttribute('href', BASE)
| ^
45 | await expect(locator.nth(0)).toHaveAttribute('aria-label', 'label')
46 | await expect(locator.nth(0)).toHaveAttribute('class', /class/)
47 | await expect(locator.nth(0)).not.toHaveAttribute('icon')
at /Users/runner/work/core/core/e2e/tests/components/auto-link.spec.ts:44:32
|
e2e/tests/components/auto-link.spec.ts#L44
2) [chromium] › components/auto-link.spec.ts:40:1 › should append attrs correctly ────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #attrs a').first()
Expected string: "/"
Received string: "/index.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #attrs a').first()
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
- locator resolved to <a href="/index.html" aria-label="label" class="route-link auto-link class">…</a>
- unexpected value "/index.html"
42 |
43 | await expect(locator.nth(0)).toHaveText('text1')
> 44 | await expect(locator.nth(0)).toHaveAttribute('href', BASE)
| ^
45 | await expect(locator.nth(0)).toHaveAttribute('aria-label', 'label')
46 | await expect(locator.nth(0)).toHaveAttribute('class', /class/)
47 | await expect(locator.nth(0)).not.toHaveAttribute('icon')
at /Users/runner/work/core/core/e2e/tests/components/auto-link.spec.ts:44:32
|
e2e/tests/components/route-link.spec.ts#L170
3) [chromium] › components/route-link.spec.ts:145:1 › should render hash and query correctly ─────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first()
Expected string: "/#hash"
Received string: "/index.html#hash"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first()
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
168 | await expect(
169 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index),
> 170 | ).toHaveAttribute('href', href)
| ^
171 | }
172 | })
173 |
at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:170:7
|
e2e/tests/components/route-link.spec.ts#L170
3) [chromium] › components/route-link.spec.ts:145:1 › should render hash and query correctly ─────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first()
Expected string: "/#hash"
Received string: "/index.html#hash"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first()
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
168 | await expect(
169 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index),
> 170 | ).toHaveAttribute('href', href)
| ^
171 | }
172 | })
173 |
at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:170:7
|
e2e/tests/components/route-link.spec.ts#L170
3) [chromium] › components/route-link.spec.ts:145:1 › should render hash and query correctly ─────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first()
Expected string: "/#hash"
Received string: "/index.html#hash"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first()
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
- locator resolved to <a class="route-link" href="/index.html#hash">text</a>
- unexpected value "/index.html#hash"
168 | await expect(
169 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index),
> 170 | ).toHaveAttribute('href', href)
| ^
171 | }
172 | })
173 |
at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:170:7
|
e2e/tests/components/route-link.spec.ts#L187
4) [chromium] › components/route-link.spec.ts:174:1 › should render relative links correctly ─────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #relative + ul > li a').first()
Expected string: "/"
Received string: "/index.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #relative + ul > li a').first()
- locator resolved to <a class="route-link" href="/index.html">text</a>
- unexpected value "/index.html"
- locator resolved to <a class="route-link" href="/index.html">text</a>
- unexpected value "/index.html"
- locator resolved to <a class="route-link" href="/index.html">text</a>
- unexpected value "/index.html"
- locator resolved to <a class="route-link" href="/index.html">text</a>
- unexpected value "/index.html"
- locator resolved to <a class="route-link" href="/index.html">text</a>
- unexpected value "/index.html"
- locator resolved to <a class="route-link" href="/index.html">text</a>
- unexpected value "/index.html"
- locator resolved to <a class="route-link" href="/index.html">text</a>
- unexpected value "/index.html"
- locator resolved to <a class="route-link" href="/index.html">text</a>
- unexpected value "/index.html"
- locator resolved to <a class="route-link" href="/index.html">text</a>
- unexpected value "/index.html"
185 | await expect(
186 | page.locator('.e2e-theme-content #relative + ul > li a').nth(index),
> 187 | ).toHaveAttribute('href', href)
| ^
188 | }
189 | })
190 |
at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:187:7
|
11 failed
[chromium] › components/auto-link.spec.ts:24:1 › should render config correctly ────────────────
[chromium] › components/auto-link.spec.ts:40:1 › should append attrs correctly ─────────────────
[chromium] › components/route-link.spec.ts:145:1 › should render hash and query correctly ──────
[chromium] › components/route-link.spec.ts:174:1 › should render relative links correctly ──────
[chromium] › router/navigate-by-link.spec.ts:9:3 › markdown links › should navigate to home correctly
[chromium] › router/navigate-by-link.spec.ts:21:3 › markdown links › should preserve query ─────
[chromium] › router/navigate-by-link.spec.ts:27:3 › markdown links › should preserve query and hash
[chromium] › router/navigate-by-link.spec.ts:85:3 › markdown links with html paths › should navigate to home correctly
[chromium] › router/navigate-by-router.spec.ts:8:1 › should navigate to home correctly ─────────
[chromium] › router/navigate-by-router.spec.ts:20:1 › should preserve query ────────────────────
[chromium] › router/navigate-by-router.spec.ts:26:1 › should preserve query and hash ───────────
60 passed (3.7m)
|
The logs for this run have expired and are no longer available.
Loading