refactor: pdf viewer components #18055
Annotations
9 errors and 1 notice
tests/affine-local/e2e/attachment-preview.spec.ts#L57
1) attachment-preview.spec.ts:36:5 › attachment preview should be shown ──────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
55 |
56 | const pageCount = attachmentViewer.locator('.page-count');
> 57 | expect(await pageCount.textContent()).toBe('1');
| ^
58 | const pageTotal = attachmentViewer.locator('.page-total');
59 | expect(await pageTotal.textContent()).toBe('3');
60 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:57:41
|
tests/affine-local/e2e/attachment-preview.spec.ts#L57
1) attachment-preview.spec.ts:36:5 › attachment preview should be shown ──────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
55 |
56 | const pageCount = attachmentViewer.locator('.page-count');
> 57 | expect(await pageCount.textContent()).toBe('1');
| ^
58 | const pageTotal = attachmentViewer.locator('.page-total');
59 | expect(await pageTotal.textContent()).toBe('3');
60 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:57:41
|
tests/affine-local/e2e/attachment-preview.spec.ts#L57
1) attachment-preview.spec.ts:36:5 › attachment preview should be shown ──────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
55 |
56 | const pageCount = attachmentViewer.locator('.page-count');
> 57 | expect(await pageCount.textContent()).toBe('1');
| ^
58 | const pageTotal = attachmentViewer.locator('.page-total');
59 | expect(await pageTotal.textContent()).toBe('3');
60 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:57:41
|
tests/affine-local/e2e/attachment-preview.spec.ts#L57
1) attachment-preview.spec.ts:36:5 › attachment preview should be shown ──────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
55 |
56 | const pageCount = attachmentViewer.locator('.page-count');
> 57 | expect(await pageCount.textContent()).toBe('1');
| ^
58 | const pageTotal = attachmentViewer.locator('.page-total');
59 | expect(await pageTotal.textContent()).toBe('3');
60 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:57:41
|
tests/affine-local/e2e/attachment-preview.spec.ts#L103
2) attachment-preview.spec.ts:77:5 › attachment preview can be expanded ──────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
101 |
102 | const pageCount = attachmentViewer.locator('.page-count');
> 103 | expect(await pageCount.textContent()).toBe('1');
| ^
104 | const pageTotal = attachmentViewer.locator('.page-total');
105 | expect(await pageTotal.textContent()).toBe('3');
106 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:103:41
|
tests/affine-local/e2e/attachment-preview.spec.ts#L103
2) attachment-preview.spec.ts:77:5 › attachment preview can be expanded ──────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
101 |
102 | const pageCount = attachmentViewer.locator('.page-count');
> 103 | expect(await pageCount.textContent()).toBe('1');
| ^
104 | const pageTotal = attachmentViewer.locator('.page-total');
105 | expect(await pageTotal.textContent()).toBe('3');
106 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:103:41
|
tests/affine-local/e2e/attachment-preview.spec.ts#L103
2) attachment-preview.spec.ts:77:5 › attachment preview can be expanded ──────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
101 |
102 | const pageCount = attachmentViewer.locator('.page-count');
> 103 | expect(await pageCount.textContent()).toBe('1');
| ^
104 | const pageTotal = attachmentViewer.locator('.page-total');
105 | expect(await pageTotal.textContent()).toBe('3');
106 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:103:41
|
tests/affine-local/e2e/attachment-preview.spec.ts#L103
2) attachment-preview.spec.ts:77:5 › attachment preview can be expanded ──────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1"
Received: "3"
101 |
102 | const pageCount = attachmentViewer.locator('.page-count');
> 103 | expect(await pageCount.textContent()).toBe('1');
| ^
104 | const pageTotal = attachmentViewer.locator('.page-total');
105 | expect(await pageTotal.textContent()).toBe('3');
106 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/attachment-preview.spec.ts:103:41
|
|
|
This job failed
Loading