Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Conversation

@AlexanderAlferov
Copy link
Contributor

New notification for submission flow.

Notification creation kept the same. Main difference is in intent that leads to different screens depending on test result.
For quick intent test new button was introduced in test menu (Test for API).

For better testability NotificationHelper was refactored from object to injectable class with further refactoring of some classes and tests 🤖

Screenshot 2020-12-07 at 18 28 35

@AlexanderAlferov AlexanderAlferov added enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers labels Dec 7, 2020
@AlexanderAlferov AlexanderAlferov added this to the 1.9.0 milestone Dec 7, 2020
@AlexanderAlferov AlexanderAlferov requested review from a team, chiljamgossow and d4rken December 7, 2020 15:33
@chiljamgossow chiljamgossow self-assigned this Dec 8, 2020
@chiljamgossow
Copy link
Contributor

How can we test this?

Copy link
Member

@AndroidMedaGalaxy AndroidMedaGalaxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Checked with the Test Menu.

  1. Tested with positive Result : Deep linking works and the Submission Flow starts when clicked on the notification
  2. Tested with Negative REsult : Deep linking works here again and Result Page is shown after clicking on the notification. of course, the result visible in the screen is negative as it should.

Long story short, All looks good to me. (. _ .)/ \(.__.)

Thanks

@chiljamgossow
Copy link
Contributor

chiljamgossow commented Dec 8, 2020

When I tested with the test menu, screens were incomplete. I do not know whether it works fine in a more realistic scenario.

@d4rken d4rken self-assigned this Dec 9, 2020
@AndroidMedaGalaxy AndroidMedaGalaxy self-assigned this Dec 10, 2020
@ralfgehrer ralfgehrer self-assigned this Dec 10, 2020
@chris-cwa chris-cwa self-assigned this Dec 10, 2020
ralfgehrer
ralfgehrer previously approved these changes Dec 10, 2020
Copy link
Contributor

@ralfgehrer ralfgehrer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good.

# Conflicts:
#	Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/test/api/ui/TestForAPIFragment.kt
#	Corona-Warn-App/src/deviceForTesters/res/layout/fragment_test_for_a_p_i.xml
Copy link
Member

@AndroidMedaGalaxy AndroidMedaGalaxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested

Scenario 1: Positive test  with cancelled submission flow after QR scan
    - > Positive notification fired from Test API - > Clicked on notification - > Submission flow start screen "Your test is available" was opened

Scenario2 : Negative test 
    - > Negative notification fired from Test API - > Clicked on notification - > Test Result screen was opened

Tried interchanging the Positive and Negative notifications buttons in Test API regardless of the test result

All works good. ヽ(ヅ)ノ

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

2.5% 2.5% Coverage
0.0% 0.0% Duplication

@d4rken d4rken merged commit c8a0cfd into release/1.9.x Dec 10, 2020
@d4rken d4rken deleted the feature/4134-new-notification branch December 10, 2020 16:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants