From 644a07c8a3d843a39dcab6f279ebb6ff9d386173 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Thu, 20 Oct 2022 17:48:05 +0100 Subject: [PATCH] Fix some tests after merge --- .../tests/internal-api/applications/create.spec.ts | 2 +- .../src/tests/internal-api/screens/screens.spec.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 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 dd894ce66a..f96c915f14 100644 --- a/qa-core/src/tests/internal-api/applications/create.spec.ts +++ b/qa-core/src/tests/internal-api/applications/create.spec.ts @@ -119,7 +119,7 @@ describe("Internal API - /applications endpoints", () => { const [updateResponse, updatedApp] = await config.applications.update( app.appId, { - name: generator.word(), + name: generator.word() } ) expect(updateResponse).toHaveStatusCode(200) diff --git a/qa-core/src/tests/internal-api/screens/screens.spec.ts b/qa-core/src/tests/internal-api/screens/screens.spec.ts index 68e1022cb4..0ef9fcf279 100644 --- a/qa-core/src/tests/internal-api/screens/screens.spec.ts +++ b/qa-core/src/tests/internal-api/screens/screens.spec.ts @@ -2,7 +2,7 @@ import TestConfiguration from "../../../config/internal-api/TestConfiguration" import { App } from "@budibase/types" import InternalAPIClient from "../../../config/internal-api/TestConfiguration/InternalAPIClient" import generateApp from "../../../config/internal-api/fixtures/applications" -import { Screen } from "@budibase/types" +import { Screen } from "@budibase/types" import generateScreen from "../../../config/internal-api/fixtures/screens" @@ -21,8 +21,8 @@ describe("Internal API - /screens endpoints", () => { it("POST - Create a screen with each role type", async () => { // Create app - const [appResponse, app] = await appConfig.applications.create(generateApp()) - + const app = await appConfig.applications.create(generateApp()) + // Create Screen const roleArray = ["BASIC", "POWER", "ADMIN", "PUBLIC"] appConfig.applications.api.appId = app.appId @@ -35,8 +35,8 @@ describe("Internal API - /screens endpoints", () => { it("GET - Fetch screens", async () => { // Create app - const [appResponse, app] = await appConfig.applications.create(generateApp()) - + const app = await appConfig.applications.create(generateApp()) + // Create Screen appConfig.applications.api.appId = app.appId const [response, screen] = await config.screen.create(generateScreen("BASIC")) @@ -49,8 +49,8 @@ describe("Internal API - /screens endpoints", () => { it("DELETE - Delete a screen", async () => { // Create app - const [appResponse, app] = await appConfig.applications.create(generateApp()) - + const app = await appConfig.applications.create(generateApp()) + // Create Screen appConfig.applications.api.appId = app.appId const [screenResponse, screen] = await config.screen.create(generateScreen("BASIC"))