refactor: support multiple-editors #15034
Annotations
10 errors, 1 warning, and 1 notice
Run playwright test:
tests/utils/asserts.ts#L176
1) clipboard.spec.ts:1189:1 › paste from FeiShu list format ──────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "aaaa"
Received: ""
at utils/asserts.ts:176
174 | export async function assertText(page: Page, text: string, i = 0) {
175 | const actual = await getStringFromRichText(page, i);
> 176 | expect(actual).toBe(text);
| ^
177 | }
178 |
179 | export async function assertTextContain(page: Page, text: string, i = 0) {
at assertText (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:176:18)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1216:3
|
Run playwright test:
tests/utils/asserts.ts#L176
1) clipboard.spec.ts:1189:1 › paste from FeiShu list format ──────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "aaaa"
Received: ""
at utils/asserts.ts:176
174 | export async function assertText(page: Page, text: string, i = 0) {
175 | const actual = await getStringFromRichText(page, i);
> 176 | expect(actual).toBe(text);
| ^
177 | }
178 |
179 | export async function assertTextContain(page: Page, text: string, i = 0) {
at assertText (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:176:18)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1216:3
|
Run playwright test:
tests/utils/asserts.ts#L176
1) clipboard.spec.ts:1189:1 › paste from FeiShu list format ──────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "aaaa"
Received: ""
at utils/asserts.ts:176
174 | export async function assertText(page: Page, text: string, i = 0) {
175 | const actual = await getStringFromRichText(page, i);
> 176 | expect(actual).toBe(text);
| ^
177 | }
178 |
179 | export async function assertTextContain(page: Page, text: string, i = 0) {
at assertText (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:176:18)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1216:3
|
Run playwright test:
tests/utils/asserts.ts#L176
1) clipboard.spec.ts:1189:1 › paste from FeiShu list format ──────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "aaaa"
Received: ""
at utils/asserts.ts:176
174 | export async function assertText(page: Page, text: string, i = 0) {
175 | const actual = await getStringFromRichText(page, i);
> 176 | expect(actual).toBe(text);
| ^
177 | }
178 |
179 | export async function assertTextContain(page: Page, text: string, i = 0) {
at assertText (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:176:18)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1216:3
|
Run playwright test:
tests/utils/asserts.ts#L196
2) clipboard.spec.ts:1220:1 › paste in list format ───────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 1
Array [
- "test111",
- "222",
+ "test",
]
at utils/asserts.ts:196
194 | });
195 | }, currentEditorIndex);
> 196 | expect(actualTexts).toEqual(texts);
| ^
197 | }
198 |
199 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:196:23)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1249:3
|
Run playwright test:
tests/utils/asserts.ts#L196
2) clipboard.spec.ts:1220:1 › paste in list format ───────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 1
Array [
- "test111",
- "222",
+ "test",
]
at utils/asserts.ts:196
194 | });
195 | }, currentEditorIndex);
> 196 | expect(actualTexts).toEqual(texts);
| ^
197 | }
198 |
199 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:196:23)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1249:3
|
Run playwright test:
tests/utils/asserts.ts#L196
2) clipboard.spec.ts:1220:1 › paste in list format ───────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 1
Array [
- "test111",
- "222",
+ "test",
]
at utils/asserts.ts:196
194 | });
195 | }, currentEditorIndex);
> 196 | expect(actualTexts).toEqual(texts);
| ^
197 | }
198 |
199 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:196:23)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1249:3
|
Run playwright test:
tests/utils/asserts.ts#L196
2) clipboard.spec.ts:1220:1 › paste in list format ───────────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 1
Array [
- "test111",
- "222",
+ "test",
]
at utils/asserts.ts:196
194 | });
195 | }, currentEditorIndex);
> 196 | expect(actualTexts).toEqual(texts);
| ^
197 | }
198 |
199 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:196:23)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1249:3
|
Run playwright test:
tests/utils/asserts.ts#L621
3) clipboard.spec.ts:1252:1 › auto identify url ──────────────────────────────────────────────────
Error: <affine:page>
<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:paragraph
prop:type="text"
/>
</affine:note>
</affine:page>
expect(received).toEqual(expected) // deep equality
- Expected - 11
+ Received + 0
@@ -13,20 +13,9 @@
}
prop:hidden={false}
prop:index="a0"
>
<affine:paragraph
- prop:text={
- <>
- <text
- insert="test "
- />
- <text
- insert="https://www.google.com"
- link="https://www.google.com"
- />
- </>
- }
prop:type="text"
/>
</affine:note>
</affine:page>
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/clipboard.spec.ts:1275:3
|
Run playwright test:
tests/utils/asserts.ts#L621
3) clipboard.spec.ts:1252:1 › auto identify url ──────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:page>
<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:paragraph
prop:type="text"
/>
</affine:note>
</affine:page>
expect(received).toEqual(expected) // deep equality
- Expected - 11
+ Received + 0
@@ -13,20 +13,9 @@
}
prop:hidden={false}
prop:index="a0"
>
<affine:paragraph
- prop:text={
- <>
- <text
- insert="test "
- />
- <text
- insert="https://www.google.com"
- link="https://www.google.com"
- />
- </>
- }
prop:type="text"
/>
</affine:note>
</affine:page>
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/clipboard.spec.ts:1275:3
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run playwright test
3 failed
clipboard.spec.ts:1189:1 › paste from FeiShu list format ───────────────────────────────────────
clipboard.spec.ts:1220:1 › paste in list format ────────────────────────────────────────────────
clipboard.spec.ts:1252:1 › auto identify url ───────────────────────────────────────────────────
2 flaky
clipboard.spec.ts:1016:1 › copy canvas element and text note in edgeless mode ──────────────────
code.spec.ts:596:1 › press backspace inside should select code block ───────────────────────────
7 skipped
52 passed (3.5m)
|
The logs for this run have expired and are no longer available.
Loading