test(e2e): scope board task SSE stubs to known endpoints
This commit is contained in:
@@ -15,12 +15,23 @@ describe("/boards/:id task board", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function stubEmptySse() {
|
function stubEmptySse() {
|
||||||
// Any SSE endpoint should not hang the UI in tests.
|
// Keep known board-related SSE endpoints quiet in tests.
|
||||||
cy.intercept("GET", `${apiBase}/**/stream*`, {
|
const emptySse = {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
headers: { "content-type": "text/event-stream" },
|
headers: { "content-type": "text/event-stream" },
|
||||||
body: "",
|
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() {
|
function openEditTaskDialog() {
|
||||||
|
|||||||
Reference in New Issue
Block a user