fix: reference parameters and add test cases #17870
Annotations
10 errors, 1 warning, and 1 notice
tests/affine-local/e2e/links.spec.ts#L46
1) links.spec.ts:28:5 › not allowed to switch to embed view when linking to the same document ────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
44 | await page.locator('affine-reference').hover();
45 | await page.waitForTimeout(300);
> 46 | await switchViewBtn.click();
| ^
47 |
48 | await notClickable(linkToInlineBtn);
49 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:46:23
|
tests/affine-local/e2e/links.spec.ts#L46
1) links.spec.ts:28:5 › not allowed to switch to embed view when linking to the same document ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
44 | await page.locator('affine-reference').hover();
45 | await page.waitForTimeout(300);
> 46 | await switchViewBtn.click();
| ^
47 |
48 | await notClickable(linkToInlineBtn);
49 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:46:23
|
tests/affine-local/e2e/links.spec.ts#L46
1) links.spec.ts:28:5 › not allowed to switch to embed view when linking to the same document ────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
44 | await page.locator('affine-reference').hover();
45 | await page.waitForTimeout(300);
> 46 | await switchViewBtn.click();
| ^
47 |
48 | await notClickable(linkToInlineBtn);
49 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:46:23
|
tests/affine-local/e2e/links.spec.ts#L46
1) links.spec.ts:28:5 › not allowed to switch to embed view when linking to the same document ────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
44 | await page.locator('affine-reference').hover();
45 | await page.waitForTimeout(300);
> 46 | await switchViewBtn.click();
| ^
47 |
48 | await notClickable(linkToInlineBtn);
49 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:46:23
|
tests/affine-local/e2e/links.spec.ts#L86
2) links.spec.ts:73:5 › allow switching to embed view when linking to the other document without mode
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
84 | // Inline
85 | await page.locator('affine-reference').hover();
> 86 | await switchViewBtn.click();
| ^
87 |
88 | await notClickable(linkToInlineBtn);
89 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:86:23
|
tests/affine-local/e2e/links.spec.ts#L86
2) links.spec.ts:73:5 › allow switching to embed view when linking to the other document without mode
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
84 | // Inline
85 | await page.locator('affine-reference').hover();
> 86 | await switchViewBtn.click();
| ^
87 |
88 | await notClickable(linkToInlineBtn);
89 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:86:23
|
tests/affine-local/e2e/links.spec.ts#L86
2) links.spec.ts:73:5 › allow switching to embed view when linking to the other document without mode
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
84 | // Inline
85 | await page.locator('affine-reference').hover();
> 86 | await switchViewBtn.click();
| ^
87 |
88 | await notClickable(linkToInlineBtn);
89 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:86:23
|
tests/affine-local/e2e/links.spec.ts#L86
2) links.spec.ts:73:5 › allow switching to embed view when linking to the other document without mode
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
84 | // Inline
85 | await page.locator('affine-reference').hover();
> 86 | await switchViewBtn.click();
| ^
87 |
88 | await notClickable(linkToInlineBtn);
89 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:86:23
|
tests/affine-local/e2e/links.spec.ts#L176
3) links.spec.ts:153:5 › allow switching to embed view when linking to the other document with mode
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
174 | // Inline
175 | await page.locator('affine-reference').hover();
> 176 | await switchViewBtn.click();
| ^
177 |
178 | await notClickable(linkToInlineBtn);
179 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:176:23
|
tests/affine-local/e2e/links.spec.ts#L176
3) links.spec.ts:153:5 › allow switching to embed view when linking to the other document with mode
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('Switch view')
174 | // Inline
175 | await page.locator('affine-reference').hover();
> 176 | await switchViewBtn.click();
| ^
177 |
178 | await notClickable(linkToInlineBtn);
179 | await clickable(linkToCardBtn);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:176:23
|
tests/affine-local/local-first-avatar.spec.ts#L1
tests/affine-local/local-first-avatar.spec.ts took 17.8s
|
3 failed
links.spec.ts:28:5 › not allowed to switch to embed view when linking to the same document ─────
links.spec.ts:73:5 › allow switching to embed view when linking to the other document without mode
links.spec.ts:153:5 › allow switching to embed view when linking to the other document with mode
2 skipped
28 passed (5.1m)
|
This job failed
Loading