refactor: pdf viewer components #18055
build-test.yml
on: pull_request
Build Server native
1m 22s
Matrix: build-native
Build @affine/electron renderer
3m 0s
Matrix: Analyze
Matrix: E2E Mobile Test
Matrix: E2E Test
test-build-mobile-app
/
build-android-web
3m 23s
test-build-mobile-app
/
build-ios-web
3m 8s
Lint
5m 18s
Check yarn binary
13s
E2E Migration Test
3m 43s
Matrix: Server Copilot E2E Test
Server Copilot Api Test
28s
Matrix: server-e2e-test
Matrix: desktop-test
3, 2, 1 Launch
0s
Annotations
18 errors, 18 warnings, and 15 notices
[Mobile Safari] › explorer-tag.spec.ts:55:5 › create a tag from explorer:
tests/affine-mobile/e2e/explorer-tag.spec.ts#L41
1) [Mobile Safari] › explorer-tag.spec.ts:55:5 › create a tag from explorer ──────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "rename-input"
Received: null
39 | // input name
40 | const focusedTestid = await getAttrOfActiveElement(page);
> 41 | expect(focusedTestid).toEqual('rename-input');
| ^
42 | await page.keyboard.type(name);
43 | // set color
44 | await changeTagColor(dialog, color);
at createRootTag (/home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/explorer-tag.spec.ts:41:25)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/explorer-tag.spec.ts:56:3
|
[Mobile Safari] › explorer-tag.spec.ts:59:5 › rename a tag from explorer:
tests/affine-mobile/e2e/explorer-tag.spec.ts#L67
2) [Mobile Safari] › explorer-tag.spec.ts:59:5 › rename a tag from explorer ──────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "rename-input"
Received: null
65 | await menu.getByTestId('rename-tag').tap();
66 | const focusedTestid = await getAttrOfActiveElement(page);
> 67 | expect(focusedTestid).toEqual('rename-input');
| ^
68 | await page.keyboard.type(appendedName);
69 | await menu.getByTestId('rename-confirm').tap();
70 | await expect(tag).not.toBeVisible();
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/explorer-tag.spec.ts:67:25
|
[Mobile Safari] › explorer-folder.spec.ts:54:5 › create a sub folder:
tests/affine-mobile/e2e/explorer-folder.spec.ts#L1
1) [Mobile Safari] › explorer-folder.spec.ts:54:5 › create a sub folder ──────────────────────────
Test timeout of 60000ms exceeded.
|
[Mobile Safari] › explorer-folder.spec.ts:54:5 › create a sub folder:
tests/affine-mobile/e2e/explorer-folder.spec.ts#L24
1) [Mobile Safari] › explorer-folder.spec.ts:54:5 › create a sub folder ──────────────────────────
Error: locator.tap: Test timeout of 60000ms exceeded.
Call log:
- waiting for locator('[data-collapsible]:has-text("organize")').locator('~ [data-testid="collapsible-section-content"]').getByTestId('explorer-bar-add-organize-button')
- locator resolved to <div data-testid="explorer-bar-add-organize-button" class="add-item-placeholder_wrapper__vnvu5c0 node_itemRoot__87otjc1">…</div>
- attempting tap action
- 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 tap action, attempt #1
- 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 tap action, attempt #2
- waiting 20ms
- 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 tap action, attempt #3
- waiting 100ms
- 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 tap action, attempt #4
- waiting 100ms
- 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 tap action, attempt #5
- waiting 500ms
- 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 tap action, attempt #6
- waiting 500ms
- 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 tap action, attempt #7
- waiting 500ms
- 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 tap action, attempt #8
- waiting 500ms
- 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 tap action, attempt #9
- waiting 500ms
- 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 tap action, attempt #10
- waiting 500ms
- waiting for element to be visible, enabled
|
navigation.spec.ts:19:5 › back and forward buttons:
tests/affine-local/e2e/navigation.spec.ts#L1
1) navigation.spec.ts:19:5 › back and forward buttons ────────────────────────────────────────────
Test timeout of 50000ms exceeded.
|
navigation.spec.ts:19:5 › back and forward buttons:
tests/affine-local/e2e/navigation.spec.ts#L35
1) navigation.spec.ts:19:5 › back and forward buttons ────────────────────────────────────────────
Error: page.waitForURL: Test timeout of 50000ms exceeded.
=========================== logs ===========================
waiting for navigation until "load"
============================================================
33 | await page.waitForURL(url => url.pathname.endsWith('collection'));
34 | await page.getByTestId('workspace-tags-button').click({ delay: 50 });
> 35 | await page.waitForURL(url => url.pathname.endsWith('tag'));
| ^
36 |
37 | await page.goBack();
38 | await page.waitForURL(url => url.pathname.endsWith('collection'));
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/navigation.spec.ts:35:14
|
page-properties.spec.ts:96:5 › add custom property & edit:
tests/kit/utils/properties.ts#L113
2) page-properties.spec.ts:96:5 › add custom property & edit ─────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('button', { name: 'Add property' })
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('button', { name: 'Add property' })
at ../../kit/utils/properties.ts:113
111 | await expect(
112 | root.getByRole('button', { name: 'Add property' })
> 113 | ).toBeVisible();
| ^
114 | };
115 |
116 | export const togglePropertyListVisibility = async (page: Page) => {
at ensureAddPropertyButtonVisible (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/properties.ts:113:5)
|
page-properties.spec.ts:96:5 › add custom property & edit:
tests/kit/utils/properties.ts#L24
2) page-properties.spec.ts:96:5 › add custom property & edit ─────────────────────────────────────
Error: locator.click: Test ended.
Call log:
- waiting for locator('[data-testid="doc-property-name"]:has-text("checkbox") + *')
- locator resolved to <div data-empty="false" data-readonly="false" data-hoverable="true" data-property-value="true" class="property_propertyValueContainer__lv10bo6 checkbox_container__6ipxee1">…</div>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #4
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #5
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #6
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #7
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #8
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #9
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #10
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #11
- waiting 500ms
- waiting for element to be visible, enabled and stable
|
attachment-preview.spec.ts:36:5 › attachment preview should be shown:
tests/affine-local/e2e/attachment-preview.spec.ts#L57
1) attachment-preview.spec.ts:36:5 › attachment preview should be shown ──────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
55 |
56 | const pageCount = attachmentViewer.locator('.page-count');
> 57 | expect(await pageCount.textContent()).toBe('1');
| ^
58 | const pageTotal = attachmentViewer.locator('.page-total');
59 | expect(await pageTotal.textContent()).toBe('3');
60 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:57:41
|
attachment-preview.spec.ts:36:5 › attachment preview should be shown:
tests/affine-local/e2e/attachment-preview.spec.ts#L57
1) attachment-preview.spec.ts:36:5 › attachment preview should be shown ──────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
55 |
56 | const pageCount = attachmentViewer.locator('.page-count');
> 57 | expect(await pageCount.textContent()).toBe('1');
| ^
58 | const pageTotal = attachmentViewer.locator('.page-total');
59 | expect(await pageTotal.textContent()).toBe('3');
60 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:57:41
|
attachment-preview.spec.ts:36:5 › attachment preview should be shown:
tests/affine-local/e2e/attachment-preview.spec.ts#L57
1) attachment-preview.spec.ts:36:5 › attachment preview should be shown ──────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
55 |
56 | const pageCount = attachmentViewer.locator('.page-count');
> 57 | expect(await pageCount.textContent()).toBe('1');
| ^
58 | const pageTotal = attachmentViewer.locator('.page-total');
59 | expect(await pageTotal.textContent()).toBe('3');
60 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:57:41
|
attachment-preview.spec.ts:36:5 › attachment preview should be shown:
tests/affine-local/e2e/attachment-preview.spec.ts#L57
1) attachment-preview.spec.ts:36:5 › attachment preview should be shown ──────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
55 |
56 | const pageCount = attachmentViewer.locator('.page-count');
> 57 | expect(await pageCount.textContent()).toBe('1');
| ^
58 | const pageTotal = attachmentViewer.locator('.page-total');
59 | expect(await pageTotal.textContent()).toBe('3');
60 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:57:41
|
attachment-preview.spec.ts:77:5 › attachment preview can be expanded:
tests/affine-local/e2e/attachment-preview.spec.ts#L103
2) attachment-preview.spec.ts:77:5 › attachment preview can be expanded ──────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
101 |
102 | const pageCount = attachmentViewer.locator('.page-count');
> 103 | expect(await pageCount.textContent()).toBe('1');
| ^
104 | const pageTotal = attachmentViewer.locator('.page-total');
105 | expect(await pageTotal.textContent()).toBe('3');
106 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:103:41
|
attachment-preview.spec.ts:77:5 › attachment preview can be expanded:
tests/affine-local/e2e/attachment-preview.spec.ts#L103
2) attachment-preview.spec.ts:77:5 › attachment preview can be expanded ──────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
101 |
102 | const pageCount = attachmentViewer.locator('.page-count');
> 103 | expect(await pageCount.textContent()).toBe('1');
| ^
104 | const pageTotal = attachmentViewer.locator('.page-total');
105 | expect(await pageTotal.textContent()).toBe('3');
106 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:103:41
|
attachment-preview.spec.ts:77:5 › attachment preview can be expanded:
tests/affine-local/e2e/attachment-preview.spec.ts#L103
2) attachment-preview.spec.ts:77:5 › attachment preview can be expanded ──────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
101 |
102 | const pageCount = attachmentViewer.locator('.page-count');
> 103 | expect(await pageCount.textContent()).toBe('1');
| ^
104 | const pageTotal = attachmentViewer.locator('.page-total');
105 | expect(await pageTotal.textContent()).toBe('3');
106 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:103:41
|
attachment-preview.spec.ts:77:5 › attachment preview can be expanded:
tests/affine-local/e2e/attachment-preview.spec.ts#L103
2) attachment-preview.spec.ts:77:5 › attachment preview can be expanded ──────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
101 |
102 | const pageCount = attachmentViewer.locator('.page-count');
> 103 | expect(await pageCount.textContent()).toBe('1');
| ^
104 | const pageTotal = attachmentViewer.locator('.page-total');
105 | expect(await pageTotal.textContent()).toBe('3');
106 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:103:41
|
E2E Test (1)
Process completed with exit code 1.
|
3, 2, 1 Launch
Process completed with exit code 1.
|
Slow Test:
tests/affine-mobile/[Mobile Chrome] › explorer-favorite.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › explorer-favorite.spec.ts took 44.7s
|
Slow Test:
tests/affine-migration/basic.spec.ts#L1
tests/affine-migration/basic.spec.ts took 1.4m
|
Slow Test:
tests/affine-mobile/[Mobile Chrome] › explorer-tag.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › explorer-tag.spec.ts took 46.2s
|
Slow Test:
tests/affine-mobile/[Mobile Safari] › explorer-folder.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › explorer-folder.spec.ts took 48.2s
|
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 (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'.
|
Slow Test:
tests/affine-local/local-first-show-delete-modal.spec.ts#L1
tests/affine-local/local-first-show-delete-modal.spec.ts took 54.7s
|
Slow Test:
tests/affine-local/local-first-restore-page.spec.ts#L1
tests/affine-local/local-first-restore-page.spec.ts took 45.4s
|
Slow Test:
tests/affine-local/open-affine.spec.ts#L1
tests/affine-local/open-affine.spec.ts took 22.4s
|
Slow Test:
tests/affine-local/quick-search.spec.ts#L1
tests/affine-local/quick-search.spec.ts took 17.5s
|
Slow Test:
tests/affine-local/local-first-avatar.spec.ts#L1
tests/affine-local/local-first-avatar.spec.ts took 20.2s
|
Slow Test:
tests/affine-desktop-cloud/basic.spec.ts#L1
tests/affine-desktop-cloud/basic.spec.ts took 58.6s
|
Slow Test:
tests/affine-cloud/workspace.spec.ts#L1
tests/affine-cloud/workspace.spec.ts took 1.5m
|
Slow Test:
tests/affine-cloud/collaboration.spec.ts#L1
tests/affine-cloud/collaboration.spec.ts took 2.8m
|
Slow Test:
tests/affine-cloud/login.spec.ts#L1
tests/affine-cloud/login.spec.ts took 1.4m
|
Slow Test:
tests/affine-cloud/share-page.spec.ts#L1
tests/affine-cloud/share-page.spec.ts took 3.4m
|
Slow Test:
tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 56.0s
|
Slow Test:
tests/affine-cloud/open-in-app.spec.ts#L1
tests/affine-cloud/open-in-app.spec.ts took 54.8s
|
🎭 Playwright Run Summary
6 passed (1.4m)
|
🎭 Playwright Run Summary
6 passed (1.3m)
|
🎭 Playwright Run Summary
4 passed (1.5m)
|
🎭 Playwright Run Summary
6 passed (1.3m)
|
🎭 Playwright Run Summary
2 flaky
[Mobile Safari] › explorer-tag.spec.ts:55:5 › create a tag from explorer ───────────────────────
[Mobile Safari] › explorer-tag.spec.ts:59:5 › rename a tag from explorer ───────────────────────
4 passed (1.7m)
|
🎭 Playwright Run Summary
1 flaky
[Mobile Safari] › explorer-folder.spec.ts:54:5 › create a sub folder ───────────────────────────
5 passed (2.4m)
|
🎭 Playwright Run Summary
32 passed (3.7m)
|
🎭 Playwright Run Summary
33 passed (3.9m)
|
🎭 Playwright Run Summary
2 flaky
navigation.spec.ts:19:5 › back and forward buttons ─────────────────────────────────────────────
page-properties.spec.ts:96:5 › add custom property & edit ──────────────────────────────────────
2 skipped
28 passed (4.0m)
|
🎭 Playwright Run Summary
2 skipped
31 passed (4.1m)
|
🎭 Playwright Run Summary
2 failed
attachment-preview.spec.ts:36:5 › attachment preview should be shown ───────────────────────────
attachment-preview.spec.ts:77:5 › attachment preview can be expanded ───────────────────────────
1 skipped
30 passed (4.4m)
|
🎭 Playwright Run Summary
1 passed (1.2m)
|
🎭 Playwright Run Summary
2 passed (1.8m)
|
🎭 Playwright Run Summary
1 skipped
7 passed (4.7m)
|
🎭 Playwright Run Summary
1 skipped
9 passed (5.7m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
affine.darwin-arm64.node
Expired
|
1.48 MB |
|
affine.darwin-x64.node
Expired
|
1.57 MB |
|
affine.linux-x64-gnu.node
Expired
|
1.61 MB |
|
affine.win32-x64-msvc.node
Expired
|
1.7 MB |
|
android
Expired
|
58.4 MB |
|
ios
Expired
|
58.4 MB |
|
server-native.node
Expired
|
4.32 MB |
|
test-results-e2e-1
Expired
|
20.5 MB |
|
web
Expired
|
64.8 MB |
|