mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[remote-driver][ui-tests] Add assertContainsText method to UiComponent
GitOrigin-RevId: 5331278b4c1b653cd96d36aa69276bc0f46460fd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b2442dd72b
commit
7abd052062
+6
@@ -218,6 +218,12 @@ open class UiComponent(private val data: ComponentData) : Finder, WithKeyboard {
|
||||
)
|
||||
}
|
||||
|
||||
fun assertContainsText(text: String, message: String? = null, timeout: Duration = DEFAULT_FIND_TIMEOUT) {
|
||||
waitFor(message = message ?: "Finding one text '$text' in $this", timeout = timeout) {
|
||||
allTextAsString().contains(text)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits for one UiText matching predicate.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user