From 887f9df90bc95e0a9c3978cc0c5563fcc0a16e68 Mon Sep 17 00:00:00 2001 From: Viktoria Shirunova Date: Thu, 7 Mar 2019 18:00:29 +0300 Subject: [PATCH] [gui-test]ComponentFixtureUtils.jTree: wrapped with step --- .../testGuiFramework/impl/ComponentFixtureUtils.kt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/ComponentFixtureUtils.kt b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/ComponentFixtureUtils.kt index 5b0cb1ea0ea9..0072782b2b5c 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/ComponentFixtureUtils.kt +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/ComponentFixtureUtils.kt @@ -299,12 +299,14 @@ fun ContainerFixture.textfield(textLabel: String?, timeout: T fun ContainerFixture.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.