TodosUITestsLaunchTests.swift 808 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // TodosUITestsLaunchTests.swift
  3. // TodosUITests
  4. //
  5. // Created by Sam Jaffe on 2/28/26.
  6. //
  7. import XCTest
  8. final class TodosUITestsLaunchTests: 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. }