Skip to content
Snippets Groups Projects
Unverified Commit d40ba276 authored by Kolya Opahle's avatar Kolya Opahle Committed by GitHub
Browse files

Rapid Antigen Test: Change state to Outdated (EXPOSUREAPP-6010) (#2889)


* Enabled Test Outdated card for RA Tests on homescreen
added check for outdatedness to RA getState
Deletion button currently shows no warining dialog

* isOutdated now checks based on a AppConfig instance that is passed in
fixed unit tests

* Fixed instrumentation tests

* Fixed logic for RACoronaTest outdated ui state calculation

* Moved coronaTestConfig resolution to homeItems Flow combiner (now uses currentConfig instead of resolving a new config each time)

* HomeFragmentViewModel app config flow is now mapped down to distinct coronaTestParameters

* Added small test to guarantee that we can call distinctUntilChanged on CoronaRapidAntigenTestParametersContainer

* Fixed wrong CoronaTestResult constants in getState (also added additional pending state check)

Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
Co-authored-by: default avatarBMItter <Berndus@gmx.de>
parent c63fa985
No related branches found
No related tags found
No related merge requests found
Showing
with 146 additions and 69 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment