新增构建OpenSSL镜像相关文件
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import XCTest
|
||||
|
||||
extension XCUIApplication {
|
||||
var isDisplayingWelcomeScreen: Bool {
|
||||
otherElements["welcomeView"].waitForExistence(timeout: 2)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import XCTest
|
||||
|
||||
class MacUILaunchTest: 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()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user