... | ... | @@ -12,15 +12,56 @@ According to the comments in the above ticket: |
|
|
|
|
|
This refers to the deep sleep caused by the Android operating system itself as and when it decides that the app should not be running in the background. This is tested in this [scenario](https://code.briarproject.org/briar/briar/-/wikis/reopen-mailbox-after-device-goes-to-sleep)
|
|
|
|
|
|
This test will have a purpose to verify that the mailbox can be restarted after the Battery optimisation setting is set to ON, and the app is exited via one of these means:
|
|
|
- cancel setup
|
|
|
- tapping the 'stop' button on the status screen
|
|
|
- force stopping the app from device settings
|
|
|
- rebooting the device
|
|
|
- after wiping (remote or not)
|
|
|
This test will have a purpose to verify that the mailbox can be restarted and the do-not-kill-me fragment is presented to the user to 'allow connections' after the Battery optimisation setting is set to ON, and the app is exited via one of these means:
|
|
|
a) cancel setup
|
|
|
b) tapping the 'stop' button on the status screen
|
|
|
c) force stopping the app from device settings
|
|
|
d) rebooting the device
|
|
|
e) after wiping (remote or not)
|
|
|
|
|
|
This needs to be tried. Because: normally this dialogue is set to appear after the intro screens. But are intro screens always shown?
|
|
|
|
|
|
Scenario a)
|
|
|
- fresh installation of mailbox
|
|
|
- whilst the QR code is disaplyed, go to device settings > Apps and Notifications > Special access > Battery optimisation and manually switch the battery optimisation to ON for this app
|
|
|
- go back to the mailbox app and Cancel setup
|
|
|
- then retart mailbox app
|
|
|
|
|
|
results: the do-not-kill-me fragment is presented to the user - which is correct
|
|
|
- if the user taps Allow connections, they see a dialogue box like on the screenshot - which is excellent.
|
|
|
![Screenshot_20220729_123908](uploads/43a5a4ec1f63ff2cc04827d9e565d5d2/Screenshot_20220729_123908.png)
|
|
|
|
|
|
- User taps Allow, and the mailbox startup process continues.
|
|
|
- progress wheel is displayed as is the notification Mailbox is starting and the notification icon top left.
|
|
|
- QR code is displayed again
|
|
|
- At the time of QR code being disaplyed again - got to device settings and verify that the battery optimisation is set to Off (because of having tapped on Allow button two steps previously)
|
|
|
- restart the device settings app to make sure that what you are looking at is the up to date info
|
|
|
|
|
|
Scenario b)
|
|
|
- connect the mailbox with its partner briar app and whilst the status screen is displayed got to the device settings and set the Battery Oprtimisation to ON.
|
|
|
- then go back to the mailbox app and tap the Stop button on its status screen
|
|
|
- then restart the mailbox app
|
|
|
- verify that the do-not-kill-me screen is presented again and that tappng on the Allow button sets the battery optimisation setting to OFF for this app
|
|
|
|
|
|
Scenarios c) force stop the app
|
|
|
- link the mailbox with Briar and once linked switch the battery opt setting to ON for this app.
|
|
|
- then force stop the app
|
|
|
- Start the mailbox.
|
|
|
- the do-not-kill-me fragment should show again and the mailbox should dispaly the status screen
|
|
|
|
|
|
Scenario d) rebooting device
|
|
|
|
|
|
- link the mailbox with Briar and once linked switch the battery opt setting to ON for this app.
|
|
|
- Then reboot the device.
|
|
|
- Start the mailbox.
|
|
|
- the do-not-kill-me fragment should show again and the mailbox should dispaly the status screen
|
|
|
|
|
|
Scenario e)
|
|
|
- the user should see intro screens, then the do-not-kill-me screen, and then the QR code.. in the usual way.
|
|
|
|
|
|
Executed on the 29/7/22 all OK
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Back to Testing](https://code.briarproject.org/briar/briar/-/wikis/Testing) |
|
|
\ No newline at end of file |