Fix test after patch
This commit is contained in:
parent
1dabf71f68
commit
e074030a0f
|
@ -27,6 +27,7 @@ import {
|
||||||
import structures, { TENANT_ID, CSRF_TOKEN } from "./structures"
|
import structures, { TENANT_ID, CSRF_TOKEN } from "./structures"
|
||||||
import { CreateUserResponse, User, AuthToken } from "@budibase/types"
|
import { CreateUserResponse, User, AuthToken } from "@budibase/types"
|
||||||
import API from "./api"
|
import API from "./api"
|
||||||
|
import sdk from "../sdk"
|
||||||
|
|
||||||
enum Mode {
|
enum Mode {
|
||||||
CLOUD = "cloud",
|
CLOUD = "cloud",
|
||||||
|
@ -139,6 +140,9 @@ class TestConfiguration {
|
||||||
// create user / new tenant
|
// create user / new tenant
|
||||||
const res = await this.api.users.createAdminUser()
|
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
|
// return the created user
|
||||||
const userRes = await this.api.users.getUser(res.userId, {
|
const userRes = await this.api.users.getUser(res.userId, {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
Loading…
Reference in New Issue