feat(client): add markdown content hooks #568
Annotations
4 errors and 1 notice
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')
7 × 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 /Users/runner/work/core/core/e2e/tests/content-hooks.spec.ts:51:31
|
E2E test (base /):
e2e/tests/content-hooks.spec.ts#L51
1) [chromium] › content-hooks.spec.ts:44:1 › should call content change hook ─────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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 /Users/runner/work/core/core/e2e/tests/content-hooks.spec.ts:51:31
|
E2E test (base /):
e2e/tests/content-hooks.spec.ts#L51
1) [chromium] › content-hooks.spec.ts:44:1 › should call content change hook ─────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
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 /Users/runner/work/core/core/e2e/tests/content-hooks.spec.ts:51:31
|
E2E test (base /)
Process completed with exit code 1.
|
E2E test (base /)
1 failed
[chromium] › content-hooks.spec.ts:44:1 › should call content change hook ──────────────────────
73 passed (43.8s)
|
Loading