From aa2ceba576e2dd551706d78527ecbfc4a5d136f6 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Wed, 25 Feb 2026 02:50:57 +0530 Subject: [PATCH] test(e2e): scope board task SSE stubs to known endpoints --- frontend/cypress/e2e/board_tasks.cy.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/frontend/cypress/e2e/board_tasks.cy.ts b/frontend/cypress/e2e/board_tasks.cy.ts index d368d587..cc397e71 100644 --- a/frontend/cypress/e2e/board_tasks.cy.ts +++ b/frontend/cypress/e2e/board_tasks.cy.ts @@ -15,12 +15,23 @@ describe("/boards/:id task board", () => { }); function stubEmptySse() { - // Any SSE endpoint should not hang the UI in tests. - cy.intercept("GET", `${apiBase}/**/stream*`, { + // Keep known board-related SSE endpoints quiet in tests. + const emptySse = { statusCode: 200, headers: { "content-type": "text/event-stream" }, body: "", - }); + }; + + cy.intercept("GET", `${apiBase}/boards/*/tasks/stream*`, emptySse).as( + "tasksStream", + ); + cy.intercept("GET", `${apiBase}/boards/*/approvals/stream*`, emptySse).as( + "approvalsStream", + ); + cy.intercept("GET", `${apiBase}/boards/*/memory/stream*`, emptySse).as( + "memoryStream", + ); + cy.intercept("GET", `${apiBase}/agents/stream*`, emptySse).as("agentsStream"); } function openEditTaskDialog() {