Wait for admin detail navigation in E2E

This commit is contained in:
SimpleTest 2026-08-03 15:13:54 +03:00
parent f4a4831f12
commit 9f359da60a

View File

@ -271,8 +271,11 @@ test("activity approval, privacy controls, reporting, and moderation work end to
.filter({ hasText: participantEmail });
await expect(participantRow).toHaveCount(1);
await participantRow.getByRole("link", { name: /^Manage / }).click();
await expect(admin.page).toHaveURL(/\/admin\/users\/[0-9a-f-]+$/);
await waitForLiveViewConnected(admin.page);
const participantStatus = admin.page.getByLabel("Status");
await participantStatus.selectOption("restricted");
await expect(participantStatus).toHaveValue("restricted");
await admin.page.getByLabel("Internal note").fill("E2E restriction boundary.");
await admin.page.getByRole("button", { name: "Save account status" }).click();
await expect(admin.page.getByText("Account status updated.")).toBeVisible();