]> git.r.bdr.sh - rbdr/map/blame_incremental - MapUITests/MapUITestsLaunchTests.swift
Add search
[rbdr/map] / MapUITests / MapUITestsLaunchTests.swift
... / ...
CommitLineData
1import XCTest
2
3final class MapUITestsLaunchTests: XCTestCase {
4
5 override class var runsForEachTargetApplicationUIConfiguration: Bool {
6 true
7 }
8
9 override func setUpWithError() throws {
10 continueAfterFailure = false
11 }
12
13 @MainActor
14 func testLaunch() throws {
15 let app = XCUIApplication()
16 app.launch()
17
18 // Insert steps here to perform after app launch but before taking a screenshot,
19 // such as logging into a test account or navigating somewhere in the app
20
21 let attachment = XCTAttachment(screenshot: app.screenshot())
22 attachment.name = "Launch Screen"
23 attachment.lifetime = .keepAlways
24 add(attachment)
25 }
26}