Open RichardGuion opened 7 years ago
Note that the returned matcher should also contain a isKindOfClass
matcher for UIControl class types:
return grey_allOf(grey_kindOfClass([UIControl class]), isEnabledMatcher, grey_not(grey_ancestor(grey_not(isEnabledMatcher))), nil);
@RichardGuion would you like to take a stab at it?
When using grey_enabled in a test I noticed that any text I used did not assert
This is a case where "bar" did not exist at all and I was expecting an assertion thrown.
The answer is here: https://github.com/google/EarlGrey/blob/b0ed5e03fb2b5a5ba00843811c9e87baa547bf6b/EarlGrey/Matcher/GREYMatchers.m#L476
The default value of BOOL matched should be NO instead of YES.