Skip to content

Fix smoke tests for Compose Songs tab#221

Merged
timusus merged 1 commit intomainfrom
fix-smoke-tests-compose
Mar 28, 2026
Merged

Fix smoke tests for Compose Songs tab#221
timusus merged 1 commit intomainfrom
fix-smoke-tests-compose

Conversation

@timusus
Copy link
Copy Markdown
Owner

@timusus timusus commented Mar 28, 2026

Summary

  • Smoke tests used R.id.recyclerView + RecyclerViewActions on the Songs tab, which has been migrated to Compose
  • Use createEmptyComposeRule() alongside Espresso to find and tap Compose text nodes
  • Fix Compose-Espresso idle timeout when navigating from Genres tab (FastScroller delay(1500) keeps idle resource busy) by advancing the compose clock

Test plan

  • All 16 managed device tests pass (pixel6Api34Atd)
  • Unit tests unaffected

The Songs tab was migrated from RecyclerView to Compose but the
instrumented smoke tests still looked for R.id.recyclerView. Use
ComposeTestRule alongside Espresso to find and interact with Compose
text nodes on the Songs tab.

Also fix Compose-Espresso idle timeout when navigating from Genres
(Compose with FastScroller delay) to Playlists — advance the compose
clock past the FastScroller auto-hide delay.
@timusus timusus merged commit ae8175e into main Mar 28, 2026
1 check failed
@timusus timusus deleted the fix-smoke-tests-compose branch March 28, 2026 07:53
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.

1 participant