[gui-test] testTreeItemExist added a small timeout to search item instead of default one

This commit is contained in:
Viktoria.Shirunova
2018-11-27 11:08:03 +03:00
parent b8d3609e05
commit 69dbfea7bf
@@ -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" }
}
}