Skip to content

Commit f21efbc

Browse files
Fix team organizationRole assertion for RBAC orgs
RBAC-enabled organizations now return organizationRoles (plural array) instead of organizationRole (singular string) in the team create response. Accept either field so the assertion passes on both legacy and RBAC orgs.
1 parent 187c890 commit f21efbc

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)