From 71acaded12e7eb61bd29bb2967c7859cf1d4d545 Mon Sep 17 00:00:00 2001 From: Kalil Smith-Nuevelle Date: Tue, 6 May 2025 11:26:22 -0500 Subject: [PATCH 1/2] Use separate page for invite tests --- core/playwright/invites.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/playwright/invites.spec.ts b/core/playwright/invites.spec.ts index 4896f6320b..34fc4efdd0 100644 --- a/core/playwright/invites.spec.ts +++ b/core/playwright/invites.spec.ts @@ -753,7 +753,7 @@ test.describe("invite reject flow", () => { }); test.describe("different form/invite types", () => { - test("user can accept invite with pub level form", async () => { + test("user can accept invite with pub level form", async ({ page }) => { await test.step("user can access invite with pub level form", async () => { const invite = community.invites.pubLevelFormInvite; const redirectTo = `/c/${community.community.slug}/public/forms/${community.forms.CommunityForm.slug}/fill?pubId=${pub1Id}`; @@ -797,7 +797,7 @@ test.describe("different form/invite types", () => { }); test.describe("different roles in invites", () => { - test("user can accept invite with admin role", async () => { + test("user can accept invite with admin role", async ({ page }) => { await test.step("user can access invite with admin role", async () => { const invite = community.invites.adminRoleInvite; const redirectTo = `/c/${community.community.slug}/public/forms/${community.forms.Evaluation.slug}/fill`; From 8bfcf47bc826a0cb6a6bb9c38f174eecca3d2abe Mon Sep 17 00:00:00 2001 From: Kalil Smith-Nuevelle Date: Tue, 6 May 2025 11:35:12 -0500 Subject: [PATCH 2/2] Wait for confirmation after removing member --- core/playwright/fixtures/member-page.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/playwright/fixtures/member-page.ts b/core/playwright/fixtures/member-page.ts index 24da9df7e1..112edab9ad 100644 --- a/core/playwright/fixtures/member-page.ts +++ b/core/playwright/fixtures/member-page.ts @@ -115,5 +115,6 @@ export class MembersPage { await this.page.getByRole("button", { name: "Open menu", exact: true }).click(); await this.page.getByRole("button", { name: "Remove member", exact: true }).click(); await this.page.getByRole("button", { name: "Remove", exact: true }).click(); + await this.page.getByText("Member successfully removed", { exact: true }).waitFor(); } }