feat(core): allow non-default-export client config file #383
Annotations
10 errors and 1 notice
E2E test (base /):
e2e\tests\client-config\root-components.spec.ts#L6
1) [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 D:\a\core\core\e2e\tests\client-config\root-components.spec.ts:6:62
|
E2E test (base /):
e2e\tests\client-config\root-components.spec.ts#L6
1) [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 D:\a\core\core\e2e\tests\client-config\root-components.spec.ts:6:62
|
E2E test (base /):
e2e\tests\client-config\root-components.spec.ts#L6
1) [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 D:\a\core\core\e2e\tests\client-config\root-components.spec.ts:6:62
|
E2E test (base /):
e2e\tests\components\auto-link.spec.ts#L27
2) [chromium] › components\auto-link.spec.ts:24:1 › should render config correctly ───────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #config a').first()
Expected string: "text1"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #config a').first()
25 | const locator = page.locator('.e2e-theme-content #config a')
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 |
at D:\a\core\core\e2e\tests\components\auto-link.spec.ts:27:32
|
E2E test (base /):
e2e\tests\components\auto-link.spec.ts#L27
2) [chromium] › components\auto-link.spec.ts:24:1 › should render config correctly ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #config a').first()
Expected string: "text1"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #config a').first()
25 | const locator = page.locator('.e2e-theme-content #config a')
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 |
at D:\a\core\core\e2e\tests\components\auto-link.spec.ts:27:32
|
E2E test (base /):
e2e\tests\components\auto-link.spec.ts#L27
2) [chromium] › components\auto-link.spec.ts:24:1 › should render config correctly ───────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #config a').first()
Expected string: "text1"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #config a').first()
25 | const locator = page.locator('.e2e-theme-content #config a')
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 |
at D:\a\core\core\e2e\tests\components\auto-link.spec.ts:27:32
|
E2E test (base /):
e2e\tests\components\auto-link.spec.ts#L43
3) [chromium] › components\auto-link.spec.ts:40:1 › should append attrs correctly ────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #attrs a').first()
Expected string: "text1"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #attrs a').first()
41 | const locator = page.locator('.e2e-theme-content #attrs a')
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/)
at D:\a\core\core\e2e\tests\components\auto-link.spec.ts:43:32
|
E2E test (base /):
e2e\tests\components\auto-link.spec.ts#L43
3) [chromium] › components\auto-link.spec.ts:40:1 › should append attrs correctly ────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #attrs a').first()
Expected string: "text1"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #attrs a').first()
41 | const locator = page.locator('.e2e-theme-content #attrs a')
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/)
at D:\a\core\core\e2e\tests\components\auto-link.spec.ts:43:32
|
E2E test (base /):
e2e\tests\components\auto-link.spec.ts#L43
3) [chromium] › components\auto-link.spec.ts:40:1 › should append attrs correctly ────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #attrs a').first()
Expected string: "text1"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #attrs a').first()
41 | const locator = page.locator('.e2e-theme-content #attrs a')
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/)
at D:\a\core\core\e2e\tests\components\auto-link.spec.ts:43:32
|
E2E test (base /):
e2e\tests\components\auto-link.spec.ts#L72
4) [chromium] › components\auto-link.spec.ts:69:1 › should render slots correctly ────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #slots a').first()
Expected string: "slot-text"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #slots a').first()
70 | const locator = page.locator('.e2e-theme-content #slots a')
71 |
> 72 | await expect(locator.nth(0)).toHaveText('slot-text')
| ^
73 | await expect(locator.nth(1)).toHaveText('label')
74 | await expect(locator.nth(2)).toHaveText('beforetext3after')
75 | await expect(locator.nth(3)).toHaveText('before labeltext4after label')
at D:\a\core\core\e2e\tests\components\auto-link.spec.ts:72:32
|
E2E test (base /)
44 failed
[chromium] › client-config\root-components.spec.ts:3:1 › should render root components correctly
[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\auto-link.spec.ts:69:1 › should render slots 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:44:3 › should update frontmatter correctly ────────────────────────────
[chromium] › hmr.spec.ts:56:3 › should update title correctly ──────────────────────────────────
[chromium] › hmr.spec.ts:68:3 › should update title and frontmatter correctly after navigation ─
[chromium] › imports\conditional-exports.spec.ts:4:1 › should load different files 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\navigation.spec.ts:4:1 › should preserve query ─────────────────────────────
[chromium] › router\navigation.spec.ts:12:1 › should preserve hash ─────────────────────────────
[chromium] › routes\non-ascii-paths.spec.ts:5:1 › should support visiting non-ASCII paths directly
[chromium] › routes\non-ascii-paths.spec.ts:17:1 › should support rendering non-ASCII paths links and navigate to it correctly
[chromium] › routes\permalinks.spec.ts:30:1 › should support visiting permalinks directly ──────
[chromium] › routes\permalinks.spec.ts:37:1 › should support rendering link by permalink and navigate to it correctly
[chromium] › routes\permalinks.spec.ts:67:1 › should support rendering link by filename and navigate to it correctly
[chromium] › site-data.spec.ts:8:3 › en-US › lang ──────────────────────────────────────────────
[chromium] › site-data.spec.ts:12:3 › en-US › title ────────────────────────────────────────────
[chromium] › site-data.spec.ts:22:3 › en-US › description ──────────────────────────────────────
[chromium] › site-data.spec.ts:32:3 › en-US › head ─────────────────────────────────────────────
[chromium] › site-data.spec.ts:55:3 › zh-CN › lang ─────────────────────────────────────────────
[chromium] › site-data.spec.ts:59:3 › zh-CN › title ────────────────────────────────────────────
[chromium] › site-data.spec.ts:69:3 › zh-CN › description ──────────────────────────────────────
[chromium] › site-data.spec.ts:79:3 › zh-CN › head ─────────────────────────────────────────────
[chromium] › site-data.spec.ts:102:3 › non-ASCII › lang ────────────────────────────────────────
[chromium] › site-data.spec.ts:106:3 › non-ASCII › title ───
|
Loading