refactor: remove temp page files and load page component via bundler (close #1584) #506
Annotations
10 errors and 1 notice
E2E test (base /):
e2e\tests\hmr.spec.ts#L64
1) [chromium] › hmr.spec.ts:57:3 › should update content correctly ───────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #content + p')
Expected string: "Updated content"
Received string: "HMR content"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #content + p')
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
62 | await expect(contentLocator).toHaveText('HMR content')
63 | await hmrUpdateContent()
> 64 | await expect(contentLocator).toHaveText('Updated content')
| ^
65 | })
66 |
67 | test('should update frontmatter correctly', async ({ page }) => {
at D:\a\core\core\e2e\tests\hmr.spec.ts:64:34
|
E2E test (base /):
e2e\tests\hmr.spec.ts#L64
1) [chromium] › hmr.spec.ts:57:3 › should update content correctly ───────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #content + p')
Expected string: "Updated content"
Received string: "HMR content"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #content + p')
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
62 | await expect(contentLocator).toHaveText('HMR content')
63 | await hmrUpdateContent()
> 64 | await expect(contentLocator).toHaveText('Updated content')
| ^
65 | })
66 |
67 | test('should update frontmatter correctly', async ({ page }) => {
at D:\a\core\core\e2e\tests\hmr.spec.ts:64:34
|
E2E test (base /):
e2e\tests\hmr.spec.ts#L64
1) [chromium] › hmr.spec.ts:57:3 › should update content correctly ───────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #content + p')
Expected string: "Updated content"
Received string: "HMR content"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #content + p')
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
62 | await expect(contentLocator).toHaveText('HMR content')
63 | await hmrUpdateContent()
> 64 | await expect(contentLocator).toHaveText('Updated content')
| ^
65 | })
66 |
67 | test('should update frontmatter correctly', async ({ page }) => {
at D:\a\core\core\e2e\tests\hmr.spec.ts:64:34
|
E2E test (base /):
e2e\tests\hmr.spec.ts#L92
2) [chromium] › hmr.spec.ts:79:3 › should update title correctly ─────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content h1')
Expected string: "Updated Title"
Received string: "HMR Title"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content h1')
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
90 | await hmrUpdateTitle()
91 | await expect(page).toHaveTitle(/Updated Title/)
> 92 | await expect(titleLocator).toHaveText('Updated Title')
| ^
93 | await expect(renderedTitleLocator).toHaveText('Updated Title')
94 | })
95 |
at D:\a\core\core\e2e\tests\hmr.spec.ts:92:32
|
E2E test (base /):
e2e\tests\hmr.spec.ts#L92
2) [chromium] › hmr.spec.ts:79:3 › should update title correctly ─────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content h1')
Expected string: "Updated Title"
Received string: "HMR Title"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content h1')
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
90 | await hmrUpdateTitle()
91 | await expect(page).toHaveTitle(/Updated Title/)
> 92 | await expect(titleLocator).toHaveText('Updated Title')
| ^
93 | await expect(renderedTitleLocator).toHaveText('Updated Title')
94 | })
95 |
at D:\a\core\core\e2e\tests\hmr.spec.ts:92:32
|
E2E test (base /):
e2e\tests\hmr.spec.ts#L92
2) [chromium] › hmr.spec.ts:79:3 › should update title correctly ─────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content h1')
Expected string: "Updated Title"
Received string: "HMR Title"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content h1')
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
- locator resolved to <h1 tabindex="-1" id="hmr-title">…</h1>
- unexpected value "HMR Title"
90 | await hmrUpdateTitle()
91 | await expect(page).toHaveTitle(/Updated Title/)
> 92 | await expect(titleLocator).toHaveText('Updated Title')
| ^
93 | await expect(renderedTitleLocator).toHaveText('Updated Title')
94 | })
95 |
at D:\a\core\core\e2e\tests\hmr.spec.ts:92:32
|
E2E test (base /):
e2e\tests\hmr.spec.ts#L146
3) [chromium] › hmr.spec.ts:96:3 › should update content and frontmatter and title correctly after navigation
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #content + p')
Expected string: "Updated content"
Received string: "HMR content"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #content + p')
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
144 | // update content page
145 | await hmrUpdateContent()
> 146 | await expect(contentLocator).toHaveText('Updated content')
| ^
147 |
148 | // navigate to back title page
149 | await titlePageLinkLocator.click()
at D:\a\core\core\e2e\tests\hmr.spec.ts:146:34
|
E2E test (base /):
e2e\tests\hmr.spec.ts#L146
3) [chromium] › hmr.spec.ts:96:3 › should update content and frontmatter and title correctly after navigation
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #content + p')
Expected string: "Updated content"
Received string: "HMR content"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #content + p')
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
144 | // update content page
145 | await hmrUpdateContent()
> 146 | await expect(contentLocator).toHaveText('Updated content')
| ^
147 |
148 | // navigate to back title page
149 | await titlePageLinkLocator.click()
at D:\a\core\core\e2e\tests\hmr.spec.ts:146:34
|
E2E test (base /):
e2e\tests\hmr.spec.ts#L146
3) [chromium] › hmr.spec.ts:96:3 › should update content and frontmatter and title correctly after navigation
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.e2e-theme-content #content + p')
Expected string: "Updated content"
Received string: "HMR content"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.e2e-theme-content #content + p')
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
- locator resolved to <p>HMR content</p>
- unexpected value "HMR content"
144 | // update content page
145 | await hmrUpdateContent()
> 146 | await expect(contentLocator).toHaveText('Updated content')
| ^
147 |
148 | // navigate to back title page
149 | await titlePageLinkLocator.click()
at D:\a\core\core\e2e\tests\hmr.spec.ts:146:34
|
E2E test (base /)
Process completed with exit code 1.
|
E2E test (base /)
3 failed
[chromium] › hmr.spec.ts:57:3 › should update content 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
68 passed (1.6m)
|
Loading