fix: should not reload bookmark when title is not empty (#5882) #15033
Annotations
2 errors and 1 notice
Run playwright test:
tests/list.spec.ts#L716
1) list.spec.ts:719:3 › toggle list › click toggle icon should collapsed list ────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
714 |
715 | async function assertToggleIconVisible(toggleIcon: Locator, expected = true) {
> 716 | expect(await isToggleIconVisible(toggleIcon)).toBe(expected);
| ^
717 | }
718 |
719 | test('click toggle icon should collapsed list', async ({ page }) => {
at assertToggleIconVisible (/home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:716:51)
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:823:5
|
Run playwright test:
tests/utils/asserts.ts#L621
1) list.spec.ts:719:3 › toggle list › click toggle icon should collapsed list ────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:note
prop:background="--affine-background-secondary-color"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "solid",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
>
<affine:list
prop:checked={false}
prop:collapsed={false}
prop:text="3"
prop:type="bulleted"
/>
<affine:list
prop:checked={false}
prop:collapsed={true}
prop:text="456"
prop:type="bulleted"
>
<affine:list
prop:checked={false}
prop:collapsed={false}
prop:text="789"
prop:type="bulleted"
/>
</affine:list>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
@@ -14,11 +14,11 @@
prop:index="a0"
>
<affine:list
prop:checked={false}
prop:collapsed={false}
- prop:text="123"
+ prop:text="3"
prop:type="bulleted"
/>
<affine:list
prop:checked={false}
prop:collapsed={true}
at utils/asserts.ts:621
619 | printFunctionName: false,
620 | });
> 621 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
622 | }
623 |
624 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:621:38)
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:733:5
|
Run playwright test
1 flaky
list.spec.ts:719:3 › toggle list › click toggle icon should collapsed list ─────────────────────
63 passed (3.1m)
|
The logs for this run have expired and are no longer available.
Loading