You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error occurs when attempting to use the action to type text into a textfield.
If you chain responder status between textfields, EarlGrey will fail, reporting that "Keyboard did not disappear after resigning first responder status". This is because when your client implementation immediately moves firstResponder to a new textfield, the keyboard will not disappear (nor should it).
This error occurs because EarlGrey checks for Auto Correction on the textfield, disables autocorrection on the textfield, and then calls "resignFirstResponder" followed by "becomeFirstResponder", in order to effect the change. If your app chains firstResponder status, then the first call to "resignFirstResponder" will cause your app to pass responder status to the next text field.
Inspecting the EarlGrey source, it looks like the issue could be on line 182 in GREYActions.m. Here, we aren't checking to see that auto correction status is actually on. So even if your text field doesn't use auto correction, this will always invoke "resignFirstResponder" followed by "becomeFirstResponder". We should actually check to make sure that the prior value was "on" before performing this dance.
The text was updated successfully, but these errors were encountered:
Thanks a lot for bringing this to our attention. We currently have a fix in process for this. As a quick workaround, you could turn off Autocorrection Type from either the text field or the Settings?
hi @tirodkar - Unfortunately turning off autocorrection doesn't work. The reason is that regardless of the autocorrection type on the UITextField, it will be asked to resignFirstResponder, and then becomeFirstResponder.
I wasn't aware you guys had a fix in progress, so I created a PR. You can see what I am talking about here:
This error occurs when attempting to use the action to type text into a textfield.
If you chain responder status between textfields, EarlGrey will fail, reporting that "Keyboard did not disappear after resigning first responder status". This is because when your client implementation immediately moves firstResponder to a new textfield, the keyboard will not disappear (nor should it).
This error occurs because EarlGrey checks for Auto Correction on the textfield, disables autocorrection on the textfield, and then calls "resignFirstResponder" followed by "becomeFirstResponder", in order to effect the change. If your app chains firstResponder status, then the first call to "resignFirstResponder" will cause your app to pass responder status to the next text field.
Inspecting the EarlGrey source, it looks like the issue could be on line 182 in GREYActions.m. Here, we aren't checking to see that auto correction status is actually on. So even if your text field doesn't use auto correction, this will always invoke "resignFirstResponder" followed by "becomeFirstResponder". We should actually check to make sure that the prior value was "on" before performing this dance.
The text was updated successfully, but these errors were encountered: