refactor(editor): reorg code structure of store package #21906
Annotations
10 errors, 1 warning, and 1 notice
Run playwright tests:
tests/affine-local/e2e/local-first-favorites-items.spec.ts#L149
1) local-first-favorites-items.spec.ts:145:5 › Add new favorite page via sidebar ─────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('explorer-bar-add-favorite-button').first()
- locator resolved to <button data-size="custom" data-icon-size="16" data-mobile="false" data-state="closed" data-variant="custom" data-icon-variant="plain" data-event-args-control="addFavorite" data-testid="explorer-bar-add-favorite-button" data-event-props="$.navigationPanel.favorites.createDoc" class="button_button__ph3zqme button_iconButton__ph3zqmh">…</button>
- 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
147 | await waitForEditorLoad(page);
148 |
> 149 | await page.getByTestId('explorer-bar-add-favorite-button').first().click();
| ^
150 | await clickPageModeButton(page);
151 | await waitForEmptyEditor(page);
152 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-favorites-items.spec.ts:149:70
|
Run playwright tests:
tests/affine-local/e2e/local-first-favorites-items.spec.ts#L149
1) local-first-favorites-items.spec.ts:145:5 › Add new favorite page via sidebar ─────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('explorer-bar-add-favorite-button').first()
- locator resolved to <button data-size="custom" data-icon-size="16" data-mobile="false" data-state="closed" data-variant="custom" data-icon-variant="plain" data-event-args-control="addFavorite" data-testid="explorer-bar-add-favorite-button" data-event-props="$.navigationPanel.favorites.createDoc" class="button_button__ph3zqme button_iconButton__ph3zqmh">…</button>
- 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
147 | await waitForEditorLoad(page);
148 |
> 149 | await page.getByTestId('explorer-bar-add-favorite-button').first().click();
| ^
150 | await clickPageModeButton(page);
151 | await waitForEmptyEditor(page);
152 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-favorites-items.spec.ts:149:70
|
Run playwright tests:
tests/affine-local/e2e/local-first-favorites-items.spec.ts#L149
1) local-first-favorites-items.spec.ts:145:5 › Add new favorite page via sidebar ─────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('explorer-bar-add-favorite-button').first()
- locator resolved to <button data-size="custom" data-icon-size="16" data-mobile="false" data-state="closed" data-variant="custom" data-icon-variant="plain" data-event-args-control="addFavorite" data-testid="explorer-bar-add-favorite-button" data-event-props="$.navigationPanel.favorites.createDoc" class="button_button__ph3zqme button_iconButton__ph3zqmh">…</button>
- 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
147 | await waitForEditorLoad(page);
148 |
> 149 | await page.getByTestId('explorer-bar-add-favorite-button').first().click();
| ^
150 | await clickPageModeButton(page);
151 | await waitForEmptyEditor(page);
152 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-favorites-items.spec.ts:149:70
|
Run playwright tests:
tests/affine-local/e2e/local-first-favorites-items.spec.ts#L149
1) local-first-favorites-items.spec.ts:145:5 › Add new favorite page via sidebar ─────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('explorer-bar-add-favorite-button').first()
- locator resolved to <button data-size="custom" data-icon-size="16" data-mobile="false" data-state="closed" data-variant="custom" data-icon-variant="plain" data-event-args-control="addFavorite" data-testid="explorer-bar-add-favorite-button" data-event-props="$.navigationPanel.favorites.createDoc" class="button_button__ph3zqme button_iconButton__ph3zqmh">…</button>
- 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
147 | await waitForEditorLoad(page);
148 |
> 149 | await page.getByTestId('explorer-bar-add-favorite-button').first().click();
| ^
150 | await clickPageModeButton(page);
151 | await waitForEmptyEditor(page);
152 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-favorites-items.spec.ts:149:70
|
Run playwright tests:
tests/kit/utils/page-logic.ts#L39
2) local-first-new-page.spec.ts:11:5 › click btn new page ────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button role="radio" value="page" type="button" tabindex="-1" aria-checked="false" data-state="unchecked" data-radix-collection-item="" data-testid="switch-page-mode-button" class="styles_radioButton__2mzioa4 style_switchItem__il1iiq0">…</button>
- 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
at ../../kit/utils/page-logic.ts:39
37 | const edgelessPage = page.locator('edgeless-editor');
38 | if (await edgelessPage.isVisible()) {
> 39 | await page.getByTestId('switch-page-mode-button').click({
| ^
40 | delay: 100,
41 | });
42 | }
at clickNewPageButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/page-logic.ts:39:55)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-new-page.spec.ts:15:3
|
Run playwright tests:
tests/kit/utils/page-logic.ts#L39
2) local-first-new-page.spec.ts:11:5 › click btn new page ────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button role="radio" value="page" type="button" tabindex="-1" aria-checked="false" data-state="unchecked" data-radix-collection-item="" data-testid="switch-page-mode-button" class="styles_radioButton__2mzioa4 style_switchItem__il1iiq0">…</button>
- 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
at ../../kit/utils/page-logic.ts:39
37 | const edgelessPage = page.locator('edgeless-editor');
38 | if (await edgelessPage.isVisible()) {
> 39 | await page.getByTestId('switch-page-mode-button').click({
| ^
40 | delay: 100,
41 | });
42 | }
at clickNewPageButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/page-logic.ts:39:55)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-new-page.spec.ts:15:3
|
Run playwright tests:
tests/kit/utils/page-logic.ts#L39
2) local-first-new-page.spec.ts:11:5 › click btn new page ────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button role="radio" value="page" type="button" tabindex="-1" aria-checked="false" data-state="unchecked" data-radix-collection-item="" data-testid="switch-page-mode-button" class="styles_radioButton__2mzioa4 style_switchItem__il1iiq0">…</button>
- 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
at ../../kit/utils/page-logic.ts:39
37 | const edgelessPage = page.locator('edgeless-editor');
38 | if (await edgelessPage.isVisible()) {
> 39 | await page.getByTestId('switch-page-mode-button').click({
| ^
40 | delay: 100,
41 | });
42 | }
at clickNewPageButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/page-logic.ts:39:55)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-new-page.spec.ts:15:3
|
Run playwright tests:
tests/kit/utils/page-logic.ts#L39
2) local-first-new-page.spec.ts:11:5 › click btn new page ────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button role="radio" value="page" type="button" tabindex="-1" aria-checked="false" data-state="unchecked" data-radix-collection-item="" data-testid="switch-page-mode-button" class="styles_radioButton__2mzioa4 style_switchItem__il1iiq0">…</button>
- 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
at ../../kit/utils/page-logic.ts:39
37 | const edgelessPage = page.locator('edgeless-editor');
38 | if (await edgelessPage.isVisible()) {
> 39 | await page.getByTestId('switch-page-mode-button').click({
| ^
40 | delay: 100,
41 | });
42 | }
at clickNewPageButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/page-logic.ts:39:55)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-new-page.spec.ts:15:3
|
Run playwright tests:
tests/kit/utils/page-logic.ts#L39
3) local-first-new-page.spec.ts:23:5 › click btn bew page and find it in all pages ───────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button role="radio" value="page" type="button" tabindex="-1" aria-checked="false" data-state="unchecked" data-radix-collection-item="" data-testid="switch-page-mode-button" class="styles_radioButton__2mzioa4 style_switchItem__il1iiq0">…</button>
- 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
at ../../kit/utils/page-logic.ts:39
37 | const edgelessPage = page.locator('edgeless-editor');
38 | if (await edgelessPage.isVisible()) {
> 39 | await page.getByTestId('switch-page-mode-button').click({
| ^
40 | delay: 100,
41 | });
42 | }
at clickNewPageButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/page-logic.ts:39:55)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-new-page.spec.ts:29:3
|
Run playwright tests:
tests/kit/utils/page-logic.ts#L44
3) local-first-new-page.spec.ts:23:5 › click btn bew page and find it in all pages ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('sidebar-new-page-button')
- locator resolved to <button data-size="custom" data-icon-size="20" data-mobile="false" data-state="closed" data-variant="custom" data-icon-variant="plain" data-testid="sidebar-new-page-button" class="button_button__ph3zqme button_iconButton__ph3zqmh add-page-button_root__18n7nrk0">…</button>
- 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
at ../../kit/utils/page-logic.ts:44
42 | }
43 | // fixme(himself65): if too fast, the page will crash
> 44 | await page.getByTestId('sidebar-new-page-button').click({
| ^
45 | delay: 100,
46 | });
47 | await waitForEmptyEditor(page);
at clickNewPageButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/page-logic.ts:44:53)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-new-page.spec.ts:29:3
|
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
local-first-favorites-items.spec.ts:145:5 › Add new favorite page via sidebar ──────────────────
local-first-new-page.spec.ts:11:5 › click btn new page ─────────────────────────────────────────
local-first-new-page.spec.ts:23:5 › click btn bew page and find it in all pages ────────────────
local-first-openpage-newtab.spec.ts:12:5 › click btn new page and open in tab ──────────────────
local-first-openpage-newtab.spec.ts:36:5 › switch between new page and all page ────────────────
local-first-openpage-newtab.spec.ts:55:5 › ctrl click all page and open in new tab ─────────────
local-first-openpage-newtab.spec.ts:71:5 › mid click all page and open in new tab ──────────────
local-first-openpage-newtab.spec.ts:87:5 › ctrl click embedded doc link and open in new tab ────
local-first-restore-page.spec.ts:12:5 › New a page , then delete it in all pages, restore it ───
local-first-show-delete-modal.spec.ts:13:5 › New a page ,then open it and show delete modal ────
local-first-show-delete-modal.spec.ts:39:5 › New a page ,then go to all pages and show delete modal
local-first-trash-page.spec.ts:12:5 › New a page , then delete it in all pages, finally find it in trash
local-first-workspace-list.spec.ts:12:5 › just one item in the workspace list at first ─────────
local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list ───────────
navigation.spec.ts:19:5 › back and forward buttons ─────────────────────────────────────────────
open-affine.spec.ts:7:5 › Open last workspace when back to affine ──────────────────────────────
open-affine.spec.ts:28:5 › Download client tip ─────────────────────────────────────────────────
page-properties.spec.ts:39:5 › allow create tag ────────────────────────────────────────────────
page-properties.spec.ts:52:5 › allow using keyboard to navigate tags ───────────────────────────
page-properties.spec.ts:70:5 › allow create tag on journals page ───────────────────────────────
page-properties.spec.ts:87:5 › add custom property ─────────────────────────────────────────────
page-properties.spec.ts:96:5 › add custom property & edit ──────────────────────────────────────
page-properties.spec.ts:107:5 › property table reordering ──────────────────────────────────────
page-properties.spec.ts:150:5 › page info show more will not should by default when there is no properties
page-properties.spec.ts:157:5 › page info show more will show all properties ───────────────────
page-properties.spec.ts:195:5 › change page properties visibility ──────────────────────────────
page-properties.spec.ts:220:5 › check if added property is also in workspace settings ──────────
page-properties.spec.ts:233:5 › edit property name ─────────────────────────────────────────────
page-properties.spec.ts:259:5 › delete property via property popup ─────────────────────────────
page-properties.spec.ts:284:5 › workspace properties can be collapsed ──────────────────────────
page-properties.spec.ts:293:5 › can show database backlink info ────────────────────────────────
peek-view.spec.ts:20:5 › can open peek view via link popover ───────────────────────────────────
peek-view.spec.ts:47:5 › can open peek view via shift+click link ───────────────────────────────
peek-view.spec.ts:62:5 › can open peek view via db+click link card ─────────────────────────────
1 skipped
1 passed (14.0m)
|
Loading