-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[patrol_finders] enterText() only works the first time #2395
Comments
It seems this is caused by this recent PR: #2314 Unregistering the testTextInput means any further interaction with text fields won't work. It seems like the registering of the testTextInput is probably the root cause here, as the default widget tester doesn't do this and doesn't demonstrate the issue. |
Related issue: #2313 |
Thanks for reporting issue @josh-burton we will look into it! |
Hi @josh-burton. Can you please provide reproducible example of a test in which it does not work? I think more factors need to come into play than just typing into the text field twice for this error to occur. |
@piotruela you can reproduce by using this repo i reproduced by using Patrol 3.130 and Patrol cli 3.4.0 with android 13 emulator. use this command to reproduce I'm not sure about the root cause, but I started facing this issue after PR #2314 was merged |
I faced this when trying to enterText on the field that is autofocus. When I disable autofocus the issue is gone. |
Steps to reproduce
Write a widget test where 2 different texts fields have text entered.
Actual results
patrol_finders can only input text into a text field once.
Logs
Logs
Patrol version
patrol_finders: 2.1.3
Patrol Doctor output
Patrol Doctor output
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: