chore: fix flaky test (#4793) #19
Annotations
1 error and 1 notice
tests/image.spec.ts#L145
1) image.spec.ts:122:1 › enter shortcut on focusing embed block and its caption ──────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveValue(expected)
Expected string: "abc123"
Received string: "123"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('.affine-embed-wrapper-caption')
- locator resolved to <input value="123" placeholder="Write a caption" class=…/>
- unexpected value "123"
- locator resolved to <input value="123" placeholder="Write a caption" class=…/>
- unexpected value "123"
- locator resolved to <input value="123" placeholder="Write a caption" class=…/>
- unexpected value "123"
- locator resolved to <input value="123" placeholder="Write a caption" class=…/>
- unexpected value "123"
- locator resolved to <input value="123" placeholder="Write a caption" class=…/>
- unexpected value "123"
- locator resolved to <input value="123" placeholder="Write a caption" class=…/>
- unexpected value "123"
- locator resolved to <input value="123" placeholder="Write a caption" class=…/>
- unexpected value "123"
- locator resolved to <input value="123" placeholder="Write a caption" class=…/>
- unexpected value "123"
- locator resolved to <input value="123" placeholder="Write a caption" class=…/>
- unexpected value "123"
143 | await caption.click({ position: { x: 0, y: 0 } });
144 | await type(page, 'abc');
> 145 | await expect(caption).toHaveValue('abc123');
| ^
146 | });
147 |
148 | test('popup menu should follow position of image when scrolling', async ({
at /home/runner/work/blocksuite/blocksuite/tests/image.spec.ts:145:25
|
|
The logs for this run have expired and are no longer available.
Loading