tool-suite-X icon indicating copy to clipboard operation
tool-suite-X copied to clipboard

Espresso Tests for Survey Toolbar Failing on CircleCI

Open Chinex-Boroja opened this issue 8 months ago • 2 comments

Description for PR-179

The Espresso tests for the survey toolbar (testSettingsMenuItem and testSyncMenuItem) are failing on CircleCI due to NoMatchingViewException. These tests are currently annotated with @Ignore to allow other tests to pass.

The tests are in org.opendatakit.survey.logic.TestMainMenuActivity and these are the failure descriptions in CircleCI:

  • testSettingsMenuItem: androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: view.getId() is <2131361857/org.opendatakit.survey:id/action_settings>
  • testSyncMenuItem: androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: view.getId() is <2131361858/org.opendatakit.survey:id/action_sync>

Next Steps

Although the test checks if the Intent is properly formed, further investigation is needed to determine if it might be bug related issue.

  • Investigate why NoMatchingViewException is being thrown.
  • Fix the root cause and remove the @Ignore annotations from the tests.

Chinex-Boroja avatar Jun 06 '24 08:06 Chinex-Boroja