From de4f742388002e5b8307903369727300dd3e6049 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Wed, 12 Jun 2024 08:06:30 +0100 Subject: Add MapKit demo code --- .../LearnMapKitUITestsLaunchTests.swift | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 LearnMapKitUITests/LearnMapKitUITestsLaunchTests.swift (limited to 'LearnMapKitUITests/LearnMapKitUITestsLaunchTests.swift') 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) + } +} -- cgit v1.2.3