Skip to content

Commit 4ef3b14

Browse files
authored
test(ui): await MCP cancellation network evidence (#131690)
1 parent 5a7e0b5 commit 4ef3b14

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎ui/src/e2e/mcp-app-conformance.e2e.test.ts‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -782,11 +782,14 @@ describeConformance("MCP App Control UI and standalone host conformance", () =>
782782
expect(events.filter((event) => event.event === "tool-complete")).toMatchObject(
783783
spec.cooperative ? [] : [{ requestId: call.id, aborted: true }],
784784
);
785-
expect(
786-
diagnostics
787-
.slice(networkStart)
788-
.filter((event) => event.event === "requestfailed" && event.method === "POST"),
789-
).toHaveLength(1);
785+
// Fixture stdio and Playwright network events arrive independently.
786+
await expect
787+
.poll(() =>
788+
diagnostics
789+
.slice(networkStart)
790+
.filter((event) => event.event === "requestfailed" && event.method === "POST"),
791+
)
792+
.toHaveLength(1);
790793
} finally {
791794
if (releasePath) {
792795
await fs.writeFile(releasePath, "released");

0 commit comments

Comments
 (0)