feat: copilot frontend e2e #16925
Annotations
10 errors, 3 warnings, and 1 notice
tests/affine-cloud/e2e/copilot.spec.ts#L123
1) copilot.spec.ts:110:5 › can chat after login at chat side panel ───────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "content": "hello",
+ "content": undefined,
"name": "You",
}
121 | await makeChat(page, 'hello');
122 | const history = await collectChat(page);
> 123 | expect(history[0]).toEqual({ name: 'You', content: 'hello' });
| ^
124 | expect(history[1].name).toBe('AFFiNE AI');
125 | });
126 |
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:123:22
|
tests/affine-cloud/e2e/copilot.spec.ts#L123
1) copilot.spec.ts:110:5 › can chat after login at chat side panel ───────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "content": "hello",
+ "content": undefined,
"name": "You",
}
121 | await makeChat(page, 'hello');
122 | const history = await collectChat(page);
> 123 | expect(history[0]).toEqual({ name: 'You', content: 'hello' });
| ^
124 | expect(history[1].name).toBe('AFFiNE AI');
125 | });
126 |
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:123:22
|
tests/affine-cloud/e2e/copilot.spec.ts#L123
1) copilot.spec.ts:110:5 › can chat after login at chat side panel ───────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "content": "hello",
+ "content": undefined,
"name": "You",
}
121 | await makeChat(page, 'hello');
122 | const history = await collectChat(page);
> 123 | expect(history[0]).toEqual({ name: 'You', content: 'hello' });
| ^
124 | expect(history[1].name).toBe('AFFiNE AI');
125 | });
126 |
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:123:22
|
tests/affine-cloud/e2e/copilot.spec.ts#L123
1) copilot.spec.ts:110:5 › can chat after login at chat side panel ───────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "content": "hello",
+ "content": undefined,
"name": "You",
}
121 | await makeChat(page, 'hello');
122 | const history = await collectChat(page);
> 123 | expect(history[0]).toEqual({ name: 'You', content: 'hello' });
| ^
124 | expect(history[1].name).toBe('AFFiNE AI');
125 | });
126 |
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:123:22
|
tests/affine-cloud/e2e/copilot.spec.ts#L148
2) copilot.spec.ts:140:7 › chat panel › basic chat ───────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "content": "hello",
+ "content": undefined,
"name": "You",
}
146 | await makeChat(page, 'hello');
147 | const history = await collectChat(page);
> 148 | expect(history[0]).toEqual({ name: 'You', content: 'hello' });
| ^
149 | expect(history[1].name).toBe('AFFiNE AI');
150 | await clearChat(page);
151 | expect((await collectChat(page)).length).toBe(0);
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:148:24
|
tests/affine-cloud/e2e/copilot.spec.ts#L148
2) copilot.spec.ts:140:7 › chat panel › basic chat ───────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "content": "hello",
+ "content": undefined,
"name": "You",
}
146 | await makeChat(page, 'hello');
147 | const history = await collectChat(page);
> 148 | expect(history[0]).toEqual({ name: 'You', content: 'hello' });
| ^
149 | expect(history[1].name).toBe('AFFiNE AI');
150 | await clearChat(page);
151 | expect((await collectChat(page)).length).toBe(0);
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:148:24
|
tests/affine-cloud/e2e/copilot.spec.ts#L148
2) copilot.spec.ts:140:7 › chat panel › basic chat ───────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "content": "hello",
+ "content": undefined,
"name": "You",
}
146 | await makeChat(page, 'hello');
147 | const history = await collectChat(page);
> 148 | expect(history[0]).toEqual({ name: 'You', content: 'hello' });
| ^
149 | expect(history[1].name).toBe('AFFiNE AI');
150 | await clearChat(page);
151 | expect((await collectChat(page)).length).toBe(0);
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:148:24
|
tests/affine-cloud/e2e/copilot.spec.ts#L148
2) copilot.spec.ts:140:7 › chat panel › basic chat ───────────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "content": "hello",
+ "content": undefined,
"name": "You",
}
146 | await makeChat(page, 'hello');
147 | const history = await collectChat(page);
> 148 | expect(history[0]).toEqual({ name: 'You', content: 'hello' });
| ^
149 | expect(history[1].name).toBe('AFFiNE AI');
150 | await clearChat(page);
151 | expect((await collectChat(page)).length).toBe(0);
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:148:24
|
tests/affine-cloud/e2e/copilot.spec.ts#L164
3) copilot.spec.ts:154:7 › chat panel › chat actions ─────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: undefined
Received: "Hello! How can I assist you today with AFFiNE? Whether you're looking to write a document, create a diagram, or plan something out, I'm here to help!"
162 | await page.getByTestId('action-copy-button').click();
163 | await page.waitForTimeout(500);
> 164 | expect(await page.evaluate(() => navigator.clipboard.readText())).toBe(
| ^
165 | content
166 | );
167 | await page.getByTestId('action-retry-button').click();
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:164:71
|
tests/affine-cloud/e2e/copilot.spec.ts#L164
3) copilot.spec.ts:154:7 › chat panel › chat actions ─────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: undefined
Received: "Hello! How can I assist you today with AFFiNE? Whether you're writing documents, drawing diagrams, or planning projects, I'm here to help. 😊"
162 | await page.getByTestId('action-copy-button').click();
163 | await page.waitForTimeout(500);
> 164 | expect(await page.evaluate(() => navigator.clipboard.readText())).toBe(
| ^
165 | content
166 | );
167 | await page.getByTestId('action-retry-button').click();
at /home/darksky/actions-runner/_work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/copilot.spec.ts:164:71
|
tests/affine-cloud/collaboration.spec.ts#L1
tests/affine-cloud/collaboration.spec.ts took 3.6m
|
tests/affine-cloud/login.spec.ts#L1
tests/affine-cloud/login.spec.ts took 1.5m
|
tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 55.5s
|
13 failed
copilot.spec.ts:110:5 › can chat after login at chat side panel ────────────────────────────────
copilot.spec.ts:140:7 › chat panel › basic chat ────────────────────────────────────────────────
copilot.spec.ts:154:7 › chat panel › chat actions ──────────────────────────────────────────────
copilot.spec.ts:171:7 › chat panel › can be insert below ───────────────────────────────────────
copilot.spec.ts:187:7 › chat panel › can be add to edgeless as node ────────────────────────────
copilot.spec.ts:205:7 › chat panel › can be create as a doc ────────────────────────────────────
copilot.spec.ts:379:11 › chat with block › chat with image block › page mode › explain this image
copilot.spec.ts:386:11 › chat with block › chat with image block › page mode › generate a caption
share-page.spec.ts:177:5 › share page with default edgeless ────────────────────────────────────
share-page.spec.ts:222:5 › image preview should be shown ───────────────────────────────────────
share-page.spec.ts:262:5 › The reference links in the shared page should be accessible normally and can go back and forward
workspace.spec.ts:34:5 › should have pagination in member list ─────────────────────────────────
workspace.spec.ts:101:5 › should transform local favorites data ────────────────────────────────
11 skipped
18 passed (29.7m)
|
This job failed
Loading