Skip to content

Commit 46481c4

Browse files
fix: use exact match for Invite button selector in E2E tests (#133)
Co-authored-by: Ona <no-reply@ona.com>
1 parent 0e5cdf5 commit 46481c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/members.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ test.describe("Workspace member management", () => {
9393
await page.fill("#invite-email", INVITE_EMAIL);
9494

9595
// Submit the invite
96-
await page.getByRole("button", { name: /invite/i }).click();
96+
await page.getByRole("button", { name: "Invite", exact: true }).click();
9797

9898
// Wait for success message
9999
await expect(page.locator("text=Invite sent.")).toBeVisible({
@@ -144,7 +144,7 @@ test.describe("Workspace member management", () => {
144144

145145
// Re-invite the same email
146146
await page.fill("#invite-email", INVITE_EMAIL);
147-
await page.getByRole("button", { name: /invite/i }).click();
147+
await page.getByRole("button", { name: "Invite", exact: true }).click();
148148
await expect(page.locator("text=Invite sent.")).toBeVisible({
149149
timeout: 10_000,
150150
});

0 commit comments

Comments
 (0)