stakwork/sphinx-ios

[Tests] Create UI tests on the Profile view using XCUITest

Opened this issue · 1 comments

Context

The Profile view is accesible from Left Menu. UI Test coverage needs to be added in this view.

Note: Use branch test-flight as base branch

Files involved:
ProfileViewControlle.rswift
QRCodeDetailViewController.swift
Profile.storyboard

The goal is to test some basic UI interactions in the Profile view and their expected results.

  1. Add new test target to the project, XCUITest framework and any additional configuration needed to start adding UI tests (If needed/not added yet)
  2. Implement the following test cases

Profile view / Basic Tab

  • Editing User Name should save new value after leaving and entering Profile again
  • Editing Share my profile photo with contacts, Feed Recommendations and Auto downloaded podcast episodes should save new value after leaving and entering Profile again
  • Tapping on Address QR code icon should present PUBLIC KEY QR view
  • Tapping on Manage Storage row should present Manage Storage view controller
  • Tapping on Notification Sound row should present Notification Sound view controller
  • Editting Default tip amount should save new value after leaving and entering Profile view again
  • Tapping on Backup your key should present Pin view and start process to export keys

Profile view / Advanced tab

  • Changing PIN Timeout slider value should save new value after leaving and entering Profile again
  • Tapping on Change PIN or Set/Change Privacy PIN should present PIN view

Profile view / QR code detail view

After tapping on QR code icon on Address field the QR code detail view is presented

  • Tapping on Share button should present UIActivityViewController
  • Tapping on Copy button should copy PUBLIC KEY to clipboard

Profile view / Backup your keys

  • Add test coverage to the backup keys process: tap on Backup your keys button, enter PIN, accept alert explaining process and Restore string should be copied to clipboard

👍🏽