8000 Stabilize kebab handling in UI tests by ahus1 · Pull Request #52434 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions js/apps/admin-ui/test/utils/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,16 @@ export async function clickRowKebabItem(
itemName: string,
action: string,
) {
await page
const kebab = page
.getByRole("row", { name: itemName })
.getByLabel("Kebab toggle")
.click();
await page.getByRole("menuitem", { name: action }).click();
.getByLabel("Kebab toggle");
const menuItem = page.getByRole("menuitem", { name: action });

// Retry: the kebab dropdown can fail to stay open due to rendering races under CI load.
await expect(async () => {
await kebab.click();
await menuItem.click({ timeout: 2_000 });
}).toPass({ timeout: 10_000 });
Comment thread
ahus1 marked this conversation as resolved.
Resolved
}

export async function assertRowExists(
Expand Down
Loading
0