[BUG]: False Positives on Activity/Fragment LocalTests #5434
Labels
bug
End user-perceivable behaviors which are not desirable.
Impact: Medium
Moderate perceived user impact (non-blocking bugs and general improvements).
Work: Low
Solution is clear and broken into good-first-issue-sized chunks.
Describe the bug
Sometimes tests pass on the local tests that fail on their Espresso counterparts, and from observation this can be from logic bugs as much as test platform issues.
Steps To Reproduce
Run:
HomeActivityLocalTest:testHomeActivity_onSubsequentLaunch_doesNotLogCompletedOnboardingEvent
From a real run on the device you can see from the developer menu that the event is, infact logged. The same test copied to the androidTest file, fails.
ExplorationActivityLocalTest: testExplorationActivity_updateGatingProvider_surveyGatingCriteriaMet_keepsSurveyDialog()
Expected Behavior
The above tests should fail, because manually testing the app contradicts the test behaviour.
Screenshots/Videos
No response
What device/emulator are you using?
No response
Which Android version is your device/emulator running?
No response
Which version of the Oppia Android app are you using?
No response
Additional Context
This issue tracks investigating the root cause of these false positives, and by extension should aim to identify if other tests show the same behaviour.
Should we verify that the domain/ui logic is the problem, seperate issues should be filed to fix those bugs.
The text was updated successfully, but these errors were encountered: