mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-test]ComponentFixtureUtils.jTree: wrapped with step
This commit is contained in:
+8
-6
@@ -299,12 +299,14 @@ fun <C : Container> ContainerFixture<C>.textfield(textLabel: String?, timeout: T
|
||||
fun <C : Container> ContainerFixture<C>.jTree(vararg pathStrings: String,
|
||||
timeout: Timeout = defaultTimeout,
|
||||
predicate: FinderPredicate = Predicate.equality): ExtendedJTreePathFixture =
|
||||
ExtendedJTreePathFixture(GuiTestUtil.jTreeComponent(
|
||||
container = target() as Container,
|
||||
timeout = timeout,
|
||||
pathStrings = *pathStrings,
|
||||
predicate = predicate
|
||||
), pathStrings.toList(), predicate)
|
||||
step("search for jtree object for path [${pathStrings.joinToString()}]") {
|
||||
ExtendedJTreePathFixture(GuiTestUtil.jTreeComponent(
|
||||
container = target() as Container,
|
||||
timeout = timeout,
|
||||
pathStrings = *pathStrings,
|
||||
predicate = predicate
|
||||
), pathStrings.toList(), predicate)
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds a CheckboxTree component in hierarchy of context component by a path and returns CheckboxTreeFixture.
|
||||
|
||||
Reference in New Issue
Block a user