sphinx-kotlin icon indicating copy to clipboard operation
sphinx-kotlin copied to clipboard

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

Open tomastiminskas opened this issue 1 year ago • 3 comments

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

tomastiminskas avatar Jan 30 '24 15:01 tomastiminskas

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

MathRoda avatar Feb 02 '24 15:02 MathRoda

@MathRoda hey, any update on this one?

tomsmith8 avatar Feb 21 '24 09:02 tomsmith8

@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

MathRoda avatar Feb 23 '24 14:02 MathRoda