omnivore/apple/Tests/UITests/iOS/iOSLaunchTests.swift

24 lines
531 B
Swift
Raw Normal View History

2022-02-11 17:24:33 +00:00
import XCTest
class IosLaunchTest: XCTestCase {
var app: XCUIApplication!
override func setUpWithError() throws {
try super.setUpWithError()
continueAfterFailure = false
app = XCUIApplication()
app.launchArguments.append("--uitesting")
app.launch()
}
func testThatWelcomeScreenDisplaysForLoggedOutUser() {
XCTAssertTrue(app.isDisplayingWelcomeScreen)
}
func testLaunchPerformance() throws {
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
}