feat(core): make some tabs in sidebar persistent for all docs page (#… #24834
Annotations
6 errors and 1 notice
tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts#L1
1) e2e/blocksuite/outline/outline-panel.spec.ts:236:3 › TOC and editor scroll › should highlight heading when scroll to area before viewport center
Test timeout of 50000ms exceeded.
|
tests/kit/src/utils/page-logic.ts#L55
1) e2e/blocksuite/outline/outline-panel.spec.ts:236:3 › TOC and editor scroll › should highlight heading when scroll to area before viewport center
Error: keyboard.type: Test timeout of 50000ms exceeded.
at ../../kit/src/utils/page-logic.ts:55
53 |
54 | export async function type(page: Page, content: string, delay = 50) {
> 55 | await page.keyboard.type(content, { delay });
| ^
56 | }
57 |
58 | export const createLinkedPage = async (page: Page, pageName?: string) => {
at type (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/page-logic.ts:55:23)
at createHeadings (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/utils.ts:24:11)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:243:22
|
tests/kit/src/utils/page-logic.ts#L37
1) e2e/blocksuite/outline/outline-panel.spec.ts:236:3 › TOC and editor scroll › should highlight heading when scroll to area before viewport center
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
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
at ../../kit/src/utils/page-logic.ts:37
35 | export async function clickNewPageButton(page: Page, title?: string) {
36 | // fixme(himself65): if too fast, the page will crash
> 37 | await page.getByTestId('sidebar-new-page-button').click({
| ^
38 | delay: 100,
39 | });
40 | await waitForEmptyEditor(page);
at clickNewPageButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/page-logic.ts:37:53)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:77:9
|
tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts#L1
2) e2e/blocksuite/outline/outline-panel.spec.ts:268:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel
Test timeout of 50000ms exceeded.
|
tests/kit/src/utils/keyboard.ts#L31
2) e2e/blocksuite/outline/outline-panel.spec.ts:268:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel
Error: keyboard.press: Test timeout of 50000ms exceeded.
at ../../kit/src/utils/keyboard.ts:31
29 | // avoid flaky test by simulate real user input
30 | for (let i = 0; i < count; i++) {
> 31 | await page.keyboard.press('Enter', { delay: 50 });
| ^
32 | }
33 | }
34 |
at pressEnter (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/keyboard.ts:31:25)
at createHeadings (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/utils.ts:26:5)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:271:22
|
tests/kit/src/utils/page-logic.ts#L37
2) e2e/blocksuite/outline/outline-panel.spec.ts:268:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel
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
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
at ../../kit/src/utils/page-logic.ts:37
35 | export async function clickNewPageButton(page: Page, title?: string) {
36 | // fixme(himself65): if too fast, the page will crash
> 37 | await page.getByTestId('sidebar-new-page-button').click({
| ^
38 | delay: 100,
39 | });
40 | await waitForEmptyEditor(page);
at clickNewPageButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/page-logic.ts:37:53)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:77:9
|
2 flaky
e2e/blocksuite/outline/outline-panel.spec.ts:236:3 › TOC and editor scroll › should highlight heading when scroll to area before viewport center
e2e/blocksuite/outline/outline-panel.spec.ts:268:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel
47 passed (7.5m)
|
The logs for this run have expired and are no longer available.
Loading