ricky9667 / HushKeyboard

Rubik's Cube notation keyboard for Android.
GNU General Public License v3.0
6 stars 3 forks source link

Add settings screen UI tests #31

Closed yan-yangyang closed 6 months ago

yan-yangyang commented 6 months ago

Description

This PR adds the following test cases:

  1. Wide notation dropdown item should exist, should be enable, and should have click action.
  2. Wide notation dropdown menu should display after Wide notation dropdown item is clicked.
  3. All wide notation dropdown menu items should display after Wide notation dropdown item is clicked.
  4. Add space after notation item should exist, should be enabled, and should have click action.
  5. Auto space switch should exist, should be enabled, and should have click action.
  6. Auto space switch value should be true in initial state.
  7. Auto space switch value should be false after it is clicked.
  8. Vibrate on tap should exist, should be enabled, and should have click action.
  9. Vibrate on tap switch should exist, should be enabled, and should have click action.
  10. Vibrate On Tap Switch value should be true in initial state.
  11. Vibrate On Tap Switch value should be false after it is clicked.
  12. Version should exist, should be enabled, and should have click action.

How to verify

  1. All test cases should pass.
  2. CI pipeline should pass.

Screenshots / Videos

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 80.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 45.67%. Comparing base (acecabc) to head (c6eb280).

Files Patch % Lines
...d/settings/ui/AddSpaceBetweenNotationSwitchItem.kt 75.00% 0 Missing and 1 partial :warning:
...hushkeyboard/settings/ui/VibrateOnTapSwitchItem.kt 75.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #31 +/- ## ========================================== + Coverage 44.46% 45.67% +1.21% ========================================== Files 36 36 Lines 686 694 +8 Branches 172 172 ========================================== + Hits 305 317 +12 + Misses 303 298 -5 - Partials 78 79 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.