lnlink

iOS app for connecting to lightning nodes
git clone git://jb55.com/lnlink
Log | Files | Refs | Submodules | README | LICENSE

lightninglinkUITestsLaunchTests.swift (820B)


      1 //
      2 //  lightninglinkUITestsLaunchTests.swift
      3 //  lightninglinkUITests
      4 //
      5 //  Created by William Casarin on 2022-01-07.
      6 //
      7 
      8 import XCTest
      9 
     10 class lightninglinkUITestsLaunchTests: XCTestCase {
     11 
     12     override class var runsForEachTargetApplicationUIConfiguration: Bool {
     13         true
     14     }
     15 
     16     override func setUpWithError() throws {
     17         continueAfterFailure = false
     18     }
     19 
     20     func testLaunch() throws {
     21         let app = XCUIApplication()
     22         app.launch()
     23 
     24         // Insert steps here to perform after app launch but before taking a screenshot,
     25         // such as logging into a test account or navigating somewhere in the app
     26 
     27         let attachment = XCTAttachment(screenshot: app.screenshot())
     28         attachment.name = "Launch Screen"
     29         attachment.lifetime = .keepAlways
     30         add(attachment)
     31     }
     32 }