Adjusted screenshots tests

pull/2/head
Michael Scoff 7 years ago
parent c07030de67
commit 975609a0d8
  1. 1
      Trust/Welcome/ViewControllers/WelcomeViewController.swift
  2. 12
      TrustUITests/Screenshots.swift
  3. 4
      fastlane/screenshots/Framefile.json

@ -44,6 +44,7 @@ class WelcomeViewController: UIViewController {
skipPlaceholder.translatesAutoresizingMaskIntoConstraints = false
skipPlaceholder.frame = CGRect(x: 0, y: 0, width: 300, height: 110)
skipPlaceholder.backgroundColor = .clear
skipPlaceholder.isAccessibilityElement = false
NSLayoutConstraint.activate([
skipPlaceholder.heightAnchor.constraint(equalToConstant: 110),

@ -12,15 +12,15 @@ class Screenshots: XCTestCase {
}
func testMakeScreenshots() {
let app = XCUIApplication()
snapshot("0Launch")
app.buttons["GET STARTED"].tap()
snapshot("1CreateWallet")
app.buttons["IMPORT WALLET"].tap()
snapshot("1ImportWallet")
sleep(4)
app.navigationBars["New Wallet"].buttons["Demo"].tap()
app.navigationBars["Import Wallet"].buttons["Demo"].tap()
app.buttons["Send"].tap()
app.tables.textFields["Amount"].tap()
@ -29,7 +29,7 @@ class Screenshots: XCTestCase {
app.navigationBars["Trust.SendAndRequestViewContainer"].buttons["Cancel"].tap()
snapshot("3Transactions")
app.tables.buttons["Show my tokens"].tap()
sleep(12)
snapshot("4Tokens")

@ -22,9 +22,9 @@
}
},
{
"filter": "CreateWallet",
"filter": "ImportWallet",
"title": {
"text": "Create Wallet"
"text": "Import Wallet"
}
},
{

Loading…
Cancel
Save