From c466312defc427f43168ac9f71ddbb15c1940901 Mon Sep 17 00:00:00 2001 From: "Viktoria.Shirunova" Date: Thu, 26 Apr 2018 16:25:18 +0300 Subject: [PATCH] [gui-test] corrected way to set a value at checkbox --- .../ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt index 4f7026b26e78..208608961d6d 100644 --- a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt +++ b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt @@ -73,8 +73,7 @@ fun KotlinGuiTestCase.createGradleProject( val list: JListFixture = jList("Gradle") checkKotlinInstalled() list.clickItem("Gradle") - if (isKotlinDslUsed) - checkbox("Kotlin DSL build script").click() + checkbox("Kotlin DSL build script").isSelected = isKotlinDslUsed if (framework.isNotEmpty()) { checkboxTree(framework).clickCheckbox(framework) if (!isJavaUsed) @@ -151,7 +150,7 @@ fun KotlinGuiTestCase.createMavenProject( if (archetype.isNotEmpty()) { logUIStep("Select archetype `$archetype`") val archetypeCheckbox = checkbox("Create from archetype") - archetypeCheckbox.click() + archetypeCheckbox.isSelected = true Pause.pause(1000L) if (!archetypeCheckbox.isSelected) { logUIStep("Archetype `$archetype` not selected, so next attempt")