This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
forked from calcom/cal.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: profile loading fix in org (calcom#11618)
Co-authored-by: Leo Giovanetti <[email protected]>
- Loading branch information
1 parent
e1f47ef
commit 4a81b59
Showing
4 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { expect } from "@playwright/test"; | ||
|
||
import { test } from "./lib/fixtures"; | ||
|
||
test.describe.configure({ mode: "parallel" }); | ||
|
||
test.afterEach(({ users }) => users.deleteAll()); | ||
|
||
test.describe("Teams", () => { | ||
test("Profile page is loaded for users in Organization", async ({ page, users }) => { | ||
const teamMatesObj = [{ name: "teammate-1" }, { name: "teammate-2" }]; | ||
const owner = await users.create(undefined, { | ||
hasTeam: true, | ||
isOrg: true, | ||
hasSubteam: true, | ||
teammates: teamMatesObj, | ||
}); | ||
await owner.apiLogin(); | ||
await page.goto("/settings/my-account/profile"); | ||
|
||
// check if user avatar is loaded | ||
await expect(page.locator('[data-testid="organization-avatar"]')).toBeVisible(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters