Improve stability of tests
This commit is contained in:
parent
a7e4c646ea
commit
c2fcc23884
|
@ -2,7 +2,6 @@ import { Application } from "@budibase/server/api/controllers/public/mapping/typ
|
||||||
import { App } from "@budibase/types"
|
import { App } from "@budibase/types"
|
||||||
import { Response } from "node-fetch"
|
import { Response } from "node-fetch"
|
||||||
import InternalAPIClient from "./InternalAPIClient"
|
import InternalAPIClient from "./InternalAPIClient"
|
||||||
import FormData from "form-data"
|
|
||||||
import { RouteConfig } from "../fixtures/types/routing"
|
import { RouteConfig } from "../fixtures/types/routing"
|
||||||
import { AppPackageResponse } from "../fixtures/types/appPackage"
|
import { AppPackageResponse } from "../fixtures/types/appPackage"
|
||||||
import { DeployConfig } from "../fixtures/types/deploy"
|
import { DeployConfig } from "../fixtures/types/deploy"
|
||||||
|
|
|
@ -5,11 +5,6 @@ import InternalAPIClient from "../../../config/internal-api/TestConfiguration/In
|
||||||
import generateApp from "../../../config/internal-api/fixtures/applications"
|
import generateApp from "../../../config/internal-api/fixtures/applications"
|
||||||
import generator from "../../../config/generator"
|
import generator from "../../../config/generator"
|
||||||
import generateScreen from "../../../config/internal-api/fixtures/screens"
|
import generateScreen from "../../../config/internal-api/fixtures/screens"
|
||||||
import {
|
|
||||||
generateTable,
|
|
||||||
generateNewColumnForTable,
|
|
||||||
} from "../../../config/internal-api/fixtures/table"
|
|
||||||
import { generateNewRowForTable } from "../../../config/internal-api/fixtures/rows"
|
|
||||||
|
|
||||||
describe("Internal API - Application creation, update, publish and delete", () => {
|
describe("Internal API - Application creation, update, publish and delete", () => {
|
||||||
const api = new InternalAPIClient()
|
const api = new InternalAPIClient()
|
||||||
|
@ -33,10 +28,11 @@ describe("Internal API - Application creation, update, publish and delete", () =
|
||||||
templateFile: undefined,
|
templateFile: undefined,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
it("Get applications without applications", async () => {
|
||||||
it("Get all Applications", async () => {
|
|
||||||
await config.applications.fetch()
|
await config.applications.fetch()
|
||||||
|
})
|
||||||
|
|
||||||
|
it("Get all Applications after creating an application", async () => {
|
||||||
await config.applications.create({
|
await config.applications.create({
|
||||||
...generateApp(),
|
...generateApp(),
|
||||||
useTemplate: false,
|
useTemplate: false,
|
|
@ -1,10 +1,7 @@
|
||||||
import TestConfiguration from "../../../config/internal-api/TestConfiguration"
|
import TestConfiguration from "../../../config/internal-api/TestConfiguration"
|
||||||
import { Application } from "@budibase/server/api/controllers/public/mapping/types"
|
import { Application } from "@budibase/server/api/controllers/public/mapping/types"
|
||||||
import { db } from "@budibase/backend-core"
|
|
||||||
import InternalAPIClient from "../../../config/internal-api/TestConfiguration/InternalAPIClient"
|
import InternalAPIClient from "../../../config/internal-api/TestConfiguration/InternalAPIClient"
|
||||||
import generateApp from "../../../config/internal-api/fixtures/applications"
|
|
||||||
import generator from "../../../config/generator"
|
import generator from "../../../config/generator"
|
||||||
import generateScreen from "../../../config/internal-api/fixtures/screens"
|
|
||||||
import {
|
import {
|
||||||
generateTable,
|
generateTable,
|
||||||
generateNewColumnForTable,
|
generateNewColumnForTable,
|
||||||
|
|
Loading…
Reference in New Issue