Skip to content

Commit 2d6f30b

Browse files
bloveclaude
andauthored
test(examples/ag-ui): match classified-error copy in error-handling e2e (#695)
#693 replaced the raw stream-failure text with friendly AGENT_ERROR_MESSAGES copy ("Can't reach the server. Check your connection and try again."), which no longer contains "fail"/"error" — turning main red on examples/ag-ui — e2e. The chat example's spec was updated in #693; the ag-ui twin was missed. Mirror that assertion so the ag-ui error-handling spec asserts the actual copy. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 558bac9 commit 2d6f30b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

examples/ag-ui/angular/e2e/error-handling.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ test('error handling: failed stream surfaces an alert and the next send recovers
1313

1414
await messageInput(page).fill('say hi briefly');
1515
await sendButton(page).click();
16-
await expect(page.getByRole('alert')).toContainText(/fail|error/i, { timeout: 15_000 });
16+
await expect(page.getByRole('alert')).toContainText(
17+
/can't reach|connection|server|interrupted|try again/i,
18+
{ timeout: 15_000 },
19+
);
1720

1821
await page.unroute('**/agent');
1922
await expect(messageInput(page)).toBeEnabled();

0 commit comments

Comments
 (0)