Scribe-Android icon indicating copy to clipboard operation
Scribe-Android copied to clipboard

Add Unit Tests for AboutScreen

Open angrezichatterbox opened this issue 10 months ago • 9 comments

Terms

Description

Add unit tests to verify the functionality of the utility functions and logic used in the AboutScreen.

The following things has to be done in this issue:

  1. Test Utility Functions:

    • Validate AboutUtil.getCommunityList with mock context and click handlers.
    • Test AboutUtil.getFeedbackAndSupportList for correct item generation.
    • Ensure AboutUtil.getLegalListItems produces the expected legal items.
  2. Test Click Handlers:

    • Mock context and validate functions such as:
      • AboutUtil.onShareScribeClick
      • AboutUtil.onRateScribeClick
      • AboutUtil.onMailClick
  3. Test Hint Reset Logic:

    • Verify HintUtils.resetHints is invoked and state updates as expected.

Contribution

Happy to help anyone solve this issue or take this up myself at some point :)

angrezichatterbox avatar Jan 15 '25 19:01 angrezichatterbox

Can i work on this @angrezichatterbox ?

Saifuddin53 avatar Jan 16 '25 11:01 Saifuddin53

Assigned :)

Thanks for taking up the issue. In case of queries feel free to ask it here.

angrezichatterbox avatar Jan 16 '25 11:01 angrezichatterbox

@angrezichatterbox I think we can skip testing parts that deals with context like Test Click Handlers: as it more related to android/OS not a pure logic.

MahmoudMabrok avatar Feb 01 '25 19:02 MahmoudMabrok

Quick check in here @Saifuddin53 👋 Are you still planning on working on this issue? Hope so and hope all's well with you! 😊

andrewtavis avatar Mar 08 '25 15:03 andrewtavis

Hello @andrewtavis 👋, will it work fine for you if I try to complete it this week?

Saifuddin53 avatar Mar 09 '25 04:03 Saifuddin53

And sir haven't wikimedia participated this year in GSOC ?

Saifuddin53 avatar Mar 09 '25 04:03 Saifuddin53

Totally fine if you get to it this week, @Saifuddin53! Take your time :)

And sir haven't wikimedia participated this year in GSOC ?

No need to refer to me as sir, firstly :) And sadly Wikimedia won't be participating in this year's GSoC because of some clerical errors that weren't cleared up. Details on this can be found here. Scribe is thus not participating in GSoC 2025, and the project we had will be in Outreachy Round 30.

Happy to answer further questions, and feel free to email me or message me on Matrix with more specific questions. We also have the [Mentorship Programs](Hey, join this room on https://matrix.to/#/%23SribeGSoC%3Amatrix.org) room on Matrix where we discuss these sorts of topics in general 😊

andrewtavis avatar Mar 09 '25 09:03 andrewtavis

hi.. I'm interested in this issue. may I know how's the progress going @Saifuddin53 ? can I collaborate on this?

catreedle avatar Apr 21 '25 13:04 catreedle

Happy to assign you to collaborate here, @catreedle :) @Saifuddin53, let us know if you'd like to continue working on this! We're looking forward to the chance to collaborate with you again 😊

@catreedle, feel free to start planning out the work here and preparing a PR. We can then take it from there 🚀

andrewtavis avatar Apr 21 '25 15:04 andrewtavis

Closed by #420 🚀 Thanks for the great work, @catreedle! 😊

andrewtavis avatar Jul 18 '25 21:07 andrewtavis