Skip to content

Commit e6a3201

Browse files
committed
Stabilize collapsed search filter assertion
1 parent 7532a41 commit e6a3201

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • app/src/androidTest/java/dev/tricked/solidverdant/e2e/robots

‎app/src/androidTest/java/dev/tricked/solidverdant/e2e/robots/TrackRobot.kt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ class TrackRobot(composeRule: ComposeTestRule) : Robot(composeRule) {
173173

174174
fun closeHistoryFilters(): TrackRobot = apply {
175175
firstEnabledNodeWithTag(TestTags.TRACK_FILTER_CLOSE_BUTTON).performClick()
176-
waitUntilTagIsGone(TestTags.TRACK_FILTER_SEARCH_FIELD)
176+
// API 29 can retain the outgoing text-field semantics after the collapsed control is
177+
// available. The enabled collapsed control is the authoritative state and is also the
178+
// control the next step must interact with.
179+
waitUntilEnabledTagExists(TestTags.TRACK_FILTER_OPEN_BUTTON)
177180
}
178181

179182
fun assertHistorySearch(text: String): TrackRobot = apply {

0 commit comments

Comments
 (0)