fix: profile loading fix in org (#11618)

Co-authored-by: Leo Giovanetti <[email protected]>
This commit is contained in:
Udit TakkarandLeo Giovanetti authored and GitHub committed 2023-09-29 21:25:56 +01:00
1 parent e1f47ef40e
commit 4a81b59fc9
4 files changed
+40 -6

No files matched your search

+24
View File
@@ -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();
});
});