fix(blocks): export block spec (#7061) #19182
test.yaml
on: push
Node.js Environment Compatibility
54s
Unit test
1m 17s
Integration test
48s
Inline Editor E2E test
43s
Matrix: Playground E2E test
Annotations
6 errors, 14 warnings, and 11 notices
selection/native.spec.ts:436:1 › cursor move to up and down with children block:
tests/selection/native.spec.ts#L465
1) selection/native.spec.ts:436:1 › cursor move to up and down with children block ───────────────
Error: expect(received).toBeGreaterThanOrEqual(expected)
Expected: >= 12
Received: 0
463 | const textTwo = await getInlineSelectionText(page);
464 | expect(textTwo).toBe('arrow down test 1');
> 465 | expect(indexTwo).toBeGreaterThanOrEqual(12);
| ^
466 | expect(indexTwo).toBeLessThanOrEqual(17);
467 | await page.keyboard.press('ArrowDown');
468 | const textThree = await getInlineSelectionText(page);
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:465:20
|
hotkey.spec.ts:1070:1 › should cut work multiple line:
tests/utils/asserts.ts#L635
1) hotkey.spec.ts:1070:1 › should cut work multiple line ─────────────────────────────────────────
Error: <affine:note
prop:background="--affine-background-secondary-color"
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "solid",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
>
<affine:paragraph
prop:text="123"
prop:type="text"
/>
<affine:paragraph
prop:text="456"
prop:type="text"
/>
<affine:paragraph
prop:text="789"
prop:type="text"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 6
@@ -13,13 +13,17 @@
}
prop:hidden={false}
prop:index="a0"
>
<affine:paragraph
- prop:text="1"
+ prop:text="123"
+ prop:type="text"
+ />
+ <affine:paragraph
+ prop:text="456"
prop:type="text"
/>
<affine:paragraph
- prop:text="9"
+ prop:text="789"
prop:type="text"
/>
</affine:note>
at utils/asserts.ts:635
633 | printFunctionName: false,
634 | });
> 635 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
636 | }
637 |
638 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:635:38)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1080:3
|
edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges:
tests/edgeless/selection.spec.ts#L1
1) edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges
Test timeout of 40000ms exceeded.
|
edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges:
tests/edgeless/selection.spec.ts#L298
1) edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges
Error: page.waitForTimeout: Test timeout of 40000ms exceeded.
296 | await page.mouse.click(600, 100);
297 | selectedRect = page.locator(selectedRectClass);
> 298 | await page.waitForTimeout(300);
| ^
299 | await expect(selectedRect).toBeHidden();
300 | // Click to start selection and hold the mouse to trigger auto panning to the top
301 | await page.mouse.move(600, 100);
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/selection.spec.ts:298:14
|
embed-synced-doc.spec.ts:116:3 › Embed synced doc › can jump to other docs when click linked doc inside embed synced doc block:
tests/embed-synced-doc.spec.ts#L140
2) embed-synced-doc.spec.ts:116:3 › Embed synced doc › can jump to other docs when click linked doc inside embed synced doc block
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('affine-reference').filter({ has: locator('.affine-reference-title[data-title="Linked Doc"]') })
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('affine-reference').filter({ has: locator('.affine-reference-title[data-title="Linked Doc"]') })
138 | has: page.locator(`.affine-reference-title[data-title="Linked Doc"]`),
139 | });
> 140 | await expect(refNode).toBeVisible();
| ^
141 | // Click the linked doc inside the embed synced doc to jump to the linked doc
142 | await refNode.click();
143 | await waitNextFrame(page, 200);
at /home/runner/work/blocksuite/blocksuite/tests/embed-synced-doc.spec.ts:140:27
|
format-bar.spec.ts:314:1 › should format quick bar be able to change background color:
tests/format-bar.spec.ts#L435
3) format-bar.spec.ts:314:1 › should format quick bar be able to change background color ─────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('.affine-format-bar-widget').getByTestId('unset')
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #4
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #5
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #6
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #7
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #8
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #9
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #10
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #11
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #12
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action, attempt #13
- waiting 500ms
433 |
434 | await expect(highlight.defaultColorBtn).toBeVisible();
> 435 | await highlight.defaultColorBtn.click();
| ^
436 |
437 | await assertStoreMatchJSX(
438 | page,
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:435:35
|
🎭 Playwright Run Summary
14 passed (23.7s)
|
🎭 Playwright Run Summary
7 skipped
64 passed (3.4m)
|
🎭 Playwright Run Summary
17 skipped
54 passed (3.3m)
|
🎭 Playwright Run Summary
2 skipped
69 passed (3.7m)
|
🎭 Playwright Run Summary
2 skipped
69 passed (3.7m)
|
🎭 Playwright Run Summary
3 skipped
68 passed (4.0m)
|
🎭 Playwright Run Summary
1 flaky
selection/native.spec.ts:436:1 › cursor move to up and down with children block ────────────────
1 skipped
69 passed (4.0m)
|
🎭 Playwright Run Summary
1 flaky
hotkey.spec.ts:1070:1 › should cut work multiple line ──────────────────────────────────────────
2 skipped
68 passed (3.9m)
|
🎭 Playwright Run Summary
2 skipped
69 passed (4.5m)
|
🎭 Playwright Run Summary
3 flaky
edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges
embed-synced-doc.spec.ts:116:3 › Embed synced doc › can jump to other docs when click linked doc inside embed synced doc block
format-bar.spec.ts:314:1 › should format quick bar be able to change background color ──────────
3 skipped
65 passed (4.7m)
|
🎭 Playwright Run Summary
6 skipped
65 passed (4.9m)
|
Inline Editor E2E test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Integration test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Node.js Environment Compatibility
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (8)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (9)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (7)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (5)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (6)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Playground E2E test (4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|