-
Notifications
You must be signed in to change notification settings - Fork 206
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
Showing
4 changed files
with
205 additions
and
0 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
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
</dict> | ||
</plist> |
44 changes: 44 additions & 0 deletions
44
Example/PHFComposeBarViewExampleUITests/PHFComposeBarViewExampleUITests.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,44 @@ | ||
// | ||
// PHFComposeBarViewExampleUITests.m | ||
// PHFComposeBarViewExampleUITests | ||
// | ||
// Created by Philipe Fatio on 30.01.17. | ||
// Copyright © 2017 Philipe Fatio. All rights reserved. | ||
// | ||
|
||
#import <XCTest/XCTest.h> | ||
|
||
@interface PHFComposeBarViewExampleUITests : XCTestCase | ||
|
||
@end | ||
|
||
@implementation PHFComposeBarViewExampleUITests | ||
|
||
- (void)setUp { | ||
[super setUp]; | ||
self.continueAfterFailure = NO; | ||
} | ||
|
||
- (void)tearDown { | ||
[super tearDown]; | ||
} | ||
|
||
- (void)testExample { | ||
NSString *message = @"Here is some sample text. It's a few lines long but not too long. I think that should do it."; | ||
|
||
XCUIApplication *app = [[XCUIApplication alloc] init]; | ||
[app launch]; | ||
|
||
[[app staticTexts][@"Placeholder"] tap]; | ||
[[app textViews][@"Input"] typeText:message]; | ||
[[app buttons][@"Submit"] tap]; | ||
|
||
NSString *output = [[app textViews][@"Main"] value]; | ||
XCTAssert([output containsString:message], "Message text not found in output."); | ||
|
||
[[app buttons][@"Utility"] tap]; | ||
output = [[app textViews][@"Main"] value]; | ||
XCTAssert([output containsString:@"Utility button pressed"], "Message text not found in output."); | ||
} | ||
|
||
@end |