Skip to content

Add form interaction tests for PasswordForm and ListForm#377

Merged
shibayan merged 1 commit into
masterfrom
test/password-list-forms
Jul 5, 2026
Merged

Add form interaction tests for PasswordForm and ListForm#377
shibayan merged 1 commit into
masterfrom
test/password-list-forms

Conversation

@shibayan

@shibayan shibayan commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Summary

Extends the form interaction test suite (added in #374) to the two remaining untested form types:

  • PasswordForm: typed input returns the password, plaintext is never echoed to the console output (only * masking), and a failing validator clears the buffer and lets the user retry.
  • ListForm: items are collected per Enter and finished with an empty Enter, Ctrl+Delete removes the last collected item, and submitting below Minimum shows the error and continues.

Tests only — no production code changes.

Test plan

  • Full suite: 330 passed, dotnet format clean

🤖 Generated with Claude Code

Covers password masking (no plaintext echo), validation failure clearing
the buffer, list item collection ending on empty Enter, Ctrl+Delete
removing the last item, and the minimum-count validation path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 5, 2026 12:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request extends Sharprompt’s end-to-end form interaction test suite to cover the remaining untested form types (PasswordForm and ListForm), validating key user interaction behaviors using the existing scripted console driver harness.

Changes:

  • Add PasswordForm interaction tests for masked output (no plaintext echo) and retry behavior on validation failure.
  • Add ListForm interaction tests for multi-item collection termination, Ctrl+Delete removal, and minimum-item enforcement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shibayan shibayan self-assigned this Jul 5, 2026
@shibayan shibayan added the enhancement New feature or request label Jul 5, 2026
@shibayan shibayan merged commit bcbfce2 into master Jul 5, 2026
6 checks passed
@shibayan shibayan deleted the test/password-list-forms branch July 5, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants