refactor: remove temp page files and load page component via bundler (close #1584) #522
Annotations
10 errors and 1 notice
e2e/tests/client-config/non-default-export.spec.ts#L7
1) [chromium] › client-config/non-default-export.spec.ts:3:1 › should apply styles correctly if the client config file does not have default export
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('#non-default-export')
Expected string: "123px"
Received: <element(s) not found>
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('#non-default-export')
5 | }) => {
6 | await page.goto('client-config/non-default-export.html')
> 7 | await expect(page.locator('#non-default-export')).toHaveCSS(
| ^
8 | 'font-size',
9 | '123px',
10 | )
at /home/runner/work/core/core/e2e/tests/client-config/non-default-export.spec.ts:7:53
|
e2e/tests/client-config/non-default-export.spec.ts#L7
1) [chromium] › client-config/non-default-export.spec.ts:3:1 › should apply styles correctly if the client config file does not have default export
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('#non-default-export')
Expected string: "123px"
Received: <element(s) not found>
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('#non-default-export')
5 | }) => {
6 | await page.goto('client-config/non-default-export.html')
> 7 | await expect(page.locator('#non-default-export')).toHaveCSS(
| ^
8 | 'font-size',
9 | '123px',
10 | )
at /home/runner/work/core/core/e2e/tests/client-config/non-default-export.spec.ts:7:53
|
e2e/tests/client-config/non-default-export.spec.ts#L7
1) [chromium] › client-config/non-default-export.spec.ts:3:1 › should apply styles correctly if the client config file does not have default export
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('#non-default-export')
Expected string: "123px"
Received: <element(s) not found>
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('#non-default-export')
5 | }) => {
6 | await page.goto('client-config/non-default-export.html')
> 7 | await expect(page.locator('#non-default-export')).toHaveCSS(
| ^
8 | 'font-size',
9 | '123px',
10 | )
at /home/runner/work/core/core/e2e/tests/client-config/non-default-export.spec.ts:7:53
|
e2e/tests/client-config/root-components.spec.ts#L6
2) [chromium] › client-config/root-components.spec.ts:3:1 › should render root components correctly
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.root-component-from-theme p')
Expected string: "root component from theme"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.root-component-from-theme p')
4 | await page.goto('', { waitUntil: 'domcontentloaded' })
5 |
> 6 | await expect(page.locator('.root-component-from-theme p')).toHaveText(
| ^
7 | 'root component from theme',
8 | )
9 | await expect(page.locator('.root-component-from-user-config p')).toHaveText(
at /home/runner/work/core/core/e2e/tests/client-config/root-components.spec.ts:6:62
|
e2e/tests/client-config/root-components.spec.ts#L6
2) [chromium] › client-config/root-components.spec.ts:3:1 › should render root components correctly
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.root-component-from-theme p')
Expected string: "root component from theme"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.root-component-from-theme p')
4 | await page.goto('', { waitUntil: 'domcontentloaded' })
5 |
> 6 | await expect(page.locator('.root-component-from-theme p')).toHaveText(
| ^
7 | 'root component from theme',
8 | )
9 | await expect(page.locator('.root-component-from-user-config p')).toHaveText(
at /home/runner/work/core/core/e2e/tests/client-config/root-components.spec.ts:6:62
|
e2e/tests/client-config/root-components.spec.ts#L6
2) [chromium] › client-config/root-components.spec.ts:3:1 › should render root components correctly
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.root-component-from-theme p')
Expected string: "root component from theme"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.root-component-from-theme p')
4 | await page.goto('', { waitUntil: 'domcontentloaded' })
5 |
> 6 | await expect(page.locator('.root-component-from-theme p')).toHaveText(
| ^
7 | 'root component from theme',
8 | )
9 | await expect(page.locator('.root-component-from-user-config p')).toHaveText(
at /home/runner/work/core/core/e2e/tests/client-config/root-components.spec.ts:6:62
|
e2e/tests/components/route-link.spec.ts#L52
3) [chromium] › components/route-link.spec.ts:37:1 › should render active status correctly ───────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #active + ul > li a').first()
Expected string: "route-link route-link-active"
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #active + ul > li a').first()
50 | await expect(
51 | page.locator('.e2e-theme-content #active + ul > li a').nth(index),
> 52 | ).toHaveAttribute('class', className)
| ^
53 | }
54 | })
55 |
at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:52:7
|
e2e/tests/components/route-link.spec.ts#L52
3) [chromium] › components/route-link.spec.ts:37:1 › should render active status correctly ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #active + ul > li a').first()
Expected string: "route-link route-link-active"
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #active + ul > li a').first()
50 | await expect(
51 | page.locator('.e2e-theme-content #active + ul > li a').nth(index),
> 52 | ).toHaveAttribute('class', className)
| ^
53 | }
54 | })
55 |
at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:52:7
|
e2e/tests/components/route-link.spec.ts#L52
3) [chromium] › components/route-link.spec.ts:37:1 › should render active status correctly ───────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #active + ul > li a').first()
Expected string: "route-link route-link-active"
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #active + ul > li a').first()
50 | await expect(
51 | page.locator('.e2e-theme-content #active + ul > li a').nth(index),
> 52 | ).toHaveAttribute('class', className)
| ^
53 | }
54 | })
55 |
at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:52:7
|
e2e/tests/components/route-link.spec.ts#L67
4) [chromium] › components/route-link.spec.ts:56:1 › should render class correctly ───────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.e2e-theme-content #class + ul > li a').first()
Expected string: "route-link custom-class"
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.e2e-theme-content #class + ul > li a').first()
65 | await expect(
66 | page.locator('.e2e-theme-content #class + ul > li a').nth(index),
> 67 | ).toHaveAttribute('class', className)
| ^
68 | }
69 | })
70 |
at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:67:7
|
61 failed
[chromium] › client-config/non-default-export.spec.ts:3:1 › should apply styles correctly if the client config file does not have default export
[chromium] › client-config/root-components.spec.ts:3:1 › should render root components correctly
[chromium] › components/route-link.spec.ts:37:1 › should render active status correctly ────────
[chromium] › components/route-link.spec.ts:56:1 › should render class correctly ────────────────
[chromium] › components/route-link.spec.ts:71:1 › should render attributes correctly ───────────
[chromium] › components/route-link.spec.ts:114:1 › should render slots 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] › hmr.spec.ts:57:3 › should update content correctly ────────────────────────────────
[chromium] › hmr.spec.ts:67:3 › should update frontmatter correctly ────────────────────────────
[chromium] › hmr.spec.ts:79:3 › should update title correctly ──────────────────────────────────
[chromium] › hmr.spec.ts:96:3 › should update content and frontmatter and title correctly after navigation
[chromium] › imports/style-exports.spec.ts:3:1 › should load dynamic imported styles correctly ─
[chromium] › imports/style-exports.spec.ts:12:1 › should load static imported styles correctly ─
[chromium] › layouts.spec.ts:3:1 › CustomLayout ────────────────────────────────────────────────
[chromium] › layouts.spec.ts:10:1 › Layout ─────────────────────────────────────────────────────
[chromium] › layouts.spec.ts:17:1 › NotFound ───────────────────────────────────────────────────
[chromium] › markdown/anchors.spec.ts:3:1 › should render anchors and navigate correctly ───────
[chromium] › markdown/images.spec.ts:3:1 › should render images correctly ──────────────────────
[chromium] › markdown/links.spec.ts:4:1 › should render links and navigate between pages correctly
[chromium] › page-data.spec.ts:4:3 › title › should use title from frontmatter ─────────────────
[chromium] › page-data.spec.ts:9:3 › title › should use title from h1 ──────────────────────────
[chromium] › page-data.spec.ts:16:3 › frontmatter › should set frontmatter correctly ───────────
[chromium] › router/navigate-by-link.spec.ts:9:3 › markdown links › should navigate to home correctly
[chromium] › router/navigate-by-link.spec.ts:15:3 › markdown links › should navigate to 404 page 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:33:3 › markdown links › should preserve hash ──────
[chromium] › router/navigate-by-link.spec.ts:39:3 › markdown links › should preserve hash and query
[chromium] › router/navigate-by-link.spec.ts:47:3 › html links › should navigate to home correctly
[chromium] › router/navigate-by-link.spec.ts:53:3 › html links › should navigate to 404 page correctly
[chromium] › router/navigate-by-link.spec.ts:59:3 › html links › should preserve query ─────────
[chromium] › router/navigate-by-link.spec.ts:65:3 › html links › should preserve query and hash
[chromium] › router/navigate-by-link.spec.ts:71:3 › html links › should preserve hash ──────────
[chromium] › router/navigate-by-link.spec.ts:77:3 › html links › should preserve hash and query
[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:14:1 › should navigate to 404 page correctly ────
[chromium] › router/navigate-by-router.spec.ts:20:1 › should preserve query ────────────────────
[chromium] › router
|
This job failed
Loading