Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
947a46c3
Commit
947a46c3
authored
7 years ago
by
Viktoria.Shirunova
Browse files
Options
Download
Email Patches
Plain Diff
[gui-test] do not add Kotlin SDK if it already exists
parent
d58b999e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/installKotlinPlugin/CreateSdksGuiTest.kt
+16
-3
...ectWizard/kotlin/installKotlinPlugin/CreateSdksGuiTest.kt
with
16 additions
and
3 deletions
+16
-3
community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/installKotlinPlugin/CreateSdksGuiTest.kt
+
16
-
3
View file @
947a46c3
...
...
@@ -3,6 +3,7 @@ package com.intellij.ide.projectWizard.kotlin.installKotlinPlugin
import
com.intellij.ide.projectWizard.kotlin.model.KotlinGuiTestCase
import
com.intellij.ide.projectWizard.kotlin.model.KotlinTestProperties
import
com.intellij.testGuiFramework.util.logInfo
import
com.intellij.testGuiFramework.util.logTestStep
import
com.intellij.testGuiFramework.util.logUIStep
import
org.junit.Test
...
...
@@ -44,9 +45,21 @@ class CreateSdksGuiTest : KotlinGuiTestCase() {
popupClick
(
"Project Structure"
)
logUIStep
(
"Open `$dialogName` dialog"
)
dialog
(
dialogName
)
{
actionButton
(
"Add New SDK"
).
click
()
popupClick
(
"Kotlin SDK"
)
button
(
"OK"
).
click
()
jList
(
"SDKs"
).
clickItem
(
"SDKs"
)
val
kotlinSdk
=
"Kotlin SDK"
try
{
jTree
(
kotlinSdk
)
logInfo
(
"$kotlinSdk exists"
)
}
catch
(
e
:
Exception
){
logUIStep
(
"Going to create $kotlinSdk"
)
actionButton
(
"Add New SDK"
).
click
()
popupClick
(
kotlinSdk
)
}
finally
{
logUIStep
(
"Close `Default Project Structure` dialog with OK"
)
button
(
"OK"
).
click
()
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help