[gui-test] fix for the returning on the first step of Welcome Frame (GUI-240)

Previously we checked that welcome frame is just showing, not a create new project action link.
This commit is contained in:
Sergey Karashevich
2019-02-05 17:33:12 +03:00
parent 63b996e8c7
commit 7c103f8397
@@ -220,9 +220,9 @@ class GuiTestRule : TestRule {
//find first page with such actions like "Create New Project" without timeout
private fun isWelcomeFrameFirstStep(timeout: org.fest.swing.timing.Timeout = Timeouts.seconds01): Boolean {
val createNewProjectAction = GuiTestUtilKt.ignoreComponentLookupException {
WelcomeFrameFixture.find(robot(), timeout).apply { robot().finder().find(this@apply.target() as Container) { it is ActionLink && it.text.contains("New Project") } }
WelcomeFrameFixture.find(robot(), timeout).let { robot().finder().find(it.target() as Container) { it is ActionLink && it.text.contains("New Project") } }
}
return createNewProjectAction?.target()?.isShowing ?: false
return createNewProjectAction?.isShowing ?: false
}