Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting accessibility issues in CI. #3842

Merged
merged 5 commits into from
May 20, 2024
Merged

Detecting accessibility issues in CI. #3842

merged 5 commits into from
May 20, 2024

Conversation

MohitMaliFtechiz
Copy link
Collaborator

@MohitMaliFtechiz MohitMaliFtechiz commented May 13, 2024

Fixes #3837

  • Introduced the ContentDescription lint check.
  • Added the contentDescription for views and suppressed this lint warning for some views since we are setting the contentDescription for those views in the code.
  • Added the androidx.test.espresso:espresso-accessibility dependency to test the accessibility issues in our application.
  • This testing library only works with ViewAction, meaning if we perform any click on any screen, then it starts checking the accessibility issues. Therefore, we have modified our test cases accordingly.
  • Suppressed a few known accessibility issues, for example, on the LocalFileTransfer screen, we have a skip text which we are not using, but it is causing an error.
  • Fixed the TouchTargetIssue in ZimHostFragment.
  • Added the contentDescription to search recyclerView.
  • Added the contentDescription to AddNoteDialog's close image.

@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as draft May 13, 2024 14:10
Copy link

codecov bot commented May 13, 2024

Codecov Report

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

Project coverage is 54.13%. Comparing base (95ef46a) to head (eb011e5).

Files Patch % Lines
...a/org/kiwix/kiwixmobile/core/main/AddNoteDialog.kt 50.00% 4 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3842      +/-   ##
============================================
+ Coverage     53.97%   54.13%   +0.16%     
- Complexity     1333     1340       +7     
============================================
  Files           292      292              
  Lines         11113    11117       +4     
  Branches       1477     1474       -3     
============================================
+ Hits           5998     6018      +20     
+ Misses         4133     4125       -8     
+ Partials        982      974       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MohitMaliFtechiz MohitMaliFtechiz force-pushed the Fix#3837 branch 2 times, most recently from cef5605 to 3f7f3f5 Compare May 15, 2024 06:55
@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as ready for review May 15, 2024 07:19
@MohitMaliFtechiz MohitMaliFtechiz changed the title Introduced the ContentDescription lint check. Detecting accessibility issues in CI. May 15, 2024
@kelson42
Copy link
Collaborator

@MohitMaliFtechiz Can you please rebase

…ning for some views since we are setting the contentDescription for those views in the code.
… test the accessibility issues in our application.

* This testing library only work with `ViewAction` like if we perform any click on any screen then it starts checking the accessibility issues, so we have modify our test cases according to this.
* Suppress a few known accessibility issue e.g. on `LocalFileTransfer` screen we have a `skip` text which we are not using but it is giving the error for that.
* Fixed the `TouchTargetIssue` in ZimHostFragment.
* Added the `contentDescription` to search recyclerView.
* Added the `contentDescription` to AddNoteDialog's `close` image.
@MohitMaliFtechiz
Copy link
Collaborator Author

@kelson42 Done.

@kelson42 kelson42 merged commit dfbfb3b into main May 20, 2024
9 of 10 checks passed
@kelson42 kelson42 deleted the Fix#3837 branch May 20, 2024 07:10
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.

labbeling seems still not completed
3 participants