Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
12 tasks
tomastiminskas opened this issue Jan 30, 2024 · 3 comments
Open
12 tasks
Assignees

Comments

@tomastiminskas
Copy link
Collaborator

tomastiminskas commented Jan 30, 2024

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
@MathRoda
Copy link

MathRoda commented Feb 2, 2024

Hey i'll take on this. Assign it to me.

@tomsmith8
Copy link

@MathRoda hey, any update on this one?

@MathRoda
Copy link

@tomsmith8 No luck so far, it might be related to how dependency injection structured in the project.
i'll try again on the weekend and update you guys on monday

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

No branches or pull requests

3 participants