1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Fix test after patch

This commit is contained in:
adrinr 2023-01-30 16:39:15 +00:00
parent 1dabf71f68
commit e074030a0f

View file

@ -27,6 +27,7 @@ import {
import structures, { TENANT_ID, CSRF_TOKEN } from "./structures"
import { CreateUserResponse, User, AuthToken } from "@budibase/types"
import API from "./api"
import sdk from "../sdk"
enum Mode {
CLOUD = "cloud",
@ -139,6 +140,9 @@ class TestConfiguration {
// create user / new tenant
const res = await this.api.users.createAdminUser()
// This needs to be added because it was disabled for bulk testing: // https://github.com/Budibase/budibase/issues/6134
await sdk.users.addTenant(res.tenantId, res.userId, res.email)
// return the created user
const userRes = await this.api.users.getUser(res.userId, {
headers: {