Skip to content

Fixes part of #5035: Add missing app data reset flow tests#6224

Open
Sandesh282 wants to merge 3 commits intooppia:developfrom
Sandesh282:add-app-data-reset-tests-5035
Open

Fixes part of #5035: Add missing app data reset flow tests#6224
Sandesh282 wants to merge 3 commits intooppia:developfrom
Sandesh282:add-app-data-reset-tests-5035

Conversation

@Sandesh282
Copy link
Copy Markdown
Collaborator

@Sandesh282 Sandesh282 commented Apr 12, 2026

Explanation

Fixes part of #5035

Adds missing tests for the app data reset flow from PR #4418.

  • PinPasswordActivityTest (6 tests): covers the admin forgot-PIN → data reset dialog flow, including confirmation/cancel dialogs, profile deletion + activity finishing, and locale preservation after reset.
  • SplashActivityTest (2 tests): verifies the splash activity routes to onboarding and re-initializes locale correctly after a data reset.

Essential Checklist

  • The PR title starts with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The explanation section above starts with "Fixes #bugnum: " (If this PR fixes part of an issue, use instead: "Fixes part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

@Sandesh282 Sandesh282 requested a review from a team as a code owner April 12, 2026 11:34
@github-actions
Copy link
Copy Markdown

Coverage Report

Results

Number of files assessed: 2
Overall Coverage: 0.00%
Coverage Analysis: PASS

Exempted coverage

Files exempted from coverage
File Exemption Reason
SplashActivity.ktapp/src/main/java/org/oppia/android/app/splash/SplashActivity.kt
This file is incompatible with code coverage tooling; skipping coverage check.
PinPasswordActivity.ktapp/src/main/java/org/oppia/android/app/profile/PinPasswordActivity.kt
This file is incompatible with code coverage tooling; skipping coverage check.

Refer test_file_exemptions.textproto for the comprehensive list of file exemptions and their required coverage percentages.

To learn more, visit the Oppia Android Code Coverage wiki page

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.

2 participants