test: add an e2e test for removing a group (#12844)

This commit is contained in:
Kayla Washburn-Love 2024-04-02 11:29:43 -06:00 committed by GitHub
parent f705f9a5eb
commit 1dd840d149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 3 deletions

View File

@ -37,9 +37,14 @@ test("add and remove a group", async ({ page }) => {
// Select the group from the list and add it
await page.getByText(groupName).click();
await page.getByText("Add member").click();
await expect(
page.locator(".MuiTable-root").getByText(groupName),
).toBeVisible();
const row = page.locator(".MuiTableRow-root", { hasText: groupName });
await expect(row).toBeVisible();
// Now remove the group
await row.getByLabel("More options").click();
await page.getByText("Delete").click();
await expect(page.getByText("Group removed successfully!")).toBeVisible();
await expect(row).not.toBeVisible();
});
test("require latest version", async ({ page }) => {