fix(blocks): click blank area will make editor scroll #6450
Annotations
10 errors and 1 notice
Run playwright test:
tests/utils/asserts.ts#L614
1) database/database.spec.ts:55:1 › edit database block title and create new rows ────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "title": "hello",
+ "title": "Database 1",
}
at utils/asserts.ts:614
612 | [id, props] as const
613 | );
> 614 | expect(actual).toEqual(props);
| ^
615 | }
616 |
617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) {
at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:71:3
|
Run playwright test:
tests/utils/asserts.ts#L614
1) database/database.spec.ts:55:1 › edit database block title and create new rows ────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "title": "hello",
+ "title": "Database 1",
}
at utils/asserts.ts:614
612 | [id, props] as const
613 | );
> 614 | expect(actual).toEqual(props);
| ^
615 | }
616 |
617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) {
at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:71:3
|
Run playwright test:
tests/utils/asserts.ts#L614
1) database/database.spec.ts:55:1 › edit database block title and create new rows ────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "title": "hello",
+ "title": "Database 1",
}
at utils/asserts.ts:614
612 | [id, props] as const
613 | );
> 614 | expect(actual).toEqual(props);
| ^
615 | }
616 |
617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) {
at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:71:3
|
Run playwright test:
tests/utils/asserts.ts#L614
1) database/database.spec.ts:55:1 › edit database block title and create new rows ────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "title": "hello",
+ "title": "Database 1",
}
at utils/asserts.ts:614
612 | [id, props] as const
613 | );
> 614 | expect(actual).toEqual(props);
| ^
615 | }
616 |
617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) {
at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:71:3
|
Run playwright test:
tests/database/actions.ts#L292
2) database/database.spec.ts:215:1 › should database search input displayed correctly ────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at database/actions.ts:292
290 | const searchExpand = page.locator('.search-container-expand');
291 | const count = await searchExpand.count();
> 292 | expect(count).toBe(isSearching ? 1 : 0);
| ^
293 | }
294 |
295 | export async function focusDatabaseSearch(page: Page) {
at assertDatabaseSearching (/home/runner/work/blocksuite/blocksuite/tests/database/actions.ts:292:17)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:231:3
|
Run playwright test:
tests/database/actions.ts#L292
2) database/database.spec.ts:215:1 › should database search input displayed correctly ────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at database/actions.ts:292
290 | const searchExpand = page.locator('.search-container-expand');
291 | const count = await searchExpand.count();
> 292 | expect(count).toBe(isSearching ? 1 : 0);
| ^
293 | }
294 |
295 | export async function focusDatabaseSearch(page: Page) {
at assertDatabaseSearching (/home/runner/work/blocksuite/blocksuite/tests/database/actions.ts:292:17)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:231:3
|
Run playwright test:
tests/database/actions.ts#L292
2) database/database.spec.ts:215:1 › should database search input displayed correctly ────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at database/actions.ts:292
290 | const searchExpand = page.locator('.search-container-expand');
291 | const count = await searchExpand.count();
> 292 | expect(count).toBe(isSearching ? 1 : 0);
| ^
293 | }
294 |
295 | export async function focusDatabaseSearch(page: Page) {
at assertDatabaseSearching (/home/runner/work/blocksuite/blocksuite/tests/database/actions.ts:292:17)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:231:3
|
Run playwright test:
tests/database/actions.ts#L292
2) database/database.spec.ts:215:1 › should database search input displayed correctly ────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at database/actions.ts:292
290 | const searchExpand = page.locator('.search-container-expand');
291 | const count = await searchExpand.count();
> 292 | expect(count).toBe(isSearching ? 1 : 0);
| ^
293 | }
294 |
295 | export async function focusDatabaseSearch(page: Page) {
at assertDatabaseSearching (/home/runner/work/blocksuite/blocksuite/tests/database/actions.ts:292:17)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:231:3
|
Run playwright test:
tests/utils/asserts.ts#L614
3) database/database.spec.ts:616:3 › readonly mode › database title should not be edited in readonly mode
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "title": "hello",
+ "title": "Database 1",
}
at utils/asserts.ts:614
612 | [id, props] as const
613 | );
> 614 | expect(actual).toEqual(props);
| ^
615 | }
616 |
617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) {
at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:634:5
|
Run playwright test:
tests/utils/asserts.ts#L614
3) database/database.spec.ts:616:3 › readonly mode › database title should not be edited in readonly mode
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "title": "hello",
+ "title": "Database 1",
}
at utils/asserts.ts:614
612 | [id, props] as const
613 | );
> 614 | expect(actual).toEqual(props);
| ^
615 | }
616 |
617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) {
at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18)
at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:634:5
|
Run playwright test
3 failed
database/database.spec.ts:55:1 › edit database block title and create new rows ─────────────────
database/database.spec.ts:215:1 › should database search input displayed correctly ─────────────
database/database.spec.ts:616:3 › readonly mode › database title should not be edited in readonly mode
43 passed (1.2m)
|
Loading