simpliplay-ios/First iOS App/First iOS AppUITests/First_iOS_AppUITestsLaunchTests.swift
2025-01-21 20:42:43 -06:00

34 lines
838 B
Swift

//
// First_iOS_AppUITestsLaunchTests.swift
// First iOS AppUITests
//
// Created by Anirudh Sevugan on 1/21/25.
//
import XCTest
final class First_iOS_AppUITestsLaunchTests: XCTestCase {
override class 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)
}
}