refactor(database): avoid modifying all views when editing a single view #7662
Annotations
10 errors and 1 notice
Run playwright test:
tests/utils/actions/misc.ts#L331
1) database/database.spec.ts:100:1 › should modify the value when the input loses focus ──────────
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: An error occurred while Y.doc doc:home transacting:"
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L331
1) database/database.spec.ts:100:1 › should modify the value when the input loses focus ──────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 11
- Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.
+ Unexpected console message: TypeError: 'set' on proxy: trap returned falsish for property '5'
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:11165
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:10651
+ at http://localhost:4173/assets/framework-7aLtbwO7.js:52:74076
+ at Ae (http://localhost:4173/assets/framework-7aLtbwO7.js:41:37829)
+ at Q_.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:41:17846)
+ at Rb.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:52:74058)
+ at To (http://localhost:4173/assets/blocks-UwaImY83.js:10343:10637)
+ at Ek (http://localhost:4173/assets/blocks-UwaImY83.js:10343:11137)
+ at pk.cellValueChange (http://localhost:4173/assets/blocks-UwaImY83.js:10343:13962)
+ at dd.valueSet (http://localhost:4173/assets/affine-C0tzz_yu.js:1216:14055)
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L331
1) database/database.spec.ts:100:1 › should modify the value when the input loses focus ──────────
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: An error occurred while Y.doc doc:home transacting:"
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L331
1) database/database.spec.ts:100:1 › should modify the value when the input loses focus ──────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 11
- Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.
+ Unexpected console message: TypeError: 'set' on proxy: trap returned falsish for property '5'
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:11165
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:10651
+ at http://localhost:4173/assets/framework-7aLtbwO7.js:52:74076
+ at Ae (http://localhost:4173/assets/framework-7aLtbwO7.js:41:37829)
+ at Q_.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:41:17846)
+ at Rb.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:52:74058)
+ at To (http://localhost:4173/assets/blocks-UwaImY83.js:10343:10637)
+ at Ek (http://localhost:4173/assets/blocks-UwaImY83.js:10343:11137)
+ at pk.cellValueChange (http://localhost:4173/assets/blocks-UwaImY83.js:10343:13962)
+ at dd.valueSet (http://localhost:4173/assets/affine-C0tzz_yu.js:1216:14055)
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L331
1) database/database.spec.ts:100:1 › should modify the value when the input loses focus ──────────
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: An error occurred while Y.doc doc:home transacting:"
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L331
1) database/database.spec.ts:100:1 › should modify the value when the input loses focus ──────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 11
- Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.
+ Unexpected console message: TypeError: 'set' on proxy: trap returned falsish for property '5'
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:11165
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:10651
+ at http://localhost:4173/assets/framework-7aLtbwO7.js:52:74076
+ at Ae (http://localhost:4173/assets/framework-7aLtbwO7.js:41:37829)
+ at Q_.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:41:17846)
+ at Rb.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:52:74058)
+ at To (http://localhost:4173/assets/blocks-UwaImY83.js:10343:10637)
+ at Ek (http://localhost:4173/assets/blocks-UwaImY83.js:10343:11137)
+ at pk.cellValueChange (http://localhost:4173/assets/blocks-UwaImY83.js:10343:13962)
+ at dd.valueSet (http://localhost:4173/assets/affine-C0tzz_yu.js:1216:14055)
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L331
1) database/database.spec.ts:100:1 › should modify the value when the input loses focus ──────────
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: An error occurred while Y.doc doc:home transacting:"
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L331
1) database/database.spec.ts:100:1 › should modify the value when the input loses focus ──────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 11
- Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.
+ Unexpected console message: TypeError: 'set' on proxy: trap returned falsish for property '5'
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:11165
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:10651
+ at http://localhost:4173/assets/framework-7aLtbwO7.js:52:74076
+ at Ae (http://localhost:4173/assets/framework-7aLtbwO7.js:41:37829)
+ at Q_.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:41:17846)
+ at Rb.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:52:74058)
+ at To (http://localhost:4173/assets/blocks-UwaImY83.js:10343:10637)
+ at Ek (http://localhost:4173/assets/blocks-UwaImY83.js:10343:11137)
+ at pk.cellValueChange (http://localhost:4173/assets/blocks-UwaImY83.js:10343:13962)
+ at dd.valueSet (http://localhost:4173/assets/affine-C0tzz_yu.js:1216:14055)
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L331
2) database/database.spec.ts:114:1 › should rich-text column support soft enter ──────────────────
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: An error occurred while Y.doc doc:home transacting:"
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test:
tests/utils/actions/misc.ts#L331
2) database/database.spec.ts:114:1 › should rich-text column support soft enter ──────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 11
- Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.
+ Unexpected console message: TypeError: 'set' on proxy: trap returned falsish for property '5'
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:11165
+ at http://localhost:4173/assets/blocks-UwaImY83.js:10343:10651
+ at http://localhost:4173/assets/framework-7aLtbwO7.js:52:74076
+ at Ae (http://localhost:4173/assets/framework-7aLtbwO7.js:41:37829)
+ at Q_.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:41:17846)
+ at Rb.transact (http://localhost:4173/assets/framework-7aLtbwO7.js:52:74058)
+ at To (http://localhost:4173/assets/blocks-UwaImY83.js:10343:10637)
+ at Ek (http://localhost:4173/assets/blocks-UwaImY83.js:10343:11137)
+ at pk.cellValueChange (http://localhost:4173/assets/blocks-UwaImY83.js:10343:13962)
+ at dd.valueSet (http://localhost:4173/assets/affine-C0tzz_yu.js:1216:14055)
at utils/actions/misc.ts:331
329 | expect
330 | .soft('Unexpected console message: ' + message.text())
> 331 | .toBe(
| ^
332 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
333 | );
334 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:331:10)
|
Run playwright test
11 failed
database/database.spec.ts:100:1 › should modify the value when the input loses focus ───────────
database/database.spec.ts:114:1 › should rich-text column support soft enter ───────────────────
database/database.spec.ts:216:1 › should database title and rich-text support undo/redo ────────
database/database.spec.ts:495:1 › database format-bar in header and text column ────────────────
database/database.spec.ts:621:3 › readonly mode › should rich-text not be edited in readonly mode
database/database.spec.ts:640:3 › readonly mode › should hide edit widget after switch to readonly mode
database/database.spec.ts:713:3 › readonly mode › should hide focus border after switch to readonly mode
database/database.spec.ts:738:3 › readonly mode › should hide selection after switch to readonly mode
database/selection.spec.ts:53:3 › focus › should support multi row selection ───────────────────
database/selection.spec.ts:130:3 › row-level selection › should support multi row selection ────
database/selection.spec.ts:241:3 › cell-level selection › should support multi cell selection ──
36 passed (2.3m)
|
Loading