summaryrefslogtreecommitdiff
path: root/LearnMapKitUITests/LearnMapKitUITestsLaunchTests.swift
diff options
context:
space:
mode:
Diffstat (limited to 'LearnMapKitUITests/LearnMapKitUITestsLaunchTests.swift')
-rw-r--r--LearnMapKitUITests/LearnMapKitUITestsLaunchTests.swift32
1 files changed, 32 insertions, 0 deletions
diff --git a/LearnMapKitUITests/LearnMapKitUITestsLaunchTests.swift b/LearnMapKitUITests/LearnMapKitUITestsLaunchTests.swift
new file mode 100644
index 0000000..021d9d7
--- /dev/null
+++ b/LearnMapKitUITests/LearnMapKitUITestsLaunchTests.swift
@@ -0,0 +1,32 @@
+//
+// LearnMapKitUITestsLaunchTests.swift
+// LearnMapKitUITests
+//
+// Created by Jacky Jack on 05/06/2024.
+//
+
+import XCTest
+
+final class LearnMapKitUITestsLaunchTests: 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)
+ }
+}