The Home feed has recently been migrated to Jetpack Compose, which removed much of the XML-based UI. As a result, the existing UI tests are no longer applicable. The goal of this task is to establish a UI testing approach that supports both the remaining XML based screens and the new Jetpack Compose UI.
A spike was completed to evaluate using AI to help implement UI tests. The spike PR outlines the architecture and AI skills required for generating and maintaining these tests:
https://github.com/wikimedia/apps-android-wikipedia/pull/6647
Requirements
- Refine the AI skill definitions as needed.
- Remove the old XML based UI tests for the Home feed.
- Follow the testing architecture established in the spike, refine it where necessary.
- Replace the Home feed XML UI tests with Jetpack Compose UI tests and
- Fix any existing broken UI tests encountered during the migration to ensure the test suite is stable.
- Integrate the UI tests into GitHub Actions, using the existing Android smoke test workflow as a reference: