Trio_Watch_AppUITestsLaunchTests.swift 843 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Trio_Watch_AppUITestsLaunchTests.swift
  3. // Trio Watch AppUITests
  4. //
  5. // Created by Marvin Polscheit on 08.01.25.
  6. //
  7. import XCTest
  8. final class Trio_Watch_AppUITestsLaunchTests: XCTestCase {
  9. override class var runsForEachTargetApplicationUIConfiguration: Bool {
  10. true
  11. }
  12. override func setUpWithError() throws {
  13. continueAfterFailure = false
  14. }
  15. @MainActor
  16. func testLaunch() throws {
  17. let app = XCUIApplication()
  18. app.launch()
  19. // Insert steps here to perform after app launch but before taking a screenshot,
  20. // such as logging into a test account or navigating somewhere in the app
  21. let attachment = XCTAttachment(screenshot: app.screenshot())
  22. attachment.name = "Launch Screen"
  23. attachment.lifetime = .keepAlways
  24. add(attachment)
  25. }
  26. }