Skip to content

fix(ci): green main — Resend endpoint verb + password toggle a11y label#1280

Merged
iammukeshm merged 1 commit into
mainfrom
fix/ci-resend-verb-and-password-toggle-label
Jun 4, 2026
Merged

fix(ci): green main — Resend endpoint verb + password toggle a11y label#1280
iammukeshm merged 1 commit into
mainfrom
fix/ci-resend-verb-and-password-toggle-label

Conversation

@iammukeshm

Copy link
Copy Markdown
Member

@

Why

main (2df3c264, merge of #1279) went red across three workflows: Backend CI (Unit Tests), Frontend CI (E2E dashboard), and Template Smoke Test. All trace to two source issues introduced by that merge.

Fixes

  1. Architecture test — the new ResendConfirmationEmailEndpoint failed EndpointConventionTests.Endpoint_Names_Should_Follow_Convention because Resend was not in the allowed action-verb list. Added it. (fixes Backend CI Unit Tests + Template Smoke, which runs the same arch test on scaffolded output.)
  2. Dashboard a11y label — the new settings/security PasswordField toggle used a field-specific aria-label ("Show current password") that collided with the password inputs under Playwright getByLabel strict mode. Aligned to the repo-wide generic "Show password"/"Hide password" already used in login.tsx and reset-password.tsx. (fixes Frontend CI E2E dashboard — 6 strict-mode violations.)
  3. Test selector — fixing Swagger Setup #2 unmasked a second strict-mode collision: getByText(/passwords don't match/i) matched both the live "…don't match yet" hint and the submit error. Scoped the assertion to the role="alert" region.

Verification

  • Architecture.Tests Endpoint_Names_Should_Follow_ConventionPassed
  • clients/dashboard tests/settings/security.spec.ts10/10 passed
  • Confirmed these were the only failing tests in each job (no other FAILs in the CI logs).

🤖 Generated with Claude Code
@

Three failing workflows on main (2df3c26) traced to two source issues:

- Architecture.Tests EndpointConventionTests rejected the new
  ResendConfirmationEmailEndpoint ("Resend" was not an allowed action
  verb). Broke Backend CI Unit Tests and Template Smoke Test.
- dashboard settings/security PasswordField toggle used a field-specific
  aria-label ("Show current password") that collided with the inputs
  under Playwright getByLabel strict mode. Aligned to the repo-wide
  generic "Show password"/"Hide password" used in login/reset-password.
  Broke Frontend CI E2E (dashboard).

Also tightened the unmasked "passwords don't match" assertion to the
role=alert region (the live "...don't match yet" hint shares the phrase).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@iammukeshm iammukeshm merged commit a440cd6 into main Jun 4, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant