Wait for admin detail navigation in E2E
This commit is contained in:
parent
f4a4831f12
commit
9f359da60a
|
|
@ -271,8 +271,11 @@ test("activity approval, privacy controls, reporting, and moderation work end to
|
||||||
.filter({ hasText: participantEmail });
|
.filter({ hasText: participantEmail });
|
||||||
await expect(participantRow).toHaveCount(1);
|
await expect(participantRow).toHaveCount(1);
|
||||||
await participantRow.getByRole("link", { name: /^Manage / }).click();
|
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");
|
const participantStatus = admin.page.getByLabel("Status");
|
||||||
await participantStatus.selectOption("restricted");
|
await participantStatus.selectOption("restricted");
|
||||||
|
await expect(participantStatus).toHaveValue("restricted");
|
||||||
await admin.page.getByLabel("Internal note").fill("E2E restriction boundary.");
|
await admin.page.getByLabel("Internal note").fill("E2E restriction boundary.");
|
||||||
await admin.page.getByRole("button", { name: "Save account status" }).click();
|
await admin.page.getByRole("button", { name: "Save account status" }).click();
|
||||||
await expect(admin.page.getByText("Account status updated.")).toBeVisible();
|
await expect(admin.page.getByText("Account status updated.")).toBeVisible();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user