Prevent empty or whitespace-only todos#2285
Open
agrwalh wants to merge 1 commit intotastejs:masterfrom
Open
Conversation
|
Hi! Hope you don't mind me adding to the repo, trying to build something for automated QA testing on individual PRs. Here's a summary of my testing. What I did here: create dev container, build a test plan, run test agent against the actual app, and the results below all look good. TodoMVC React - Test Results ReportTest Execution Date:* 2026-01-19 SummaryAll 20 test cases passed successfully. The TodoMVC React application correctly handles:
Test ResultsADD Tests - Adding Todos
SEC Tests - Security
EDIT Tests - Editing Todos
ROUTE Tests - Filtering/Routing
TOGGLE & CLEAR Tests - Bulk Operations
PERSIST Tests - Data Persistence
Key FindingsSecurity
Input Validation
Functionality
ArtifactsScreenshotsLocated in
VideosLocated in
https://drive.google.com/drive/u/0/folders/1msJEwzqvQT5U52QgM18jzVamYDnDfyk7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR prevents creating or updating todo items with empty or whitespace-only
titles by trimming input and validating at the reducer and edit level. This
ensures state consistency and improves UX.