fix: yjs warning #6619
Annotations
10 errors and 1 notice
Run playwright test:
tests/utils/actions/misc.ts#L329
1) edgeless/linked-doc.spec.ts:328:3 › multiple edgeless elements to linked doc › multi-select with mindmap, turn it into a linked doc
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Invalid access: Add Yjs type to a document before reading data."
at utils/actions/misc.ts:329
327 | expect
328 | .soft('Unexpected console message: ' + message.text())
> 329 | .toBe(
| ^
330 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
331 | );
332 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:329:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L329
1) edgeless/linked-doc.spec.ts:328:3 › multiple edgeless elements to linked doc › multi-select with mindmap, turn it into a linked doc
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Invalid access: Add Yjs type to a document before reading data."
at utils/actions/misc.ts:329
327 | expect
328 | .soft('Unexpected console message: ' + message.text())
> 329 | .toBe(
| ^
330 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
331 | );
332 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:329:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L329
1) edgeless/linked-doc.spec.ts:328:3 › multiple edgeless elements to linked doc › multi-select with mindmap, turn it into a linked doc
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Invalid access: Add Yjs type to a document before reading data."
at utils/actions/misc.ts:329
327 | expect
328 | .soft('Unexpected console message: ' + message.text())
> 329 | .toBe(
| ^
330 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
331 | );
332 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:329:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L329
1) edgeless/linked-doc.spec.ts:328:3 › multiple edgeless elements to linked doc › multi-select with mindmap, turn it into a linked doc
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Invalid access: Add Yjs type to a document before reading data."
at utils/actions/misc.ts:329
327 | expect
328 | .soft('Unexpected console message: ' + message.text())
> 329 | .toBe(
| ^
330 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
331 | );
332 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:329:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L329
1) edgeless/linked-doc.spec.ts:328:3 › multiple edgeless elements to linked doc › multi-select with mindmap, turn it into a linked doc
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Invalid access: Add Yjs type to a document before reading data."
at utils/actions/misc.ts:329
327 | expect
328 | .soft('Unexpected console message: ' + message.text())
> 329 | .toBe(
| ^
330 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
331 | );
332 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:329:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L329
1) edgeless/linked-doc.spec.ts:328:3 › multiple edgeless elements to linked doc › multi-select with mindmap, turn it into a linked doc
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Invalid access: Add Yjs type to a document before reading data."
at utils/actions/misc.ts:329
327 | expect
328 | .soft('Unexpected console message: ' + message.text())
> 329 | .toBe(
| ^
330 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
331 | );
332 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:329:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L329
1) edgeless/linked-doc.spec.ts:328:3 › multiple edgeless elements to linked doc › multi-select with mindmap, turn it into a linked doc
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Invalid access: Add Yjs type to a document before reading data."
at utils/actions/misc.ts:329
327 | expect
328 | .soft('Unexpected console message: ' + message.text())
> 329 | .toBe(
| ^
330 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
331 | );
332 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:329:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L329
1) edgeless/linked-doc.spec.ts:328:3 › multiple edgeless elements to linked doc › multi-select with mindmap, turn it into a linked doc
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Invalid access: Add Yjs type to a document before reading data."
at utils/actions/misc.ts:329
327 | expect
328 | .soft('Unexpected console message: ' + message.text())
> 329 | .toBe(
| ^
330 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
331 | );
332 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:329:10)
|
Run playwright test:
tests/edgeless/note/drag-handle.spec.ts#L148
2) edgeless/note/drag-handle.spec.ts:122:1 › drag handle should work across multiple notes ───────
Error: Timed out 5000ms waiting for expect(locator).toBeHidden()
Locator: locator('.affine-drag-handle-container')
Expected: hidden
Received: visible
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for locator('.affine-drag-handle-container')
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
146 | await dragHandleFromBlockToBlockBottomById(page, '3', '4');
147 | await waitNextFrame(page);
> 148 | await expect(page.locator('.affine-drag-handle-container')).toBeHidden();
| ^
149 | await assertRichTexts(page, ['456', '123', '789', '000']);
150 |
151 | await expect(page.locator('selected > *')).toHaveCount(0);
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/drag-handle.spec.ts:148:63
|
Run playwright test
Process completed with exit code 1.
|
Run playwright test
1 failed
edgeless/linked-doc.spec.ts:328:3 › multiple edgeless elements to linked doc › multi-select with mindmap, turn it into a linked doc
1 flaky
edgeless/note/drag-handle.spec.ts:122:1 › drag handle should work across multiple notes ────────
10 skipped
34 passed (1.4m)
|
Loading