Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions e2e/tests/visual.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ for (const look of looks) {
await openChat(page);
await ask(page, 'What does it cost, with sources?');
await expect(page.locator('.cc-message-sources a')).toHaveText(['Pricing']);
// Sources arrive just before the reply ends: wait for the end, or the shot races it.
await expect(page.locator('.cc-message-regenerate')).toBeVisible();
await snap(page, page.locator('.cc-panel'), `s7-sources-${look.name}`);
});

Expand All @@ -117,6 +119,7 @@ for (const look of looks) {
await openChat(page);
await ask(page, 'Hi there');
await expect(page.locator('.cc-message-assistant').last()).toContainText('Hello from the test server.');
await expect(page.locator('.cc-message-regenerate')).toBeVisible();
await snap(page, page, `s14-phone-${look.name}`);
});
});
Expand Down
Loading