From 0a9d43a99e951be2b3c69a5bad100f3d1ad604a1 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Tue, 9 Sep 2025 13:56:22 -0700 Subject: [PATCH] Fix tests --- apps/e2e/tests/backend/backend-helpers.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/apps/e2e/tests/backend/backend-helpers.ts b/apps/e2e/tests/backend/backend-helpers.ts index 651cff999..9e72b81f6 100644 --- a/apps/e2e/tests/backend/backend-helpers.ts +++ b/apps/e2e/tests/backend/backend-helpers.ts @@ -200,7 +200,7 @@ export namespace Auth { "iat": expect.any(Number), "iss": expectedIssuer, "refreshTokenId": expect.any(String), - "aud": expect.any(String), + "aud": backendContext.value.projectKeys === "no-project" ? expect.any(String) : backendContext.value.projectKeys.projectId, "sub": expect.any(String), "role": "authenticated", "branchId": "main", @@ -410,23 +410,6 @@ export namespace Auth { headers: expect.anything(), }); - const accessToken = response.body.access_token; - const decodedAccessToken = jose.decodeJwt(accessToken); - expect(decodedAccessToken).toEqual({ - "exp": expect.any(Number), - "iat": expect.any(Number), - "iss": `http://localhost:8102/api/v1/projects/${projectKeys.projectId}`, - "refreshTokenId": expect.any(String), - "aud": expect.any(String), - "sub": expect.any(String), - "role": "authenticated", - "branchId": "main", - "displayName": expect.toSatisfy(() => true), - "primaryEmail": backendContext.value.mailbox.emailAddress, - "primaryEmailVerified": true, - "selectedTeamId": expect.toSatisfy(() => true), - }); - backendContext.set({ userAuth: { accessToken: response.body.access_token,