From bbda5e7dd13cdfc053dcc1b3ba636a5e9f91a738 Mon Sep 17 00:00:00 2001 From: Jarlath Holleran Date: Thu, 15 Aug 2024 11:31:29 +0100 Subject: [PATCH] Added test for 405 --- e2e/browser/test/e2e.playwright.ts | 2 +- e2e/node/error.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/browser/test/e2e.playwright.ts b/e2e/browser/test/e2e.playwright.ts index 9a80ad7..a8c7ca2 100644 --- a/e2e/browser/test/e2e.playwright.ts +++ b/e2e/browser/test/e2e.playwright.ts @@ -154,7 +154,7 @@ test("405 problem details error", async ({ page, auth }) => { await expectProblemDetails( page, - "406", + "405", "Method Not Allowed", "The server application intentionally responded with an HTTP error response status.", ); diff --git a/e2e/node/error.test.ts b/e2e/node/error.test.ts index 0a2dc99..520926f 100644 --- a/e2e/node/error.test.ts +++ b/e2e/node/error.test.ts @@ -194,7 +194,7 @@ describe(`End-to-end error description test for ${ENV.environment}`, () => { ); expect(error).toBeInstanceOf(ForbiddenError); expect(error.message).toBe("Some error message"); - expect(error.problemDetails.status).toBe(406); + expect(error.problemDetails.status).toBe(405); expect(error.problemDetails.title).toBe("Method Not Found"); expect(error.problemDetails.detail).toBeDefined(); expect(error.problemDetails.instance).toBeDefined();