passsy / spot

Chainable powerful Flutter widget selector API, screenshots and assertions for awesome widget tests.
https://pub.dev/packages/spot
Apache License 2.0
63 stars 2 forks source link

Add more ways to simulate text input #58

Open danielmolnar opened 5 months ago

danielmolnar commented 5 months ago

Text Input Simulation Methods

Method Name Approach Description Use Case Implemented
enterText Pasting Complete Text Simulate the action of pasting a complete text string into the text field. Useful for testing how the application handles large chunks of text and ensuring no data is lost or corrupted during pasting.
tbd Pasting Text Character by Character Simulate pasting text one character at a time, similar to how a script might insert text programmatically. Useful for detecting issues that arise from intermediate states, such as validation rules applied to partially entered data.
tbd Simulating Keystrokes Simulate individual keypresses to mimic a real user typing into the text field. Useful for testing auto-complete features, character validation, and real-time feedback mechanisms (e.g., live error messages) and if key strokes are actually propagated