diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-07-24 20:19:46 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-07-24 20:19:46 +0200 |
| commit | bf063563436a12c003968ae4d00991f49fac226c (patch) | |
| tree | baa95b20f000813c9692f085ece363194041ec94 /CapturaUITests/CapturaUITestsLaunchTests.swift | |
Initial commit
Diffstat (limited to 'CapturaUITests/CapturaUITestsLaunchTests.swift')
| -rw-r--r-- | CapturaUITests/CapturaUITestsLaunchTests.swift | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/CapturaUITests/CapturaUITestsLaunchTests.swift b/CapturaUITests/CapturaUITestsLaunchTests.swift new file mode 100644 index 0000000..4edb6b3 --- /dev/null +++ b/CapturaUITests/CapturaUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// CapturaUITestsLaunchTests.swift +// CapturaUITests +// +// Created by Ruben Beltran del Rio on 7/24/23. +// + +import XCTest + +final class CapturaUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + 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) + } +} |