Removed an invalidate onDelete + updated test (#5521)
This commit is contained in:
1 parent
7beb17c007
commit
1edc9c50d5
2 files changed
+4
-6
No files matched your search
@@ -9,15 +9,12 @@ test.describe("Teams", () => {
|
||||
await users.deleteAll();
|
||||
});
|
||||
|
||||
test("Can create teams via Wizard", async ({ page, users, prisma }) => {
|
||||
test("Can create teams via Wizard", async ({ page, users }) => {
|
||||
const user = await users.create();
|
||||
const inviteeEmail = `${user.username}[email protected]`;
|
||||
await user.login();
|
||||
await page.goto("/teams");
|
||||
|
||||
// Expect teams to be empty
|
||||
await expect(page.locator('[data-testid="empty-screen"]')).toBeVisible();
|
||||
|
||||
await test.step("Can create team", async () => {
|
||||
// Click text=Create Team
|
||||
await page.locator("text=Create Team").click();
|
||||
@@ -58,7 +55,9 @@ test.describe("Teams", () => {
|
||||
await page.locator("text=Delete Team").click();
|
||||
await page.locator("text=Yes, disband team").click();
|
||||
await page.waitForURL("/teams");
|
||||
await expect(page.locator('[data-testid="empty-screen"]')).toBeVisible();
|
||||
await expect(await page.locator(`text=${user.username}'s Team`).count()).toEqual(0);
|
||||
// FLAKY: If other tests are running async this may mean there are >0 teams, empty screen will not be shown.
|
||||
// await expect(page.locator('[data-testid="empty-screen"]')).toBeVisible();
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user