Skip to content

test(validation): cover Signin + create-modal form-validation contracts - #95

Merged
mvalancy merged 1 commit into
devfrom
test/form-validation
Jun 17, 2026
Merged

test(validation): cover Signin + create-modal form-validation contracts#95
mvalancy merged 1 commit into
devfrom
test/form-validation

Conversation

@mvalancy

Copy link
Copy Markdown
Member

What

The @validation category — client-side form validation had zero e2e coverage. tests/e2e/form-validation.spec.ts:

  • Signin: empty submit surfaces both inline role=alert required errors and sets aria-invalid=true, with no navigation; typing a value clears that field's error.
  • Create-work-item modal: submit stays disabled until a title is entered.
  • Create-graph modal: Create stays disabled until a name is entered (advances past the type step first).
  • Admin create-user: empty submit shows the "fill in all required fields" message.

No source changes — these assert existing contracts so a regression (a form that silently accepts an empty submit) fails CI.

Verification

  • @validation 5/5 pass on local dev.

🤖 Generated with Claude Code

New @Validation suite (tests/e2e/form-validation.spec.ts) — the Signin form's
inline required-field errors (with aria-invalid) and per-field error-clearing,
the "submit stays disabled until valid" contract on the create-work-item and
create-graph modals, and the admin create-user empty-submit notification. These
client-validation paths had zero e2e coverage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🧪 Comprehensive Test Suite

  • Unit suites (Node 18.x & 20.x) — core, web, server, mcp-server: ✅ passed
  • Installer & deploy config: ✅ passed

Full-stack smoke gate runs in the CI workflow.

@mvalancy
mvalancy merged commit c28e4ec into dev Jun 17, 2026
16 checks passed
@mvalancy
mvalancy deleted the test/form-validation branch June 17, 2026 11:01
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