Skip to content

Commit 8fd49d3

Browse files
committed
fix: tests
1 parent 83f4b28 commit 8fd49d3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

tests/e2e/assistant.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ test.describe("Assistant chat", () => {
108108
await authenticatedPage.keyboard.press("Enter");
109109

110110
// Wait for the assistant's response containing numbers
111-
// Look for a pattern that indicates the assistant has responded with numbers
111+
// Look for a pattern that indicates the assistant counted - digits on separate lines
112+
// This won't match the user's message "1 to 5" or model name "4.5"
112113
await expect(
113-
authenticatedPage.getByText(/[1-5].*[1-5]/), // At least two numbers in the response
114+
authenticatedPage.getByText(/\b1\s+2\s+3\b/), // Sequential numbers separated by whitespace
114115
).toBeVisible({
115116
timeout: 60_000,
116117
});

tests/e2e/login.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test.describe("Login flow", () => {
44
test("sign in and land on Catalog", async ({ page }) => {
55
await page.goto("/signin");
66
await page.getByRole("button", { name: /oidc|okta/i }).click();
7-
await expect(page).toHaveURL(/\/catalog$/);
7+
await expect(page).toHaveURL(/\/catalog$/, { timeout: 10_000 });
88
await expect(
99
page.getByRole("heading", { name: "MCP Server Catalog" }),
1010
).toBeVisible();

0 commit comments

Comments
 (0)