LiveLikeGiphyChallengeUITestsLaunchTests.swift 801 B

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