Created
September 20, 2021 21:03
-
-
Save dheerajn/32a473decab74a7d7921b5d9c98919ce to your computer and use it in GitHub Desktop.
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
import XCTest | |
import SwiftUI | |
class SwiftUI_UITesting_MediumUITests: XCTestCase { | |
let app = XCUIApplication() | |
override func setUp() { | |
super.setUp() | |
continueAfterFailure = false | |
app.launchArguments = LaunchArguments.standardForUAT | |
} | |
func testTitleText() { | |
app.launch() | |
ContentViewHelper.testTitleText() | |
} | |
func testOverriddenTitleText() { | |
app.launchEnvironment["Override-Label-titleText"] = "true" | |
app.launch() | |
ContentViewHelper.testOverriddenTitleText() | |
} | |
func testView1Navigation() { | |
app.launch() | |
ContentViewHelper.navigateToView1() | |
} | |
func testView2Navigation() { | |
app.launchEnvironment["Override-showView2"] = "true" | |
app.launch() | |
ContentViewHelper.navigateToView2() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment