Skip to content
Browse files

Fix error message when views don't match because of traits

The error message when a view failed to match due to incorrect accessiblity traits was being skipped.
  • Loading branch information...
1 parent 3f41c39 commit 28672cd2c629706476579ca2f087b316e0fc487d @efirestone efirestone committed Jul 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/KIFTestStep.m
View
2 Classes/KIFTestStep.m
@@ -690,7 +690,7 @@ + (UIAccessibilityElement *)_accessibilityElementWithLabel:(NSString *)label acc
*error = [[[NSError alloc] initWithDomain:@"KIFTest" code:KIFTestStepResultFailure userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Found an accessibility element with the label \"%@\", but not with the value \"%@\"", label, value], NSLocalizedDescriptionKey, nil]] autorelease];
// Check the traits too
- } else if (traits != UIAccessibilityTraitNone && [[UIApplication sharedApplication] accessibilityElementWithLabel:label accessibilityValue:nil traits:traits]) {
+ } else if (traits != UIAccessibilityTraitNone && [[UIApplication sharedApplication] accessibilityElementWithLabel:label accessibilityValue:nil traits:UIAccessibilityTraitNone]) {
*error = [[[NSError alloc] initWithDomain:@"KIFTest" code:KIFTestStepResultFailure userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Found an accessibility element with the label \"%@\", but not with the traits \"%d\"", label, traits], NSLocalizedDescriptionKey, nil]] autorelease];
} else {

0 comments on commit 28672cd

Please sign in to comment.
Something went wrong with that request. Please try again.