mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[driver-tests]: use more logical check in waitNotFound
GitOrigin-RevId: a468064b15ec92e72ce635812e38f4e2683f301d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
21f1eefade
commit
69009c72a8
@@ -68,7 +68,7 @@ open class UiComponent(private val data: ComponentData) : Finder, WithKeyboard {
|
||||
waitFor(message = "No ${this::class.simpleName}[xpath=${data.xpath}] in ${data.parentSearchContext.contextAsString}",
|
||||
timeout = timeout ?: DEFAULT_FIND_TIMEOUT,
|
||||
interval = 1.seconds) {
|
||||
kotlin.runCatching { findThisComponent(timeout) }.isFailure
|
||||
!present()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user