Speed up UI tests

- Disable animations.
- Search for screens instead of scrolling them into view.
This commit is contained in:
Doug
2022-07-14 17:40:01 +01:00
committed by Doug
parent db2891b4ca
commit 0442342fc5
4 changed files with 61 additions and 19 deletions
@@ -63,6 +63,7 @@ class MockScreenTest: XCTestCase {
open override func setUpWithError() throws {
// For every test case launch the app and go to the relevant screen
continueAfterFailure = false
app.launchEnvironment = ["IS_RUNNING_UI_TESTS": "1"]
app.launch()
guard let screenKey = screenStateKey else { fatalError("no screen") }