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

  1. //
  2. // SnapshotUITest.swift
  3. // SnapshotUITest
  4. //
  5. // Created by InKwon James Kim on 07/10/2019.
  6. // Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import XCTest
  9. class SnapshotUITest: XCTestCase {
  10. let app = XCUIApplication()
  11. override func setUp() {
  12. continueAfterFailure = false
  13. setupSnapshot(app)
  14. app.launch()
  15. }
  16. func testLogin1() {
  17. snapshot("splash_screen")
  18. app.buttons["Login"].tap()
  19. app.sheets["Test Account"].scrollViews.otherElements.buttons["demo.gme@gmeremit.com"].tap()
  20. app.staticTexts["Continue with the password only"].tap()
  21. snapshot("dashboard")
  22. }
  23. func testSendMoney() {
  24. let tablesQuery = app.tables
  25. tablesQuery.staticTexts["Send Money"].tap()
  26. snapshot("recipients")
  27. tablesQuery.cells.children(matching: .image).element.tap()
  28. tablesQuery.images["ic_menu_wallet"].tap()
  29. app.keys["1"].tap()
  30. app.keys["2"].tap()
  31. app.keys["3"].tap()
  32. app.keys["4"].tap()
  33. app.keys["5"].tap()
  34. app.toolbars["Toolbar"].buttons["Done"].tap()
  35. snapshot("exchange_rate")
  36. app.scrollViews.otherElements.staticTexts["Continue"].tap()
  37. snapshot("verification")
  38. }
  39. }