Skip to content

feat: add form validation test scenarios#22

Open
Rohini2222 wants to merge 1 commit intomicrosoft:mainfrom
Rohini2222:add-form-validation-tests
Open

feat: add form validation test scenarios#22
Rohini2222 wants to merge 1 commit intomicrosoft:mainfrom
Rohini2222:add-form-validation-tests

Conversation

@Rohini2222
Copy link
Copy Markdown

Summary

Adds end-to-end form validation tests using Playwright's TodoMVC demo app.

Test scenarios covered

  • Empty input does not add a todo item
  • Whitespace-only input is rejected
  • Valid input successfully adds a todo item
  • Input field clears after valid submission
  • Multiple valid items can be added sequentially

How to run

npx playwright test tests/form-validation.spec.ts

@Rohini2222
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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