You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

51 lines
1.2 KiB

//
// SnapshotUITest.swift
// SnapshotUITest
//
// Created by InKwon James Kim on 07/10/2019.
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
//
import XCTest
class SnapshotUITest: XCTestCase {
let app = XCUIApplication()
override func setUp() {
continueAfterFailure = false
setupSnapshot(app)
app.launch()
}
func testLogin1() {
snapshot("splash_screen")
app.buttons["Login"].tap()
app.sheets["Test Account"].scrollViews.otherElements.buttons["demo.gme@gmeremit.com"].tap()
app.staticTexts["Continue with the password only"].tap()
snapshot("dashboard")
}
func testSendMoney() {
let tablesQuery = app.tables
tablesQuery.staticTexts["Send Money"].tap()
snapshot("recipients")
tablesQuery.cells.children(matching: .image).element.tap()
tablesQuery.images["ic_menu_wallet"].tap()
app.keys["1"].tap()
app.keys["2"].tap()
app.keys["3"].tap()
app.keys["4"].tap()
app.keys["5"].tap()
app.toolbars["Toolbar"].buttons["Done"].tap()
snapshot("exchange_rate")
app.scrollViews.otherElements.staticTexts["Continue"].tap()
snapshot("verification")
}
}