Skip to content

Comments

Test screen preparation#1

Open
JanTrnavsky wants to merge 36 commits intodevelopfrom
test-screen-preparation
Open

Test screen preparation#1
JanTrnavsky wants to merge 36 commits intodevelopfrom
test-screen-preparation

Conversation

@JanTrnavsky
Copy link
Owner

Make test compilable and start preparation of new screens

simekadam and others added 30 commits April 21, 2020 19:51
This removes the need for wakelock which should improve battery consumption.
Because of that the way how scans are saved has to be changed.
It now uses timestamp from scan results directly because thosee results can come delayed and batched.
It also then splits the results into buckets where each is 2 minutes long.
* eRouska: activation: UI espresso testcase

* eRouska: activation: finish step: under-construction

* Add disableAnimations test rule

* screenObject/FinishActivation.kt: fix waitFor resource-id

* screenObject/HomeScreen.kt: added

* tests/ActivationTest.kt: refactoring and homeScreen.eRouskaIsActiv added

* Update app/src/androidTest/kotlin/cz/covid19cz/erouska/screenObject/FinishActivation.kt

Co-Authored-By: JanTrnavsky <47607771+JanTrnavsky@users.noreply.github.com>

* Update app/src/androidTest/kotlin/cz/covid19cz/erouska/screenObject/HomeScreen.kt

Co-Authored-By: JanTrnavsky <47607771+JanTrnavsky@users.noreply.github.com>

* screenObject/PhoneNumberScreen.kt: change phone number for auto. test

* screenObject/SMSScreen.kt: change sms code for auto. test

* Add support for running test on Android 10

* eRouska: deactivation

* erouska: activation without sms code, how to work screen from welcome screen

* TCs refactoring by CR covid19cz#182

* androidTest: all screenObjects transforms from class to objects

* do not store object values in test

* do not remove spaces from phone number

* skip battery saver screen for devices without it

* move extensions from screens to helpers package

* introduce timeout on homescreen as a constant

* make possible properties private

* move verify later to SMS screen from test flow

* imports cleanup

* fix verify later wait 25-35 s till button have some size, click after

* make extensions commands bigger

* refactor rename extensions to actions

* use custom action

* add custom short action for checkDisplayed

* use checkDisplayed always with ID

* create Action for UI Automator click

* verify later change interval to between, and poll only once per 5 s

* create click action for passing an element

* add data to DB and send them

Co-authored-by: Radim Daniel Panek <rdpanek@gmail.cz>
Co-authored-by: Michal Kubele <michal.kubele@gmail.com>
Co-authored-by: Radim Daniel Pánek <rdpanek@gmail.com>
Co-authored-by: Kubele Michal <michal.kubele@avast.com>
* click on permission button by text not selector (every UI has different)

* format time and date according to phone setting
If the app si on it automatically starts it.
If it's paused manually it stays paused.
I noticed that the loop used wrong scope for checking the timestamp <facepalm>.
Also moved dbCleanup from being executed on main thread.
covid19cz#210)

* Change default language, add Ukraian, Russian, Vietnamese, Slovak and Romanian localizations

* Fix bug
It wasn't using the right method on 8+ Androids.
This switches it to the AppCompact API that takes care of it.
…z#213)

It used the same intent that's used for starting the service. Bt status is checked when the service is started which in turn caused
the error notification to pop up.
…ed. (covid19cz#214)

This should fix the issue where error notification won't cancel once error is fixed.

How to test:
1. install
2. open app and then disable the ongoing notification from system settings
3. disabled bluetooth (see error notifcation show up)
4. enable bluetooth again → error notification should disappear
* Force udpate + info phone number removed

* .gitignore update

* Update logic moved to MainActivity + WIP Test for In-App update

* Version code fix

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Exposure Notifications dependencies, db, removed BluetoothRepository, refactor

* gradle update

* removed old database and all related screens

* added Google samle code, removed location permissions + related stuff

* removed Google sample code (final decision to rewrite it from scratch)

* removed legacy code (service, foreground notification, login, broadcast receivers)

* fixed pull request comments

Co-authored-by: Stepan Sonsky <stepan.sonsky@adastra.one>
* Text changes + activation flow update

* Foreign lang text removal

* Exposure dialog removal, BaseDialogFragment revert

* Formatting fix, unused strings removed

* .gitignore update

* Redundant .idea/.name deleted

* .gitignore update

* .idea/navEditor.xml deleted

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Text changes + activation flow update

* Login removal, activation flow change

* Foreign lang text removal

* Activation flow

* Exposure dialog removal, BaseDialogFragment revert

* Formatting fix, unused strings removed

* .gitignore update

* Redundant .idea/.name deleted

* .gitignore update

* .idea/navEditor.xml deleted

* Added retrofit + ActivationService

* Mock Activation changed to SUCCESS

* Retrofit removal + code cleanup

* Linking url through AppConfig

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Update dependencies

* Server communication according to doc
* Dashboard menu change

* Send data screen, mocked data

* Mock removal, translation fix

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Notification of obsolete data UI

* Notification of obsolete data UI

* Added TODO for DATA_OBSOLETE mechanism

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Dashboard menu change

* Send data screen, mocked data

* Exposures screen

* Exposures + Spread prevention + Symptoms screens

* Exposures UI flow

* Defeault text fix

* DI duplicate fix

* gitignore update, strings fix

* Refactoring symptoms + preventions

* Redundat asset removal

* Icon default values

* Prevention/Symptoms RC urls update

* Added app namespace

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Dashboard menu change

* Send data screen, mocked data

* Exposures screen

* Exposures + Spread prevention + Symptoms screens

* Exposures UI flow

* Defeault text fix

* Exposure notification on dashboard UI

* Command and UI update

* Layout fix

* Redundant asset removal

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Newsletter screen flow

* Mocking flow

* Update detection using deprecated prefs

* Newsletter nav switched to Welcome

* Imported correct assets

* Newsletter padding fix

* Identifiers refactor

* Redundant screen removal

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Downloading exposure files

* Exposure keys download via index file

* Sandbox button + app config update

* Added debug print

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Exposure Notifications dependencies, db, removed BluetoothRepository, refactor

* gradle update

* removed old database and all related screens

* added Google samle code, removed location permissions + related stuff

* removed Google sample code (final decision to rewrite it from scratch)

* removed legacy code (service, foreground notification, login, broadcast receivers)

* fixed pull request comments

* added exposure notifications 1.6.1

* sandbox TEKs list, cleanup, updated net model

* cleanup, optimized imports

* PR fixes

Co-authored-by: Stepan Sonsky <stepan.sonsky@adastra.one>
Pavel-Habzansky and others added 6 commits August 12, 2020 18:08
* EN API off text assets

* Code cleanup

* Mock revert

* Code cleanup

* .idea/assetWizardSettings.xml removal

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Symptoms+Prevention JSON fix

* Unused keys removal

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Added DEBUG buttons

* Build flavor + debug button style

Co-authored-by: Pavel <pavel.habzansky@eman.cz>
* Exposure Notifications dependencies, db, removed BluetoothRepository, refactor

* gradle update

* removed old database and all related screens

* added Google samle code, removed location permissions + related stuff

* removed Google sample code (final decision to rewrite it from scratch)

* removed legacy code (service, foreground notification, login, broadcast receivers)

* fixed pull request comments

* added exposure notifications 1.6.1

* sandbox TEKs list, cleanup, updated net model

* cleanup, optimized imports

* PR fixes

* working upload keys without verification, improved sandbox screen

* download improvements

Co-authored-by: Stepan Sonsky <stepan.sonsky@adastra.one>
@JanTrnavsky JanTrnavsky self-assigned this Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants