From b59cd28b1d5da6c99fd4e50d8dbea451d1f92ad7 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Mon, 10 Oct 2022 14:24:34 +0100 Subject: [PATCH] Fix revert test with 400 status --- qa-core/src/tests/internal-api/applications/create.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qa-core/src/tests/internal-api/applications/create.spec.ts b/qa-core/src/tests/internal-api/applications/create.spec.ts index fc7901cc6f..1595df5080 100644 --- a/qa-core/src/tests/internal-api/applications/create.spec.ts +++ b/qa-core/src/tests/internal-api/applications/create.spec.ts @@ -129,7 +129,7 @@ describe("Internal API - /applications endpoints", () => { }) // Skip this test because of the if line 44 in InternalAPIClient.ts - it.skip("POST - Revert Changes without changes", async () => { + it("POST - Revert Changes without changes", async () => { const [response, app] = await config.applications.create(generateApp()) expect(response).toHaveStatusCode(200) expect(app.appId).toBeDefined() @@ -138,10 +138,12 @@ describe("Internal API - /applications endpoints", () => { const [revertResponse, revert] = await config.applications.revert(app.appId ? app.appId : "") expect(revertResponse).toHaveStatusCode(400) expect(revert).toEqual({ - message: "There is no version to revert to", + message: "App has not yet been deployed", + status: 400 }) }) + it("POST - Revert Changes", async () => { const [response, app] = await config.applications.create(generateApp()) expect(response).toHaveStatusCode(200)