From f21efbcc616935575bf2dbd2b8c6befd3ac28fdf Mon Sep 17 00:00:00 2001 From: aniket-shikhare-cstk Date: Thu, 11 Jun 2026 13:33:24 +0530 Subject: [PATCH] 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. --- test/sanity-check/api/team-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sanity-check/api/team-test.js b/test/sanity-check/api/team-test.js index a0381b64..960f070d 100644 --- a/test/sanity-check/api/team-test.js +++ b/test/sanity-check/api/team-test.js @@ -87,7 +87,8 @@ describe('Teams API Tests', () => { trackedExpect(response.uid, 'Team UID').toExist() trackedExpect(response.uid, 'Team UID type').toBeA('string') trackedExpect(response.name, 'Team name').toEqual(teamData.name) - trackedExpect(response.organizationRole, 'Team organizationRole').toExist() + const orgRole = response.organizationRole || response.organizationRoles + trackedExpect(orgRole, 'Team organizationRole/organizationRoles').toExist() // Wait for team to be fully created await wait(2000)