feat(client): add markdown content hooks #568
Annotations
9 errors and 3 notices
E2E test (base /e2e/):
e2e\tests\content-hooks.spec.ts#L1
1) [chromium] › content-hooks.spec.ts:57:1 › should call content before unmount hook ─────────────
Test timeout of 30000ms exceeded.
|
E2E test (base /e2e/):
e2e\tests\content-hooks.spec.ts#L62
1) [chromium] › content-hooks.spec.ts:57:1 › should call content before unmount hook ─────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('.e2e-theme-nav a[href="/"]')
60 | )
61 | await page.goto('content-hooks/content.html')
> 62 | await page.locator('.e2e-theme-nav a[href="/"]').click()
| ^
63 |
64 | await expect(beforeUnmountLocator).toHaveText(
65 | 'beforeUnmount: /content-hooks/content.html',
at D:\a\core\core\e2e\tests\content-hooks.spec.ts:62:52
|
E2E test (base /e2e/):
e2e\tests\content-hooks.spec.ts#L1
1) [chromium] › content-hooks.spec.ts:57:1 › should call content before unmount hook ─────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
E2E test (base /e2e/):
e2e\tests\content-hooks.spec.ts#L62
1) [chromium] › content-hooks.spec.ts:57:1 › should call content before unmount hook ─────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('.e2e-theme-nav a[href="/"]')
60 | )
61 | await page.goto('content-hooks/content.html')
> 62 | await page.locator('.e2e-theme-nav a[href="/"]').click()
| ^
63 |
64 | await expect(beforeUnmountLocator).toHaveText(
65 | 'beforeUnmount: /content-hooks/content.html',
at D:\a\core\core\e2e\tests\content-hooks.spec.ts:62:52
|
E2E test (base /e2e/):
e2e\tests\content-hooks.spec.ts#L1
1) [chromium] › content-hooks.spec.ts:57:1 › should call content before unmount hook ─────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
E2E test (base /e2e/):
e2e\tests\content-hooks.spec.ts#L62
1) [chromium] › content-hooks.spec.ts:57:1 › should call content before unmount hook ─────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('.e2e-theme-nav a[href="/"]')
60 | )
61 | await page.goto('content-hooks/content.html')
> 62 | await page.locator('.e2e-theme-nav a[href="/"]').click()
| ^
63 |
64 | await expect(beforeUnmountLocator).toHaveText(
65 | 'beforeUnmount: /content-hooks/content.html',
at D:\a\core\core\e2e\tests\content-hooks.spec.ts:62:52
|
E2E test (base /e2e/):
e2e\tests\content-hooks.spec.ts#L51
2) [chromium] › content-hooks.spec.ts:44:1 › should call content change hook ─────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.markdown-content-hooks .markdown-content-change')
Expected string: "changedCount: 1"
Received string: "changedCount: 0"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.markdown-content-hooks .markdown-content-change')
9 × locator resolved to <p class="markdown-content-change">changedCount: 0</p>
- unexpected value "changedCount: 0"
49 |
50 | await updateMarkdownContent()
> 51 | await expect(changeLocator).toHaveText(`changedCount: ${IS_DEV ? 1 : 0}`) // 1
| ^
52 |
53 | await updateMarkdownContent()
54 | await expect(changeLocator).toHaveText(`changedCount: ${IS_DEV ? 2 : 0}`) // 2
at D:\a\core\core\e2e\tests\content-hooks.spec.ts:51:31
|
E2E test (base /e2e/)
Process completed with exit code 1.
|
E2E test (base /):
e2e\tests\content-hooks.spec.ts#L51
1) [chromium] › content-hooks.spec.ts:44:1 › should call content change hook ─────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.markdown-content-hooks .markdown-content-change')
Expected string: "changedCount: 1"
Received string: "changedCount: 0"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.markdown-content-hooks .markdown-content-change')
9 × locator resolved to <p class="markdown-content-change">changedCount: 0</p>
- unexpected value "changedCount: 0"
49 |
50 | await updateMarkdownContent()
> 51 | await expect(changeLocator).toHaveText(`changedCount: ${IS_DEV ? 1 : 0}`) // 1
| ^
52 |
53 | await updateMarkdownContent()
54 | await expect(changeLocator).toHaveText(`changedCount: ${IS_DEV ? 2 : 0}`) // 2
at D:\a\core\core\e2e\tests\content-hooks.spec.ts:51:31
|
E2E test (base /e2e/)
1 failed
[chromium] › content-hooks.spec.ts:57:1 › should call content before unmount hook ──────────────
1 flaky
[chromium] › content-hooks.spec.ts:44:1 › should call content change hook ──────────────────────
72 passed (2.4m)
|
E2E test (base /)
1 flaky
[chromium] › content-hooks.spec.ts:44:1 › should call content change hook ──────────────────────
73 passed (56.7s)
|
E2E test (base /)
70 passed (36.8s)
|
Loading