feat(core): enhance share page with selector #15850
Annotations
8 errors and 1 notice
tests/affine-local/e2e/quick-search.spec.ts#L59
1) quick-search.spec.ts:373:5 › can use cmdk to search page content and scroll to it, then the block will be selected
TimeoutError: locator.boundingBox: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[data-affine-editor-container]').getByText('123456')
57 | async function checkElementIsInView(page: Page, locator: Locator) {
58 | // check if the element is in view
> 59 | const elementRect = await locator.boundingBox();
| ^
60 | const viewportHeight = page.viewportSize()?.height;
61 |
62 | if (!elementRect || !viewportHeight) {
at checkElementIsInView (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:59:37)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:401:29
|
tests/affine-local/e2e/quick-search.spec.ts#L59
1) quick-search.spec.ts:373:5 › can use cmdk to search page content and scroll to it, then the block will be selected
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.boundingBox: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[data-affine-editor-container]').getByText('123456')
57 | async function checkElementIsInView(page: Page, locator: Locator) {
58 | // check if the element is in view
> 59 | const elementRect = await locator.boundingBox();
| ^
60 | const viewportHeight = page.viewportSize()?.height;
61 |
62 | if (!elementRect || !viewportHeight) {
at checkElementIsInView (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:59:37)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:401:29
|
tests/affine-local/e2e/quick-search.spec.ts#L59
1) quick-search.spec.ts:373:5 › can use cmdk to search page content and scroll to it, then the block will be selected
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.boundingBox: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[data-affine-editor-container]').getByText('123456')
57 | async function checkElementIsInView(page: Page, locator: Locator) {
58 | // check if the element is in view
> 59 | const elementRect = await locator.boundingBox();
| ^
60 | const viewportHeight = page.viewportSize()?.height;
61 |
62 | if (!elementRect || !viewportHeight) {
at checkElementIsInView (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:59:37)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:401:29
|
tests/affine-local/e2e/quick-search.spec.ts#L59
1) quick-search.spec.ts:373:5 › can use cmdk to search page content and scroll to it, then the block will be selected
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.boundingBox: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[data-affine-editor-container]').getByText('123456')
57 | async function checkElementIsInView(page: Page, locator: Locator) {
58 | // check if the element is in view
> 59 | const elementRect = await locator.boundingBox();
| ^
60 | const viewportHeight = page.viewportSize()?.height;
61 |
62 | if (!elementRect || !viewportHeight) {
at checkElementIsInView (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:59:37)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:401:29
|
tests/affine-local/e2e/quick-search.spec.ts#L1
2) quick-search.spec.ts:168:5 › Create a new page and search this page ───────────────────────────
Test timeout of 50000ms exceeded.
|
tests/affine-local/e2e/quick-search.spec.ts#L189
2) quick-search.spec.ts:168:5 › Create a new page and search this page ───────────────────────────
Error: page.reload: Test timeout of 50000ms exceeded.
Call log:
- waiting for navigation until "load"
- navigated to "http://localhost:8080/workspace/-kxyjSD7PyDSlvRORK7dp/nSwaCLFBUwz0X-z9XQr9b"
187 | await assertTitle(page, 'test123456');
188 |
> 189 | await page.reload();
| ^
190 | await waitForEditorLoad(page);
191 | await openQuickSearchByShortcut(page);
192 | await insertInputText(page, 'test123456');
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:189:14
|
tests/affine-local/e2e/quick-search.spec.ts#L564
3) quick-search.spec.ts:548:5 › can use slash menu to insert a newly created doc card ────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByTestId('cmdk-quick-search')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByTestId('cmdk-quick-search')
562 | });
563 | await page.keyboard.press('Enter');
> 564 | await expect(page.getByTestId('cmdk-quick-search')).toBeVisible();
| ^
565 |
566 | const testTitle = 'test title';
567 | await page.locator('[cmdk-input]').fill(testTitle);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:564:55
|
|
1 failed
quick-search.spec.ts:373:5 › can use cmdk to search page content and scroll to it, then the block will be selected
2 flaky
quick-search.spec.ts:168:5 › Create a new page and search this page ────────────────────────────
quick-search.spec.ts:548:5 › can use slash menu to insert a newly created doc card ─────────────
27 passed (4.5m)
|
This job failed
Loading