Skip to content

Commit

Permalink
assign role that could do these things
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Jan 17, 2025
1 parent a49189a commit a2f3e89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration-tests/tests/api/target/crud.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,12 @@ test.concurrent(
test.concurrent('organization member user can create a target', async ({ expect }) => {
const { createOrg } = await initSeed().createOwner();
const { ownerEmail: orgMemberEmail, ownerToken: orgMemberToken } = await initSeed().createOwner();
const { createProject, inviteMember, joinMemberUsingCode } = await createOrg();
const inviteMemberResult = await inviteMember(orgMemberEmail);
const { createProject, inviteMember, joinMemberUsingCode, organization } = await createOrg();
const inviteMemberResult = await inviteMember(
orgMemberEmail,
undefined,
organization.memberRoles?.find(role => role.name === 'Admin')?.id,
);

if (inviteMemberResult.ok == null) {
throw new Error('Invite did not succeed' + JSON.stringify(inviteMemberResult));
Expand Down

0 comments on commit a2f3e89

Please sign in to comment.