Skip to content

Commit 391fcc0

Browse files
Merge pull request #561 from contentstack/fix/team-organizationRoles-rbac
Fix team organizationRole assertion for RBAC orgs
2 parents 187c890 + f21efbc commit 391fcc0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/sanity-check/api/team-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ describe('Teams API Tests', () => {
8787
trackedExpect(response.uid, 'Team UID').toExist()
8888
trackedExpect(response.uid, 'Team UID type').toBeA('string')
8989
trackedExpect(response.name, 'Team name').toEqual(teamData.name)
90-
trackedExpect(response.organizationRole, 'Team organizationRole').toExist()
90+
const orgRole = response.organizationRole || response.organizationRoles
91+
trackedExpect(orgRole, 'Team organizationRole/organizationRoles').toExist()
9192

9293
// Wait for team to be fully created
9394
await wait(2000)

0 commit comments

Comments
 (0)