-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
talkol
committed
Oct 9, 2016
1 parent
9d01548
commit a801900
Showing
6 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// GREYCondition+Detox.h | ||
// Detox | ||
// | ||
// Created by Tal Kol on 10/9/16. | ||
// Copyright © 2016 Wix. All rights reserved. | ||
// | ||
|
||
@import EarlGrey; | ||
|
||
@interface GREYCondition (Detox) | ||
|
||
+ (instancetype)detoxConditionForElementMatched:(GREYElementInteraction*)interaction; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// GREYCondition+Detox.m | ||
// Detox | ||
// | ||
// Created by Tal Kol on 10/9/16. | ||
// Copyright © 2016 Wix. All rights reserved. | ||
// | ||
|
||
#import "GREYCondition+Detox.h" | ||
|
||
@implementation GREYCondition (Detox) | ||
|
||
+ (instancetype)detoxConditionForElementMatched:(GREYElementInteraction*)interaction | ||
{ | ||
return [self conditionWithName:@"Wait for element Detox Condition" block:^BOOL{ | ||
NSError *error; | ||
[interaction assertWithMatcher:grey_notNil() error:&error]; | ||
return (error == nil); | ||
}]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters