From 9c01e179ca4bfe89c732f33bd2a135f5c2034da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 15 Oct 2026 22:55:03 +0200 Subject: [PATCH] test(integration): compare the oidc refusals without their request ids --- tests/integration/oidc-pending-link.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/oidc-pending-link.test.ts b/tests/integration/oidc-pending-link.test.ts index 19b97c781..4bc34c225 100644 --- a/tests/integration/oidc-pending-link.test.ts +++ b/tests/integration/oidc-pending-link.test.ts @@ -12,6 +12,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { cookieJar, headerJar } from "./mock-next-headers"; import { getPrismaClient, truncateAllTables } from "./setup"; +import { bodyWithoutRequestId } from "@/__tests__/helpers/error-envelope"; process.env.API_TOKEN_HMAC_KEY ??= "test-hmac-key-oidc-pending-link-32-bytes-minimum-1234567890"; @@ -186,7 +187,9 @@ describe("under an SSO-only policy", () => { const wrong = await passwordLogin("acct-b", "not the password"); expect(right.status).toBe(403); expect(wrong.status).toBe(403); - expect(await wrong.json()).toEqual(await right.json()); + expect(await bodyWithoutRequestId(wrong)).toBe( + await bodyWithoutRequestId(right), + ); }); it("keeps it closed for any other account", async () => {