Skip to content

Commit 7b6572b

Browse files
authored
fix: wait for team visibility before navigating in team-management e2e (calcom#28891)
1 parent 21eb770 commit 7b6572b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/web/playwright/organization/team-management.e2e.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ test.describe("Teams", () => {
5353
});
5454

5555
await test.step("Can navigate to team settings", async () => {
56-
// Click on the team to go to settings
57-
await page.locator(`text=${user.username}'s Team`).click();
56+
// Wait for the team name to be visible before clicking
57+
const teamLocator = page.locator(`text=${user.username}'s Team`);
58+
await expect(teamLocator).toBeVisible({ timeout: 15000 });
59+
await teamLocator.click();
5860
await page.waitForURL(/\/settings\/teams\/(\d+)\/profile$/i);
5961
});
6062

0 commit comments

Comments
 (0)