Skip to content

Instantly share code, notes, and snippets.

@JoseAlcerreca
Last active March 22, 2023 12:00
Show Gist options
  • Save JoseAlcerreca/c5b94db07f04b15255b1637ded3a3bbd to your computer and use it in GitHub Desktop.
Save JoseAlcerreca/c5b94db07f04b15255b1637ded3a3bbd to your computer and use it in GitHub Desktop.
// Copyright 2022 Google LLC.
// SPDX-License-Identifier: Apache-2.0
fun waitUntilAtLeastOneExists(matcher: SemanticsMatcher, timeout: Long = 1000L)
fun waitUntilDoesNotExist(matcher: SemanticsMatcher, timeout: Long = 1000L)
fun waitUntilExactlyOneExists(matcher: SemanticsMatcher, timeout: Long = 1000L)
fun waitUntilNodeCount(matcher: SemanticsMatcher, count: Int, timeout: Long = 1000L)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment