fix(core): shared page's present button not working #5463
build-test.yml
on: pull_request
Matrix: build-native
Build Storage
1m 17s
Matrix: Analyze
Matrix: E2E Test
Build @affine/core
1m 54s
Lint
3m 14s
Check yarn binary
5s
E2E Migration Test
2m 41s
Matrix: server-e2e-test
Matrix: desktop-test
3, 2, 1 Launch
0s
Annotations
6 errors, 7 warnings, and 10 notices
page-properties.spec.ts:37:5 › allow create tag:
tests/kit/utils/editor.ts#L10
1) page-properties.spec.ts:37:5 › allow create tag ───────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button class="affine-14rstau" data-testid="switch-page-…>…</button>
- 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
- performing click action
- click action done
- waiting for scheduled navigations to finish
at ../../kit/utils/editor.ts:10
8 |
9 | export async function clickPageModeButton(page: Page) {
> 10 | return page.getByTestId('switch-page-mode-button').click({
| ^
11 | delay: 50,
12 | });
13 | }
at clickPageModeButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/editor.ts:10:54)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/page-properties.spec.ts:31:28
|
page-properties.spec.ts:37:5 › allow create tag:
tests/kit/utils/editor.ts#L10
1) page-properties.spec.ts:37:5 › allow create tag ───────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button class="affine-14rstau" data-testid="switch-page-…>…</button>
- 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
- performing click action
at ../../kit/utils/editor.ts:10
8 |
9 | export async function clickPageModeButton(page: Page) {
> 10 | return page.getByTestId('switch-page-mode-button').click({
| ^
11 | delay: 50,
12 | });
13 | }
at clickPageModeButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/editor.ts:10:54)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/page-properties.spec.ts:31:28
|
page-properties.spec.ts:50:5 › allow create tag on journals page:
tests/kit/utils/editor.ts#L10
2) page-properties.spec.ts:50:5 › allow create tag on journals page ──────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button class="affine-14rstau" data-testid="switch-page-…>…</button>
- 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
- performing click action
at ../../kit/utils/editor.ts:10
8 |
9 | export async function clickPageModeButton(page: Page) {
> 10 | return page.getByTestId('switch-page-mode-button').click({
| ^
11 | delay: 50,
12 | });
13 | }
at clickPageModeButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/editor.ts:10:54)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/page-properties.spec.ts:31:28
|
page-properties.spec.ts:50:5 › allow create tag on journals page:
tests/kit/utils/editor.ts#L10
2) page-properties.spec.ts:50:5 › allow create tag on journals page ──────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button class="affine-14rstau" data-testid="switch-page-…>…</button>
- 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
- performing click action
at ../../kit/utils/editor.ts:10
8 |
9 | export async function clickPageModeButton(page: Page) {
> 10 | return page.getByTestId('switch-page-mode-button').click({
| ^
11 | delay: 50,
12 | });
13 | }
at clickPageModeButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/editor.ts:10:54)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/page-properties.spec.ts:31:28
|
collaboration.spec.ts:192:5 › can sync collections between different browser:
tests/affine-cloud/e2e/collaboration.spec.ts#L218
1) collaboration.spec.ts:192:5 › can sync collections between different browser ──────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByTestId('collections').getByText('test collection')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByTestId('collections').getByText('test collection')
216 | await page2.goto(page.url());
217 | const collections = page2.getByTestId('collections');
> 218 | await expect(collections.getByText('test collection')).toBeVisible();
| ^
219 | }
220 | });
221 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:218:60
|
collaboration.spec.ts:192:5 › can sync collections between different browser:
tests/affine-cloud/e2e/collaboration.spec.ts#L218
1) collaboration.spec.ts:192:5 › can sync collections between different browser ──────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByTestId('collections').getByText('test collection')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByTestId('collections').getByText('test collection')
216 | await page2.goto(page.url());
217 | const collections = page2.getByTestId('collections');
> 218 | await expect(collections.getByText('test collection')).toBeVisible();
| ^
219 | }
220 | });
221 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:218:60
|
Slow Test:
tests/affine-migration/basic.spec.ts#L1
tests/affine-migration/basic.spec.ts took 1.1m
|
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-cloud/login.spec.ts#L1
tests/affine-cloud/login.spec.ts took 1.6m
|
Slow Test:
tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 1.1m
|
Slow Test:
tests/affine-cloud/workspace.spec.ts#L1
tests/affine-cloud/workspace.spec.ts took 27.5s
|
Slow Test:
tests/affine-cloud/collaboration.spec.ts#L1
tests/affine-cloud/collaboration.spec.ts took 5.9m
|
🎭 Playwright Run Summary
4 passed (1.2m)
|
🎭 Playwright Run Summary
24 passed (2.5m)
|
🎭 Playwright Run Summary
2 flaky
page-properties.spec.ts:37:5 › allow create tag ────────────────────────────────────────────────
page-properties.spec.ts:50:5 › allow create tag on journals page ───────────────────────────────
22 passed (2.9m)
|
🎭 Playwright Run Summary
3 skipped
22 passed (2.7m)
|
🎭 Playwright Run Summary
25 passed (2.5m)
|
🎭 Playwright Run Summary
25 passed (3.0m)
|
🎭 Playwright Run Summary
1 passed (52.4s)
|
🎭 Playwright Run Summary
4 passed (1.9m)
|
🎭 Playwright Run Summary
1 skipped
3 passed (1.9m)
|
🎭 Playwright Run Summary
1 flaky
collaboration.spec.ts:192:5 › can sync collections between different browser ───────────────────
5 passed (6.2m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
affine.darwin-arm64.node
Expired
|
1.37 MB |
|
affine.darwin-x64.node
Expired
|
1.48 MB |
|
affine.linux-x64-gnu.node
Expired
|
1.51 MB |
|
affine.win32-x64-msvc.node
Expired
|
1.53 MB |
|
core
Expired
|
43.2 MB |
|
storage.node
Expired
|
493 KB |
|