Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Example Projects and run them via CI
- Loading branch information
1 parent
f6c573e
commit 5789786
Showing
18 changed files
with
629 additions
and
429 deletions.
There are no files selected for viewing
9 changes: 0 additions & 9 deletions
9
Documentation/Examples/Calculator/Acceptance Tests/Acceptance Tests-Prefix.pch
This file was deleted.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
Documentation/Examples/Calculator/Acceptance Tests/KIFUITestActor+BasicCalculator.h
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,16 @@ | ||
// Licensed to Square, Inc. under one or more contributor license agreements. | ||
// See the LICENSE file distributed with this work for the terms under | ||
// which Square, Inc. licenses this file to you. | ||
|
||
#import <KIF/KIF.h> | ||
|
||
|
||
@interface KIFUITestActor (BasicCalculator) | ||
|
||
- (void)enterValue1:(NSString *)value; | ||
- (void)enterValue2:(NSString *)value; | ||
- (void)setOperation:(NSString *)operation; | ||
- (void)enterValue1:(NSString *)value1 value2:(NSString *)value2 operation:(NSString *)operation; | ||
- (void)waitForResult:(NSString *)result; | ||
|
||
@end |
37 changes: 37 additions & 0 deletions
37
Documentation/Examples/Calculator/Acceptance Tests/KIFUITestActor+BasicCalculator.m
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,37 @@ | ||
// Licensed to Square, Inc. under one or more contributor license agreements. | ||
// See the LICENSE file distributed with this work for the terms under | ||
// which Square, Inc. licenses this file to you. | ||
|
||
#import "KIFUITestActor+BasicCalculator.h" | ||
|
||
|
||
@implementation KIFUITestActor (BasicCalculator) | ||
|
||
- (void)enterValue1:(NSString *)value | ||
{ | ||
[self clearTextFromAndThenEnterText:value intoViewWithAccessibilityLabel:@"First Number"]; | ||
} | ||
|
||
- (void)enterValue2:(NSString *)value | ||
{ | ||
[self clearTextFromAndThenEnterText:value intoViewWithAccessibilityLabel:@"Second Number"]; | ||
} | ||
|
||
- (void)setOperation:(NSString *)operation | ||
{ | ||
[self tapViewWithAccessibilityLabel:operation]; | ||
} | ||
|
||
- (void)enterValue1:(NSString *)value1 value2:(NSString *)value2 operation:(NSString *)operation | ||
{ | ||
[self enterValue1:value1]; | ||
[self enterValue2:value2]; | ||
[self setOperation:operation]; | ||
} | ||
|
||
- (void)waitForResult:(NSString *)result | ||
{ | ||
[self waitForViewWithAccessibilityLabel:result]; | ||
} | ||
|
||
@end |
Oops, something went wrong.