diff --git a/e2e/tests/api-driven/src/permissions/steps.ts b/e2e/tests/api-driven/src/permissions/steps.ts index 851f8b16a9..58ee8c34c2 100644 --- a/e2e/tests/api-driven/src/permissions/steps.ts +++ b/e2e/tests/api-driven/src/permissions/steps.ts @@ -42,7 +42,7 @@ Given("a teamAdmin is a member of a team", async function (this: CustomWorld) { assert.ok(user, "User is not defined"); assert.strictEqual(user.teams.length, 1); assert.strictEqual(user.teams[0].role, "teamEditor"); - assert.strictEqual(user.teams[0].teamId, this.teamId1); + assert.strictEqual(user.teams[0].team.id, this.teamId1); this.activeUser = this.user1; }); @@ -56,7 +56,7 @@ Given( assert.ok(user, "User is not defined"); assert.strictEqual(user.teams.length, 1); assert.strictEqual(user.teams[0].role, "teamEditor"); - assert.strictEqual(user.teams[0].teamId, this.teamId2); + assert.strictEqual(user.teams[0].team.id, this.teamId2); this.activeUser = this.user2; },