From 4ade04192a303a5b599a6765562030446878cfb7 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Thu, 18 Jun 2026 16:51:09 -0700 Subject: [PATCH] test(examples/ag-ui): match classified-error copy in error-handling e2e MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #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 --- examples/ag-ui/angular/e2e/error-handling.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/ag-ui/angular/e2e/error-handling.spec.ts b/examples/ag-ui/angular/e2e/error-handling.spec.ts index e17a3c710..107845f6b 100644 --- a/examples/ag-ui/angular/e2e/error-handling.spec.ts +++ b/examples/ag-ui/angular/e2e/error-handling.spec.ts @@ -13,7 +13,10 @@ test('error handling: failed stream surfaces an alert and the next send recovers await messageInput(page).fill('say hi briefly'); await sendButton(page).click(); - await expect(page.getByRole('alert')).toContainText(/fail|error/i, { timeout: 15_000 }); + await expect(page.getByRole('alert')).toContainText( + /can't reach|connection|server|interrupted|try again/i, + { timeout: 15_000 }, + ); await page.unroute('**/agent'); await expect(messageInput(page)).toBeEnabled();