-
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a base class for UITests for the iOSSwift to remove some redundant code.
- Loading branch information
1 parent
105a36c
commit 8d90d43
Showing
5 changed files
with
32 additions
and
51 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,25 @@ | ||
import XCTest | ||
|
||
class BaseUITest: XCTestCase { | ||
internal let app: XCUIApplication = XCUIApplication() | ||
|
||
override func setUp() { | ||
super.setUp() | ||
continueAfterFailure = false | ||
XCUIDevice.shared.orientation = .portrait | ||
app.launchEnvironment["io.sentry.ui-test.test-name"] = name | ||
app.launch() | ||
|
||
waitForExistenceOfMainScreen() | ||
} | ||
|
||
override func tearDown() { | ||
app.terminate() | ||
super.tearDown() | ||
} | ||
|
||
func waitForExistenceOfMainScreen() { | ||
app.waitForExistence( "Home Screen doesn't exist.") | ||
} | ||
|
||
} |
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