You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The E2E test Workspace member management › owner can re-invite and invited user can accept (e2e/members.spec.ts:139) fails with a Playwright strict mode violation. The selector getByRole('button', { name: /invite/i }) matches two buttons:
The "Invite" submit button
The "Revoke invite for ..." button (which also contains "invite" in its aria-label)
This causes the test to fail before the re-invite action can complete, which also prevents 3 dependent tests from running.
This is a test selector issue, not a production bug.
Acceptance Criteria
getByRole('button', { name: /invite/i }) is replaced with a more specific selector (e.g. getByRole('button', { name: 'Invite', exact: true }))
E2E test owner can re-invite and invited user can accept passes
The 3 dependent member management tests that were skipped also pass
pnpm lint && pnpm typecheck && pnpm test pass
Technical Notes
Failing test:e2e/members.spec.ts:147
Error:strict mode violation: getByRole('button', { name: /invite/i }) resolved to 2 elements
Root cause: The regex /invite/i matches both the "Invite" submit button and the "Revoke invite for ..." button visible on the page after a previous invite was sent
Fix: Use { name: 'Invite', exact: true } or target by type="submit"
Description
The E2E test
Workspace member management › owner can re-invite and invited user can accept(e2e/members.spec.ts:139) fails with a Playwright strict mode violation. The selectorgetByRole('button', { name: /invite/i })matches two buttons:This causes the test to fail before the re-invite action can complete, which also prevents 3 dependent tests from running.
This is a test selector issue, not a production bug.
Acceptance Criteria
getByRole('button', { name: /invite/i })is replaced with a more specific selector (e.g.getByRole('button', { name: 'Invite', exact: true }))owner can re-invite and invited user can acceptpassespnpm lint && pnpm typecheck && pnpm testpassTechnical Notes
e2e/members.spec.ts:147strict mode violation: getByRole('button', { name: /invite/i }) resolved to 2 elements/invite/imatches both the "Invite" submit button and the "Revoke invite for ..." button visible on the page after a previous invite was sent{ name: 'Invite', exact: true }or target bytype="submit"