From 46e775abdc535fe460654065ae27d04d62d346bc Mon Sep 17 00:00:00 2001 From: Viktoria Shirunova Date: Thu, 7 Mar 2019 18:01:42 +0300 Subject: [PATCH] [gui-test]ActionsInProjectStructure.checkFacetInOneModule: set explicit timeout to search tree --- .../projectWizard/kotlin/model/ActionsInProjectStructure.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ActionsInProjectStructure.kt b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ActionsInProjectStructure.kt index e0cd73a47f9d..dc6f575891dc 100644 --- a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ActionsInProjectStructure.kt +++ b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ActionsInProjectStructure.kt @@ -1,6 +1,7 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.projectWizard.kotlin.model +import com.intellij.testGuiFramework.framework.Timeouts import com.intellij.testGuiFramework.impl.ScreenshotOnFailure import com.intellij.testGuiFramework.impl.jTree import com.intellij.testGuiFramework.util.scenarios.ProjectStructureDialogModel @@ -16,9 +17,9 @@ fun ProjectStructureDialogModel.checkFacetInOneModule(expectedFacet: FacetStruct with(guiTestCase) { step("Check facet for module `${path.joinToString(" -> ")}`") { try { - val tree = jTree(*path) + val tree = jTree(*path, timeout = Timeouts.seconds30) tree.clickPath() - screenshot() + screenshot("path is clicked") assert(tree.isPathSelected()) { "path ${path.joinToString()} is not selected" }