fix: color of canvas element under embed dark theme whiteboard is wrong #7353
test.yml
on: pull_request
Install Dependencies
1m 7s
Build & Test
0s
Annotations
5 errors, 20 warnings, and 20 notices
code/copy-paste.spec.ts:66:1 › drag copy paste:
tests/code/copy-paste.spec.ts#L79
1) code/copy-paste.spec.ts:66:1 › drag copy paste ────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "useuse"
Received: "1234use"
77 |
78 | const content = await getInlineSelectionText(page);
> 79 | expect(content).toBe('useuse');
| ^
80 |
81 | await assertRichTextInlineRange(page, 0, 3, 0);
82 | });
at /home/runner/work/blocksuite/blocksuite/tests/code/copy-paste.spec.ts:79:19
|
latex/inline.spec.ts:94:1 › update inline latex by clicking the node:
tests/latex/inline.spec.ts#L126
1) latex/inline.spec.ts:94:1 › update inline latex by clicking the node ──────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 7
+ Received + 1
- <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.66em" columnalign="center center center" columnlines="dashed dashed" columnspacing="1em" rowlines="none none dashed"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>a</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>b</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>c</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>h</mi><mi>l</mi><mi>i</mi><mi>n</mi><mi>e</mi><mi>d</mi></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>e</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>f</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>g</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>h</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>i</mi></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\def\arraystretch{1.5}
- \begin{array}{c:c:c}
- a & b & c \\ \\ hline
- d & e & f \\
- \hdashline
- g & h & i
- \end{array}</annotation></semantics></math>
+ <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>E</mi><mo>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">E=mc^2</annotation></semantics></math>
124 | await pressShiftEnter(page);
125 | await type(page, String.raw`\end{array}`);
> 126 | expect(await latexElement.locator('.katex').innerHTML()).toBe(
| ^
127 | '<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.66em" columnalign="center center center" columnlines="dashed dashed" columnspacing="1em" rowlines="none none dashed"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>a</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>b</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>c</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>h</mi><mi>l</mi><mi>i</mi><mi>n</mi><mi>e</mi><mi>d</mi></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>e</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>f</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>g</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>h</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>i</mi></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\\def\\arraystretch{1.5}\n\\begin{array}{c:c:c}\na & b & c \\\\ \\\\ hline\nd & e & f \\\\\n\\hdashline\ng & h & i\n\\end{array}</annotation></semantics></math>'
128 | );
129 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/inline.spec.ts:126:60
|
format-bar.spec.ts:239:1 › should format quick bar be able to change background color:
tests/format-bar.spec.ts#L277
1) format-bar.spec.ts:239: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 <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is not stable
- 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
275 |
276 | await expect(highlight.defaultColorBtn).toBeVisible();
> 277 | await highlight.defaultColorBtn.click();
| ^
278 |
279 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
280 | `${testInfo.title}_default_color.json`
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:277:35
|
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing:
tests/utils/actions/edgeless.ts#L357
1) edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ─────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-slide-menu edgeless-tool-icon-button').filter({ hasText: 'Square' })
- locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element was detached from the DOM, retrying
at utils/actions/edgeless.ts:357
355 | .locator('edgeless-slide-menu edgeless-tool-icon-button')
356 | .filter({ hasText: shape });
> 357 | await squareShapeButton.click();
| ^
358 | break;
359 | }
360 | }
at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:357:31)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
|
hotkey/multiline.spec.ts:100:1 › should cut work multiple line:
tests/hotkey/multiline.spec.ts#L110
1) hotkey/multiline.spec.ts:100:1 › should cut work multiple line ────────────────────────────────
Error: Snapshot comparison failed:
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": "--affine-note-background-white",
"index": "a0",
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "123"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
}
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/multiline.spec.ts/should-cut-work-multiple-line-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-multiline-should-cut-work-multiple-line/should-cut-work-multiple-line-init-actual.json
108 | // cut
109 | await page.keyboard.press(`${SHORT_KEY}+x`);
> 110 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
111 | `${testInfo.title}_init.json`
112 | );
113 | await undoByKeyboard(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/multiline.spec.ts:110:45
|
E2E Test (20)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (16)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (17)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (3)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (1)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (2)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (18)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (15)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (19)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (13)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (4)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (12)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (14)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (10)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (9)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (6)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (5)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (7)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (8)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (11)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
🎭 Playwright Run Summary
3 skipped
44 passed (39.4s)
|
🎭 Playwright Run Summary
1 skipped
46 passed (48.9s)
|
🎭 Playwright Run Summary
47 passed (46.6s)
|
🎭 Playwright Run Summary
4 skipped
43 passed (54.4s)
|
🎭 Playwright Run Summary
2 skipped
46 passed (53.5s)
|
🎭 Playwright Run Summary
1 flaky
code/copy-paste.spec.ts:66:1 › drag copy paste ─────────────────────────────────────────────────
1 skipped
45 passed (45.0s)
|
🎭 Playwright Run Summary
47 passed (54.4s)
|
🎭 Playwright Run Summary
1 flaky
latex/inline.spec.ts:94:1 › update inline latex by clicking the node ───────────────────────────
1 skipped
45 passed (58.8s)
|
🎭 Playwright Run Summary
47 passed (55.8s)
|
🎭 Playwright Run Summary
1 flaky
format-bar.spec.ts:239:1 › should format quick bar be able to change background color ──────────
46 passed (1.1m)
|
🎭 Playwright Run Summary
47 passed (56.3s)
|
🎭 Playwright Run Summary
1 flaky
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ──────────────────────────
2 skipped
44 passed (1.1m)
|
🎭 Playwright Run Summary
1 flaky
hotkey/multiline.spec.ts:100:1 › should cut work multiple line ─────────────────────────────────
46 passed (1.1m)
|
🎭 Playwright Run Summary
1 skipped
46 passed (1.0m)
|
🎭 Playwright Run Summary
10 skipped
37 passed (1.3m)
|
🎭 Playwright Run Summary
47 passed (1.3m)
|
🎭 Playwright Run Summary
6 skipped
41 passed (1.4m)
|
🎭 Playwright Run Summary
1 skipped
46 passed (1.6m)
|
🎭 Playwright Run Summary
47 passed (1.6m)
|
🎭 Playwright Run Summary
1 skipped
46 passed (1.6m)
|