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(); } } 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`;