Skip to content

Instantly share code, notes, and snippets.

@dheerajn
Created September 20, 2021 21:03
Show Gist options
  • Save dheerajn/32a473decab74a7d7921b5d9c98919ce to your computer and use it in GitHub Desktop.
Save dheerajn/32a473decab74a7d7921b5d9c98919ce to your computer and use it in GitHub Desktop.
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