test(e2e): improve auto-link component test case #558
Annotations
4 errors and 1 notice
E2E test (base /):
e2e/tests/components/auto-link.spec.ts#L45
1) [chromium] › components/auto-link.spec.ts:8:1 › should render route-link correctly ────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #route-link a').nth(3)
Expected string: "/"
Received string: "/non-existent.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #route-link a').nth(3)
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
43 |
44 | await expect(el).toHaveAttribute('class', /route-link/)
> 45 | await expect(el).toHaveAttribute('href', results[0].replace(/^\//, BASE))
| ^
46 | }
47 | })
48 |
at /Users/runner/work/core/core/e2e/tests/components/auto-link.spec.ts:45:22
|
E2E test (base /):
e2e/tests/components/auto-link.spec.ts#L45
1) [chromium] › components/auto-link.spec.ts:8:1 › should render route-link correctly ────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #route-link a').nth(3)
Expected string: "/"
Received string: "/non-existent.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #route-link a').nth(3)
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
43 |
44 | await expect(el).toHaveAttribute('class', /route-link/)
> 45 | await expect(el).toHaveAttribute('href', results[0].replace(/^\//, BASE))
| ^
46 | }
47 | })
48 |
at /Users/runner/work/core/core/e2e/tests/components/auto-link.spec.ts:45:22
|
E2E test (base /):
e2e/tests/components/auto-link.spec.ts#L45
1) [chromium] › components/auto-link.spec.ts:8:1 › should render route-link correctly ────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #route-link a').nth(3)
Expected string: "/"
Received string: "/non-existent.html"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #route-link a').nth(3)
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
- locator resolved to <a aria-label="text" href="/non-existent.html" class="route-link auto-link">…</a>
- unexpected value "/non-existent.html"
43 |
44 | await expect(el).toHaveAttribute('class', /route-link/)
> 45 | await expect(el).toHaveAttribute('href', results[0].replace(/^\//, BASE))
| ^
46 | }
47 | })
48 |
at /Users/runner/work/core/core/e2e/tests/components/auto-link.spec.ts:45:22
|
E2E test (base /)
Process completed with exit code 1.
|
E2E test (base /)
1 failed
[chromium] › components/auto-link.spec.ts:8:1 › should render route-link correctly ─────────────
70 passed (53.8s)
|
Loading