From 6755960ad40ceb19ebc4891ffc3553e06c268ab9 Mon Sep 17 00:00:00 2001 From: Richard Guion Date: Tue, 4 Apr 2017 18:43:07 -0700 Subject: [PATCH] matcherForEnabledElement default matched value should be NO/false (#479) --- EarlGrey/Matcher/GREYMatchers.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EarlGrey/Matcher/GREYMatchers.m b/EarlGrey/Matcher/GREYMatchers.m index 4025af6b4..1c9c9a41b 100644 --- a/EarlGrey/Matcher/GREYMatchers.m +++ b/EarlGrey/Matcher/GREYMatchers.m @@ -473,7 +473,7 @@ @implementation GREYMatchers + (id)matcherForEnabledElement { MatchesBlock matches = ^BOOL(id element) { - BOOL matched = YES; + BOOL matched = NO; if ([element isKindOfClass:[UIControl class]]) { UIControl *control = (UIControl *)element; matched = control.enabled;