0

Part of the EarlGrey test I'm writing includes saving a user's name. Here's the line of code:

[[[EarlGrey selectElementWithMatcher:grey_accessibilityID(@"textField")] atIndex:0] performAction:[GREYActions actionForTypeText:name]]

name is saved to @"Thisisa UItest". Sometimes, the typed text is inaccurate: There are random letter capitalizations (I've put in a .lowercase check as a work-around), as well as letters omitted sometimes. For example, "Thisisa itest" would be typed. It's not consistent, but often enough to make the tests unreliable.

In setUp, I have this argument that I read would make typing slower: [[GREYUIThreadExecutor sharedInstance] drainUntilIdle];

Let me know!

Edit: As per @Gautam 's request - XCode 8.2.1, iPad Pro, 9.7 inch simulator

ArielSD
  • 829
  • 10
  • 27
  • This appears like a bug, but can you please share info on your environment as well? The iOS version, simuator/device model etc. – Gautam Jan 30 '17 at 19:02
  • Running iPad Pro 9.7 simulator, on XCode 8.2.1 – ArielSD Feb 02 '17 at 23:50
  • Sorry, can you please mention iOS version the iPad Pro is running as well? – Gautam Feb 04 '17 at 00:55
  • 1
    Ariel, scratch that, we have been able to repro this and I can confirm that this is an actual bug in the framework, I have created https://github.com/google/EarlGrey/issues/424, please follow on there. – Gautam Feb 04 '17 at 01:43

0 Answers0