Skip to content

test(editor): fix font style in preset tests #23616

test(editor): fix font style in preset tests

test(editor): fix font style in preset tests #23616

Triggered via pull request January 22, 2025 10:01
Status Success
Total duration 15m 17s
Artifacts 8

build-test.yml

on: pull_request
Optimize CI
8s
Optimize CI
Matrix: build-native
Build Server native
1m 0s
Build Server native
Build @affine/electron renderer
2m 24s
Build @affine/electron renderer
test-build-mobile-app  /  output-env
2s
test-build-mobile-app / output-env
Matrix: Analyze
Matrix: Legacy Blocksuite E2E Test
Matrix: E2E Mobile Test
Matrix: E2E Test
Matrix: Unit Test
Matrix: Server Copilot E2E Test
Matrix: server-e2e-test
Server Test
10m 53s
Server Test
Server Copilot Api Test
29s
Server Copilot Api Test
Matrix: desktop-test
test-build-mobile-app  /  build-android-web
2m 34s
test-build-mobile-app / build-android-web
test-build-mobile-app  /  build-ios-web
2m 24s
test-build-mobile-app / build-ios-web
test-build-mobile-app  /  android
3m 29s
test-build-mobile-app / android
test-build-mobile-app  /  ios
6m 43s
test-build-mobile-app / ios
3, 2, 1 Launch
0s
3, 2, 1 Launch
Fit to window
Zoom out
Zoom in

Annotations

6 errors, 70 warnings, and 24 notices
selection/native.spec.ts:266:1 › cursor move to up and down with children block: blocksuite/tests-legacy/selection/native.spec.ts#L295
1) selection/native.spec.ts:266:1 › cursor move to up and down with children block ─────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Expected: >= 12 Received: -1 293 | const textTwo = await getInlineSelectionText(page); 294 | expect(textTwo).toBe('arrow down test 1'); > 295 | expect(indexTwo).toBeGreaterThanOrEqual(12); | ^ 296 | expect(indexTwo).toBeLessThanOrEqual(17); 297 | await page.keyboard.press('ArrowDown'); 298 | const textThree = await getInlineSelectionText(page); at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:295:20
slash-menu.spec.ts:365:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow: blocksuite/tests-legacy/slash-menu.spec.ts#L388
2) slash-menu.spec.ts:365:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4) Expected string: "true" Received string: "false" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4) 9 × locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button> - unexpected value "false" 386 | await type(page, '/'); 387 | await pressArrowDown(page, 4); > 388 | await expect(slashItems.nth(4)).toHaveAttribute('hover', 'true'); | ^ 389 | await expect(slashItems.nth(4).locator('.text')).toHaveText([ 390 | 'Other Headings', 391 | ]); at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/slash-menu.spec.ts:388:37
[Mobile Safari] › detail.spec.ts:33:1 › can show doc info: tests/affine-mobile/e2e/detail.spec.ts#L17
1) [Mobile Safari] › detail.spec.ts:33:1 › can show doc info ───────────────────────────────────── Error: Timed out 15000ms waiting for expect(locator).toBeVisible() Locator: locator('.affine-edgeless-viewport') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 15000ms - waiting for locator('.affine-edgeless-viewport') 15 | await docsTab.click(); 16 | await page.getByTestId('doc-card').first().click(); > 17 | await expect(page.locator('.affine-edgeless-viewport')).toBeVisible(); | ^ 18 | }); 19 | 20 | test('can open page view more menu', async ({ page }) => { at /home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/detail.spec.ts:17:59
clipboard/list.spec.ts:134:1 › paste a nested list to a nested list: blocksuite/tests-legacy/utils/asserts.ts#L207
1) clipboard/list.spec.ts:134:1 › paste a nested list to a nested list ─────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ "aaa", - "aaa", + "bbbaaa", "bbb", - "cccbbb", + "ccc", "ccc", ] at utils/asserts.ts:207 205 | }); 206 | }, currentEditorIndex); > 207 | expect(actualTexts).toEqual(texts); | ^ 208 | } 209 | 210 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:207:23) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/clipboard/list.spec.ts:166:3
links.spec.ts:279:1 › allow switching to embed view when linking to the other document with mode: tests/affine-local/e2e/links.spec.ts#L316
1) links.spec.ts:279:1 › allow switching to embed view when linking to the other document with mode TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('affine-embed-linked-doc-block') - locator resolved to <affine-embed-linked-doc-block contenteditable="false" data-block-id="tIul3NQAj9" data-drop-target-for-element="true">…</affine-embed-linked-doc-block> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action - waiting 20ms 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action - waiting 100ms 9 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action - waiting 500ms 314 | 315 | await expect(cardLink).toBeVisible(); > 316 | await cardLink.click(); | ^ 317 | 318 | // refocus 319 | await cardLink.click(); at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:316:18
links.spec.ts:568:1 › should show edgeless content when switching card view of linked mode doc in edgeless: tests/affine-local/e2e/links.spec.ts#L610
2) links.spec.ts:568:1 › should show edgeless content when switching card view of linked mode doc in edgeless TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for getByLabel('Switch view') 608 | .waitFor({ state: 'visible' }); 609 | await page.mouse.click(x - 50, y - 50); > 610 | await page.getByLabel('Switch view').click(); | ^ 611 | await page.getByTestId('link-to-embed').click(); 612 | 613 | const viewport = await page at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:610:40
Optimize CI
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-build-mobile-app / output-env
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check yarn binary
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build AFFiNE native (x86_64-unknown-linux-gnu)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build Server native
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Server Copilot E2E Test (3, 3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Server Copilot Api Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Server Copilot E2E Test (2, 3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Server Copilot E2E Test (1, 3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run native tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build @affine/electron renderer
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-build-mobile-app / build-ios-web
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-build-mobile-app / build-android-web
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Mobile Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-mobile/[Mobile Chrome] › explorer-tag.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › explorer-tag.spec.ts took 40.8s
E2E Mobile Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-mobile/[Mobile Chrome] › detail.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › detail.spec.ts took 43.0s
Slow Test: tests/affine-mobile/[Mobile Chrome] › explorer-favorite.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › explorer-favorite.spec.ts took 40.5s
E2E Mobile Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-mobile/[Mobile Safari] › settings.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › settings.spec.ts took 48.6s
Slow Test: tests/affine-mobile/[Mobile Safari] › home.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › home.spec.ts took 40.4s
Legacy Blocksuite E2E Test (10)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Legacy Blocksuite E2E Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Mobile Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-mobile/[Mobile Safari] › back-button-visibility.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › back-button-visibility.spec.ts took 40.4s
Legacy Blocksuite E2E Test (9)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Mobile Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-mobile/[Mobile Safari] › explorer-folder.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › explorer-folder.spec.ts took 46.5s
Legacy Blocksuite E2E Test (7)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Legacy Blocksuite E2E Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Legacy Blocksuite E2E Test (6)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Legacy Blocksuite E2E Test (8)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Legacy Blocksuite E2E Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Legacy Blocksuite E2E Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Legacy Blocksuite E2E Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-local/page-properties.spec.ts#L1
tests/affine-local/page-properties.spec.ts took 41.3s
test-build-mobile-app / android
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Unit Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Server Desktop E2E Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-desktop-cloud/basic.spec.ts#L1
tests/affine-desktop-cloud/basic.spec.ts took 44.1s
E2E Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Unit Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Unit Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Unit Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Server E2E Test 3/3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-cloud/workspace.spec.ts#L1
tests/affine-cloud/workspace.spec.ts took 41.1s
Slow Test: tests/affine-cloud/template.spec.ts#L1
tests/affine-cloud/template.spec.ts took 34.4s
Unit Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Analyze (javascript)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Analyze (javascript)
1 issue was detected with this workflow: CodeQL language 'javascript' is referenced by more than one entry in the 'language' matrix parameter for job 'analyze'. This may result in duplicate alerts. Please edit the 'language' matrix parameter to keep only one of the following: 'javascript', 'typescript'.
Analyze (javascript)
Unable to validate code scanning workflow: DuplicateLanguageInMatrix
Analyze (typescript)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Analyze (typescript)
1 issue was detected with this workflow: CodeQL language 'javascript' is referenced by more than one entry in the 'language' matrix parameter for job 'analyze'. This may result in duplicate alerts. Please edit the 'language' matrix parameter to keep only one of the following: 'javascript', 'typescript'.
Analyze (typescript)
Unable to validate code scanning workflow: DuplicateLanguageInMatrix
test-build-mobile-app / ios
swiftformat 0.55.4 is already installed and up-to-date. To reinstall 0.55.4, run: brew reinstall swiftformat
Server E2E Test 1/3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-cloud/collaboration.spec.ts#L1
tests/affine-cloud/collaboration.spec.ts took 1.3m
Slow Test: tests/affine-cloud/login.spec.ts#L1
tests/affine-cloud/login.spec.ts took 1.0m
Server E2E Test 2/3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: tests/affine-cloud/share-page.spec.ts#L1
tests/affine-cloud/share-page.spec.ts took 3.0m
Slow Test: tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 39.9s
Slow Test: tests/affine-cloud/open-in-app.spec.ts#L1
tests/affine-cloud/open-in-app.spec.ts took 37.6s
Server Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Desktop Test (ubuntu-latest, linux, x64, x86_64-unknown-linux-gnu, true)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
3, 2, 1 Launch
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
🎭 Playwright Run Summary
7 passed (1.1m)
🎭 Playwright Run Summary
7 passed (1.2m)
🎭 Playwright Run Summary
7 passed (1.2m)
🎭 Playwright Run Summary
2 flaky selection/native.spec.ts:266:1 › cursor move to up and down with children block ──────────────── slash-menu.spec.ts:365:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys 3 skipped 91 passed (1.4m)
🎭 Playwright Run Summary
4 skipped 93 passed (1.5m)
🎭 Playwright Run Summary
1 flaky [Mobile Safari] › detail.spec.ts:33:1 › can show doc info ────────────────────────────────────── 7 passed (1.8m)
🎭 Playwright Run Summary
96 passed (1.4m)
🎭 Playwright Run Summary
7 passed (1.3m)
🎭 Playwright Run Summary
1 skipped 96 passed (1.7m)
🎭 Playwright Run Summary
6 skipped 91 passed (2.3m)
🎭 Playwright Run Summary
4 skipped 93 passed (2.3m)
🎭 Playwright Run Summary
2 skipped 95 passed (1.4m)
🎭 Playwright Run Summary
1 flaky clipboard/list.spec.ts:134:1 › paste a nested list to a nested list ──────────────────────────── 2 skipped 94 passed (1.3m)
🎭 Playwright Run Summary
1 skipped 96 passed (2.8m)
🎭 Playwright Run Summary
12 skipped 85 passed (2.2m)
🎭 Playwright Run Summary
1 skipped 46 passed (3.9m)
🎭 Playwright Run Summary
3 skipped 44 passed (3.8m)
🎭 Playwright Run Summary
47 passed (4.1m)
🎭 Playwright Run Summary
1 skipped 46 passed (4.3m)
🎭 Playwright Run Summary
1 passed (1.1m)
🎭 Playwright Run Summary
2 flaky links.spec.ts:279:1 › allow switching to embed view when linking to the other document with mode links.spec.ts:568:1 › should show edgeless content when switching card view of linked mode doc in edgeless 45 passed (4.6m)
🎭 Playwright Run Summary
3 passed (1.7m)
🎭 Playwright Run Summary
2 skipped 6 passed (2.9m)
🎭 Playwright Run Summary
11 passed (4.9m)

Artifacts

Produced during runtime
Name Size Digest
affine.darwin-arm64.node Expired
1.92 MB
sha256:48a4bfe5930e3a7a9c5b94b1725dba4301729586ccebf5c887931504dd8acf87
affine.darwin-x64.node Expired
2.04 MB
sha256:271028bf4ac8e33c777e12f043da1435df1fd308f64b93aa42f4e501076d4356
affine.linux-x64-gnu.node Expired
2.07 MB
sha256:fa4b349608ddf9f11e5f6b4a9dd3bfc5eb14f4d8e8f0b19295c2892df335d593
affine.win32-x64-msvc.node Expired
2.44 MB
sha256:15136e4f903977d18ae6570d0c48930c2c9759d97a3a5a565c9a3a98c24cb8d0
android Expired
60.9 MB
sha256:13ed4d821d936b0a25772973677be5f8427864be2eb2cdc79b2343f6a3416866
ios Expired
61.3 MB
sha256:6cb5334de1ef5099d7e13f98e98267efe0b01b97259e48e02f0f90823a84f55c
server-native.node Expired
4.33 MB
sha256:11f4cdd0ffd694cc76ea71248e737740ea784d2014f2c860601f2d5ecb1b32ac
web Expired
62.8 MB
sha256:76750abdead43ee2ecdd42cc7a682bdf73006e1edae80421acba5acd6cf68d39