mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-tests] added function testListItemExits
This commit is contained in:
@@ -111,6 +111,20 @@ fun GuiTestCase.testTreeItemExist(name: String, vararg expectedItem: String) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs test whether the specified item exists in a list
|
||||
* Note: the dialog with the investigated list must be open
|
||||
* before using this test
|
||||
* @param expectedItem - expected exact item
|
||||
* @param name - name of item kind, such as "Library" or "Facet". Used for understandable error message
|
||||
* */
|
||||
fun GuiTestCase.testListItemExist(name: String, expectedItem: String) {
|
||||
ideFrame {
|
||||
logInfo("Check that $name -> $expectedItem exists in a list element")
|
||||
kotlin.assert(exists { jList(expectedItem, timeout = Timeouts.noTimeout) }) { "$name '$expectedItem' not found" }
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Selects specified [path] in the tree by keyboard searching
|
||||
* @param path in string form
|
||||
|
||||
Reference in New Issue
Block a user