Bootstrap custom version of the app for UI tests

This commit is contained in:
Stefan Ceriu
2022-04-29 10:11:42 +03:00
parent cfd0b14c81
commit 0faac20b04
7 changed files with 114 additions and 22 deletions
+4 -4
View File
@@ -10,7 +10,7 @@ import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
private var appCoordinator: AppCoordinator!
private var appCoordinator: Coordinator!
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
@@ -27,11 +27,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
if isRunningUITests {
// Bootstrap a different version of the application
return true
appCoordinator = UITestsAppCoordinator()
} else {
appCoordinator = AppCoordinator()
}
appCoordinator = AppCoordinator()
appCoordinator.start()
return true
}