mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-test] testTreeItemExist added a small timeout to search item instead of default one
This commit is contained in:
@@ -151,7 +151,7 @@ fun GuiTestCase.waitAMoment() {
|
||||
fun GuiTestCase.testTreeItemExist(name: String, vararg expectedItem: String, predicate: FinderPredicate = Predicate.equality) {
|
||||
ideFrame {
|
||||
logInfo("Check that $name -> ${expectedItem.joinToString(" -> ")} exists in a tree element")
|
||||
kotlin.assert(exists { jTree(*expectedItem, predicate = predicate) }) { "$name '${expectedItem.joinToString(", ")}' not found" }
|
||||
kotlin.assert(exists { jTree(*expectedItem, predicate = predicate, timeout = Timeouts.seconds03) }) { "$name '${expectedItem.joinToString(", ")}' not found" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user