Files
Yeti/YetiUITests/YetiUITestsLaunchTests.swift

34 lines
806 B
Swift

//
// YetiUITestsLaunchTests.swift
// YetiUITests
//
// Created by Terry Yiu on 1/19/25.
//
import XCTest
final class YetiUITestsLaunchTests: XCTestCase {
override static var runsForEachTargetApplicationUIConfiguration: Bool {
true
}
override func setUpWithError() throws {
continueAfterFailure = false
}
@MainActor
func testLaunch() throws {
let app = XCUIApplication()
app.launch()
// Insert steps here to perform after app launch but before taking a screenshot,
// such as logging into a test account or navigating somewhere in the app
let attachment = XCTAttachment(screenshot: app.screenshot())
attachment.name = "Launch Screen"
attachment.lifetime = .keepAlways
add(attachment)
}
}