Skip to content

chore: improve ThemeObserver and add tests #6279

chore: improve ThemeObserver and add tests

chore: improve ThemeObserver and add tests #6279

Triggered via pull request September 22, 2024 11:40
Status Success
Total duration 4m 12s
Artifacts

test.yml

on: pull_request
Install Dependencies
1m 7s
Install Dependencies
Matrix: E2E Test
Matrix: Unit Test
Build & Test
0s
Build & Test
Fit to window
Zoom out
Zoom in

Annotations

4 errors, 20 warnings, and 20 notices
selection/native.spec.ts:289:1 › cursor move to up and down with children block: tests/selection/native.spec.ts#L318
1) selection/native.spec.ts:289:1 › cursor move to up and down with children block ─────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Expected: >= 12 Received: -1 316 | const textTwo = await getInlineSelectionText(page); 317 | expect(textTwo).toBe('arrow down test 1'); > 318 | expect(indexTwo).toBeGreaterThanOrEqual(12); | ^ 319 | expect(indexTwo).toBeLessThanOrEqual(17); 320 | await page.keyboard.press('ArrowDown'); 321 | const textThree = await getInlineSelectionText(page); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:318:20
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing: tests/utils/actions/edgeless.ts#L357
1) edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ───────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-tool-icon-button').filter({ hasText: 'Square' }) - locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button> - attempting click action - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying at utils/actions/edgeless.ts:357 355 | .locator('edgeless-tool-icon-button') 356 | .filter({ hasText: shape }); > 357 | await squareShapeButton.click(); | ^ 358 | break; 359 | } 360 | } at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:357:31) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly: tests/edgeless/note/note.spec.ts#L272
1) edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly ─────────────────────── Error: expect(received).toBeCloseTo(expected) Expected: 552.5581665039062 Received: 623.2557792663574 Expected precision: 2 Expected difference: < 0.005 Received difference: 70.69761276245117 270 | const firstNoteBox = await firstNote.boundingBox(); 271 | const secondNoteBox = await secondNote.boundingBox(); > 272 | expect(firstNoteBox!.width).toBeCloseTo(secondNoteBox!.width); | ^ 273 | expect(firstNoteBox!.height).toBeCloseTo(secondNoteBox!.height); 274 | }); 275 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:272:31
edgeless/paste-block.spec.ts:39:3 › pasting blocks › pasting a note block: tests/edgeless/paste-block.spec.ts#L63
2) edgeless/paste-block.spec.ts:39:3 › pasting blocks › pasting a note block ───────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('affine-edgeless-note[data-block-id="10"]').locator('[data-block-id]').nth(1).locator('.resizable-img') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('affine-edgeless-note[data-block-id="10"]').locator('[data-block-id]').nth(1).locator('.resizable-img') 61 | const blocks = newNote.locator('[data-block-id]'); 62 | await expect(blocks.nth(0)).toContainText('hello'); > 63 | await expect(blocks.nth(1).locator('.resizable-img')).toBeVisible(); | ^ 64 | await expect(blocks.nth(2)).toContainText('world'); 65 | await expect(blocks.nth(3)).toContainText('code'); 66 | }); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/paste-block.spec.ts:63:59
E2E Test (20)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (15)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (3)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (1)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (2)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (19)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (18)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (4)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (14)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (16)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (17)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (13)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (5)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (12)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (9)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (6)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (10)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (11)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (7)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (8)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
🎭 Playwright Run Summary
3 skipped 42 passed (41.1s)
🎭 Playwright Run Summary
2 skipped 43 passed (50.4s)
🎭 Playwright Run Summary
4 skipped 41 passed (44.5s)
🎭 Playwright Run Summary
46 passed (52.0s)
🎭 Playwright Run Summary
1 skipped 45 passed (42.8s)
🎭 Playwright Run Summary
45 passed (51.2s)
🎭 Playwright Run Summary
1 flaky selection/native.spec.ts:289:1 › cursor move to up and down with children block ──────────────── 44 passed (57.3s)
🎭 Playwright Run Summary
45 passed (54.1s)
🎭 Playwright Run Summary
45 passed (55.2s)
🎭 Playwright Run Summary
45 passed (51.8s)
🎭 Playwright Run Summary
45 passed (48.9s)
🎭 Playwright Run Summary
45 passed (1.1m)
🎭 Playwright Run Summary
45 passed (1.1m)
🎭 Playwright Run Summary
1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 2 skipped 42 passed (1.1m)
🎭 Playwright Run Summary
10 skipped 35 passed (1.2m)
🎭 Playwright Run Summary
45 passed (1.3m)
🎭 Playwright Run Summary
2 flaky edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly ──────────────────────── edgeless/paste-block.spec.ts:39:3 › pasting blocks › pasting a note block ────────────────────── 43 passed (1.3m)
🎭 Playwright Run Summary
1 skipped 44 passed (1.4m)
🎭 Playwright Run Summary
45 passed (1.5m)
🎭 Playwright Run Summary
1 skipped 44 passed (1.6m)