refactor: Rewrite workflow public-api tests to avoid timeouts (no-changelog) (#5696)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-03-15 14:24:09 +01:00
committed by GitHub
parent 6c74d41f23
commit b4e60c3b47
4 changed files with 926 additions and 1291 deletions

View File

@@ -172,7 +172,7 @@ export async function createUser(attributes: Partial<User> = {}): Promise<User>
password: await hashPassword(password ?? randomValidPassword()),
firstName: firstName ?? randomName(),
lastName: lastName ?? randomName(),
globalRole: globalRole ?? (await getGlobalMemberRole()),
globalRoleId: (globalRole ?? (await getGlobalMemberRole())).id,
...rest,
};