refactor(editor): reorg code structure of store package #21906
Annotations
10 errors, 1 warning, and 1 notice
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L21
1) layout.spec.ts:16:5 › Expand Sidebar ──────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
- locator resolved to <div data-show="true" data-testid="app-sidebar-arrow-button-collapse" class="sidebar-switch_sidebarSwitchClip__10v79zt0">…</div>
- 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
19 | await page
20 | .locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
> 21 | .click();
| ^
22 | const sliderBarArea = page.getByTestId('sliderBar-inner');
23 | await expect(sliderBarArea).not.toBeInViewport();
24 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:21:6
|
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L21
1) layout.spec.ts:16:5 › Expand Sidebar ──────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
- locator resolved to <div data-show="true" data-testid="app-sidebar-arrow-button-collapse" class="sidebar-switch_sidebarSwitchClip__10v79zt0">…</div>
- 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
19 | await page
20 | .locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
> 21 | .click();
| ^
22 | const sliderBarArea = page.getByTestId('sliderBar-inner');
23 | await expect(sliderBarArea).not.toBeInViewport();
24 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:21:6
|
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L21
1) layout.spec.ts:16:5 › Expand Sidebar ──────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
- locator resolved to <div data-show="true" data-testid="app-sidebar-arrow-button-collapse" class="sidebar-switch_sidebarSwitchClip__10v79zt0">…</div>
- 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
19 | await page
20 | .locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
> 21 | .click();
| ^
22 | const sliderBarArea = page.getByTestId('sliderBar-inner');
23 | await expect(sliderBarArea).not.toBeInViewport();
24 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:21:6
|
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L21
1) layout.spec.ts:16:5 › Expand Sidebar ──────────────────────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
- locator resolved to <div data-show="true" data-testid="app-sidebar-arrow-button-collapse" class="sidebar-switch_sidebarSwitchClip__10v79zt0">…</div>
- 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
19 | await page
20 | .locator('[data-testid=app-sidebar-arrow-button-collapse][data-show=true]')
> 21 | .click();
| ^
22 | const sliderBarArea = page.getByTestId('sliderBar-inner');
23 | await expect(sliderBarArea).not.toBeInViewport();
24 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:21:6
|
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L40
2) layout.spec.ts:31:5 › Click resizer can close sidebar ─────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('app-sidebar-wrapper').getByTestId('resize-handle')
- locator resolved to <div data-open="true" data-state="closed" data-resizing="false" data-testid="resize-handle" data-handle-position="right" class="resize-panel_resizeHandleContainer__zq5xov7">…</div>
- 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
38 | .getByTestId('app-sidebar-wrapper')
39 | .getByTestId('resize-handle')
> 40 | .click();
| ^
41 | await expect(sliderBarArea).not.toBeInViewport();
42 | });
43 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:40:6
|
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L40
2) layout.spec.ts:31:5 › Click resizer can close sidebar ─────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('app-sidebar-wrapper').getByTestId('resize-handle')
- locator resolved to <div data-open="true" data-state="closed" data-resizing="false" data-testid="resize-handle" data-handle-position="right" class="resize-panel_resizeHandleContainer__zq5xov7">…</div>
- 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
38 | .getByTestId('app-sidebar-wrapper')
39 | .getByTestId('resize-handle')
> 40 | .click();
| ^
41 | await expect(sliderBarArea).not.toBeInViewport();
42 | });
43 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:40:6
|
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L40
2) layout.spec.ts:31:5 › Click resizer can close sidebar ─────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('app-sidebar-wrapper').getByTestId('resize-handle')
- locator resolved to <div data-open="true" data-state="closed" data-resizing="false" data-testid="resize-handle" data-handle-position="right" class="resize-panel_resizeHandleContainer__zq5xov7">…</div>
- 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
38 | .getByTestId('app-sidebar-wrapper')
39 | .getByTestId('resize-handle')
> 40 | .click();
| ^
41 | await expect(sliderBarArea).not.toBeInViewport();
42 | });
43 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:40:6
|
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L40
2) layout.spec.ts:31:5 › Click resizer can close sidebar ─────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('app-sidebar-wrapper').getByTestId('resize-handle')
- locator resolved to <div data-open="true" data-state="closed" data-resizing="false" data-testid="resize-handle" data-handle-position="right" class="resize-panel_resizeHandleContainer__zq5xov7">…</div>
- 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
38 | .getByTestId('app-sidebar-wrapper')
39 | .getByTestId('resize-handle')
> 40 | .click();
| ^
41 | await expect(sliderBarArea).not.toBeInViewport();
42 | });
43 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:40:6
|
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L53
3) layout.spec.ts:44:5 › Drag resizer can resize sidebar ─────────────────────────────────────────
TimeoutError: locator.hover: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('app-sidebar-wrapper').getByTestId('resize-handle')
- locator resolved to <div data-open="true" data-state="closed" data-resizing="false" data-testid="resize-handle" data-handle-position="right" class="resize-panel_resizeHandleContainer__zq5xov7">…</div>
- attempting hover action
2 × waiting for element to be visible and stable
- element is visible and stable
- scrolling into view if needed
- done scrolling
- <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events
- retrying hover action
- waiting 20ms
2 × waiting for element to be visible and stable
- element is visible and stable
- scrolling into view if needed
- done scrolling
- <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events
- retrying hover action
- waiting 100ms
9 × waiting for element to be visible and stable
- element is visible and stable
- scrolling into view if needed
- done scrolling
- <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events
- retrying hover action
- waiting 500ms
51 | .getByTestId('app-sidebar-wrapper')
52 | .getByTestId('resize-handle');
> 53 | await sliderResizer.hover();
| ^
54 | await page.mouse.down();
55 | await page.mouse.move(400, 300, {
56 | steps: 10,
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:53:23
|
Run playwright tests:
tests/affine-local/e2e/layout.spec.ts#L53
3) layout.spec.ts:44:5 › Drag resizer can resize sidebar ─────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.hover: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('app-sidebar-wrapper').getByTestId('resize-handle')
- locator resolved to <div data-open="true" data-state="closed" data-resizing="false" data-testid="resize-handle" data-handle-position="right" class="resize-panel_resizeHandleContainer__zq5xov7">…</div>
- attempting hover action
2 × waiting for element to be visible and stable
- element is visible and stable
- scrolling into view if needed
- done scrolling
- <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events
- retrying hover action
- waiting 20ms
2 × waiting for element to be visible and stable
- element is visible and stable
- scrolling into view if needed
- done scrolling
- <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events
- retrying hover action
- waiting 100ms
9 × waiting for element to be visible and stable
- element is visible and stable
- scrolling into view if needed
- done scrolling
- <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events
- retrying hover action
- waiting 500ms
51 | .getByTestId('app-sidebar-wrapper')
52 | .getByTestId('resize-handle');
> 53 | await sliderResizer.hover();
| ^
54 | await page.mouse.down();
55 | await page.mouse.move(400, 300, {
56 | steps: 10,
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/layout.spec.ts:53:23
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run playwright tests
34 failed
layout.spec.ts:16:5 › Expand Sidebar ───────────────────────────────────────────────────────────
layout.spec.ts:31:5 › Click resizer can close sidebar ──────────────────────────────────────────
layout.spec.ts:44:5 › Drag resizer can resize sidebar ──────────────────────────────────────────
layout.spec.ts:63:5 › Sidebar in between sm & md breakpoint ────────────────────────────────────
links.spec.ts:30:5 › not allowed to switch to embed view when linking to the same document ─────
links.spec.ts:74:5 › not allowed to switch to embed view when linking to block ─────────────────
links.spec.ts:157:5 › allow switching to embed view when linking to the other document without mode
links.spec.ts:249:5 › allow switching to embed view when linking to the other document with mode
links.spec.ts:359:5 › @ popover should show today menu item ────────────────────────────────────
links.spec.ts:377:5 › @ popover with input=tmr ─────────────────────────────────────────────────
links.spec.ts:397:5 › @ popover with input=dec should create a reference with a December date ──
links.spec.ts:421:5 › @ popover with click "select a specific date" should show a date picker ──
links.spec.ts:446:5 › linked doc should show markdown preview in the backlink section ──────────
links.spec.ts:474:5 › the viewport should be fit when the linked document is with edgeless mode
links.spec.ts:538:5 › should show edgeless content when switching card view of linked mode doc in edgeless
links.spec.ts:609:7 › Customize linked doc title and description › should set a custom title for inline link
links.spec.ts:660:7 › Customize linked doc title and description › should set a custom title and description for card link
links.spec.ts:767:7 › Customize linked doc title and description › should automatically switch to card view and set a custom title and description
local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it ─
local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar ─────────────────
local-first-collections-items.spec.ts:109:5 › edit collection ──────────────────────────────────
local-first-collections-items.spec.ts:127:5 › edit collection and change filter date ───────────
local-first-collections-items.spec.ts:145:5 › add collection from sidebar ──────────────────────
local-first-delete-page.spec.ts:13:5 › page delete -> refresh page -> it should be disappear ───
local-first-delete-page.spec.ts:48:5 › page delete -> create new page -> refresh page -> new page should be appear -> old page should be disappear
local-first-delete-page.spec.ts:103:5 › delete multiple pages -> create multiple pages -> refresh
local-first-delete-workspace.spec.ts:11:5 › Create new workspace, then delete it ───────────────
local-first-delete-workspace.spec.ts:59:5 › Delete last workspace ──────────────────────────────
local-first-favorite-page.spec.ts:12:5 › New a page and open it, then favorite it ──────────────
local-first-favorite-page.spec.ts:36:5 › Export to html, markdown and png ──────────────────────
local-first-favorite-page.spec.ts:64:5 › Cancel favorite ───────────────────────────────────────
local-first-favorites-items.spec.ts:16:5 › Show favorite items in sidebar ──────────────────────
local-first-favorites-items.spec.ts:42:5 › Show favorite reference in sidebar ──────────────────
local-first-favorites-items.spec.ts:84:5 › Deleted page's reference will not be shown in sidebar
2 skipped
|
Loading