diff --git a/examples/ag-ui/angular/e2e/error-handling.spec.ts b/examples/ag-ui/angular/e2e/error-handling.spec.ts index e17a3c71..107845f6 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();