fix: stabilize full-suite regressions

This commit is contained in:
Peter Steinberger
2026-06-01 09:16:58 -04:00
parent b226a752a1
commit cb7a4239ef
10 changed files with 128 additions and 42 deletions

View File

@@ -1602,12 +1602,13 @@ describe("grouped chat rendering", () => {
},
{ interval: 1, timeout: 100 },
);
expect(fetchMock).toHaveBeenCalledTimes(1);
const [fetchUrl, fetchInit] = requireFetchCall(fetchMock);
expect(fetchUrl).toBe(
"/api/chat/media/outgoing/agent%3Amain%3Amain/00000000-0000-4000-8000-000000000000/full",
);
expectSameOriginGet(fetchInit);
expect(fetchMock).toHaveBeenCalled();
for (const [fetchUrl, fetchInit] of fetchMock.mock.calls as [string, RequestInit?][]) {
expect(fetchUrl).toBe(
"/api/chat/media/outgoing/agent%3Amain%3Amain/00000000-0000-4000-8000-000000000000/full",
);
expectSameOriginGet(fetchInit);
}
});
it("does not send auth to cross-origin managed-image-looking URLs", () => {