Skip to content

[Tests] Create UI tests on the Profile view using JUnit or Robolectric #709

Description

@tomastiminskas

Context

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

Note: Use branch develop as base branch

Files involved:
ProfileFragment.kt
ProfileViewModel.kt
fragment_profile.xml
QRCodeFragment.kt
QRCodeViewModel.kt
fragment_qr_code.xml

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

  1. Add any needed configuration for the selected test tool 1. Add any needed configuration for the selected test tool (JUnit, Robolectric, UI Automator, etc)
  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 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions