Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1dd840d

Browse files
authored
test: add an e2e test for removing a group (#12844)
1 parentf705f9a commit1dd840d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎site/e2e/tests/updateTemplate.spec.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ test("add and remove a group", async ({ page }) => {
3737
// Select the group from the list and add it
3838
awaitpage.getByText(groupName).click();
3939
awaitpage.getByText("Add member").click();
40-
awaitexpect(
41-
page.locator(".MuiTable-root").getByText(groupName),
42-
).toBeVisible();
40+
constrow=page.locator(".MuiTableRow-root",{hasText:groupName});
41+
awaitexpect(row).toBeVisible();
42+
43+
// Now remove the group
44+
awaitrow.getByLabel("More options").click();
45+
awaitpage.getByText("Delete").click();
46+
awaitexpect(page.getByText("Group removed successfully!")).toBeVisible();
47+
awaitexpect(row).not.toBeVisible();
4348
});
4449

4550
test("require latest version",async({ page})=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp