secant-android-wallet/docs/testing/manual_testing/Settings.md

1.9 KiB

Configure keep screen on setting - Because sync can take a long time, the app has a feature to keep the screen on until sync completes. The functionality to keep the screen on will apply to any screen while the app is open and syncing is actively in progress

  1. Change the systemwide screen timeout in the Android Settings to something short, e.g. 15 seconds
  2. Install the app
  3. Launch the app
  4. Get to the app's settings
  5. Enable the "keep screen on while syncing" option
  6. Assuming that sync will take a long time, leave the app open and do not touch the screen for more than the systemwide screen timeout duration
  7. Verify that the screen does not turn off
  8. Go to the settings and disable the "Keep screen on while syncing" option
  9. Keeping the app on the screen, leave the device alone for more than the systemwide screen timeout
  10. Verify that the screen does turn off
  11. Wake the device
  12. Turn the "Keep screen on while syncing" option back on
  13. Return to the home screen
  14. Leave the device alone until sync completes (this may take hours)
  15. Verify when you return that the screen is off (the screen should turn off within the systemwide screen timeout after syncing completes)

Disable background syncing

  1. Install a debug build of the app and connect the device to a system with the Android developer tools installed
  2. Perform a fresh install of the app
  3. Go through the onboarding to get to the home screen
  4. In the developer tools (App Inspection -> Background Task Inspector), verify that a periodic WorkManager job is scheduled or running
  5. Go into the app's settings and disable the background sync option
  6. In the developer tools, verify that no periodic WorkManager job is scheduled or running (e.g. it may be cancelled)
  7. Go into the app's settings and re-enable the background sync option
  8. In the developer tools, verify that a periodic WorkManager job is scheduled