refactor: add eslint rule for unused async / await (#6231) #156
Annotations
10 errors, 1 warning, and 1 notice
Run playwright test:
tests/attachment.spec.ts#L1
1) attachment.spec.ts:122:1 › can insert attachment from slash menu ──────────────────────────────
Test timeout of 30000ms exceeded.
|
Run playwright test:
tests/utils/actions/misc.ts#L280
1) attachment.spec.ts:122:1 › can insert attachment from slash menu ──────────────────────────────
Error: page.goto: Test timeout of 30000ms exceeded.
Call log:
- navigating to "http://localhost:5173/starter/?room=playwright-51870709&blobStorage=idb", waiting until "load"
at utils/actions/misc.ts:280
278 | url.searchParams.set('room', room);
279 | url.searchParams.set('blobStorage', blobStorage?.join(',') || 'idb');
> 280 | await page.goto(url.toString());
| ^
281 | // const readyPromise = waitForPageReady(page);
282 |
283 | // See https://github.com/microsoft/playwright/issues/5546
at enterPlaygroundRoom (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:280:14)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:123:9
|
Run playwright test:
tests/attachment.spec.ts#L1
2) attachment.spec.ts:172:1 › should undo/redo works for attachment ──────────────────────────────
Test timeout of 30000ms exceeded.
|
Run playwright test:
tests/utils/actions/misc.ts#L280
2) attachment.spec.ts:172:1 › should undo/redo works for attachment ──────────────────────────────
Error: page.goto: Test timeout of 30000ms exceeded.
Call log:
- navigating to "http://localhost:5173/starter/?room=playwright-47842141&blobStorage=idb", waiting until "load"
at utils/actions/misc.ts:280
278 | url.searchParams.set('room', room);
279 | url.searchParams.set('blobStorage', blobStorage?.join(',') || 'idb');
> 280 | await page.goto(url.toString());
| ^
281 | // const readyPromise = waitForPageReady(page);
282 |
283 | // See https://github.com/microsoft/playwright/issues/5546
at enterPlaygroundRoom (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:280:14)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:173:9
|
Run playwright test:
tests/attachment.spec.ts#L1
3) attachment.spec.ts:279:1 › should rename attachment works ─────────────────────────────────────
Test timeout of 30000ms exceeded.
|
Run playwright test:
tests/utils/actions/misc.ts#L280
3) attachment.spec.ts:279:1 › should rename attachment works ─────────────────────────────────────
Error: page.goto: Test timeout of 30000ms exceeded.
Call log:
- navigating to "http://localhost:5173/starter/?room=playwright-94443306&blobStorage=idb", waiting until "load"
at utils/actions/misc.ts:280
278 | url.searchParams.set('room', room);
279 | url.searchParams.set('blobStorage', blobStorage?.join(',') || 'idb');
> 280 | await page.goto(url.toString());
| ^
281 | // const readyPromise = waitForPageReady(page);
282 |
283 | // See https://github.com/microsoft/playwright/issues/5546
at enterPlaygroundRoom (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:280:14)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:284:9
|
Run playwright test:
tests/utils/asserts.ts#L227
4) attachment.spec.ts:318:1 › should turn attachment to image works ──────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 1
Received: 0
at utils/asserts.ts:227
225 | const editor = getEditorLocator(page);
226 | const actual = await editor.locator('.resizable-img').count();
> 227 | expect(actual).toEqual(count);
| ^
228 | }
229 |
230 | export async function assertDivider(page: Page, count: number) {
at assertRichImage (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:227:18)
at turnToEmbed (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:95:7)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:329:3
|
Run playwright test:
tests/utils/actions/misc.ts#L290
5) bookmark.spec.ts:193:1 › copy url to create bookmark in page mode ─────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Failed to clean text! Text mismatch expected: /link but actual: links"
at utils/actions/misc.ts:290
288 | expect
289 | .soft('Unexpected console message: ' + message.text())
> 290 | .toBe(
| ^
291 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
292 | );
293 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:290:10)
|
Run playwright test:
http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/assert.ts#L1309
5) bookmark.spec.ts:193:1 › copy url to create bookmark in page mode ─────────────────────────────
Error: Uncaught exception: "Error: RichText not found"
Error: RichText not found
at assertExists (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/assert.ts:1309:11)
at LinkedDocPopover.connectedCallback (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/widgets/linked-doc/linked-doc-popover.ts:1912:5)
at showLinkedDocPopover (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/widgets/linked-doc/index.ts:2153:13)
at AffineLinkedDocWidget.showLinkedDoc (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/widgets/linked-doc/index.ts:2215:7)
at http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/widgets/slash-menu/config.ts:5533:25
at assertExists (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/assert.ts:1309:11)
at LinkedDocPopover.connectedCallback (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/widgets/linked-doc/linked-doc-popover.ts:1912:5)
at showLinkedDocPopover (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/widgets/linked-doc/index.ts:2153:13)
at AffineLinkedDocWidget.showLinkedDoc (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/widgets/linked-doc/index.ts:2215:7)
at /home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/widgets/slash-menu/config.ts:5533:25
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:299:11)
|
Run playwright test:
tests/utils/actions/misc.ts#L290
6) bookmark.spec.ts:304:1 › support dragging bookmark block directly ─────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Failed to parse query! Current range is not a text node. Range"
at utils/actions/misc.ts:290
288 | expect
289 | .soft('Unexpected console message: ' + message.text())
> 290 | .toBe(
| ^
291 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
292 | );
293 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:290: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/.
|
Run playwright test
6 flaky
attachment.spec.ts:122:1 › can insert attachment from slash menu ───────────────────────────────
attachment.spec.ts:172:1 › should undo/redo works for attachment ───────────────────────────────
attachment.spec.ts:279:1 › should rename attachment works ──────────────────────────────────────
attachment.spec.ts:318:1 › should turn attachment to image works ───────────────────────────────
bookmark.spec.ts:193:1 › copy url to create bookmark in page mode ──────────────────────────────
bookmark.spec.ts:304:1 › support dragging bookmark block directly ──────────────────────────────
16 skipped
44 passed (3.8m)
|
The logs for this run have expired and are no longer available.
Loading