Skip to content

Commit

Permalink
Do not try to turn off IdeaVim dialog as we don't show it anymore in …
Browse files Browse the repository at this point in the history
…UI tests
  • Loading branch information
AlexPl292 committed Jan 8, 2024
1 parent e13310b commit 26bdd15
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/test/java/ui/UiTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class UiTests {

private fun closeUnrelated(sharedSteps: JavaExampleSteps) {
with(sharedSteps) {
closeIdeaVimDialog()
closeTipOfTheDay()
closeAllTabs()
}
Expand Down
8 changes: 0 additions & 8 deletions src/test/java/ui/utils/JavaExampleSteps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,11 @@ import com.intellij.remoterobot.utils.Keyboard
import ui.pages.DialogFixture
import ui.pages.DialogFixture.Companion.byTitle
import ui.pages.IdeaFrame
import ui.pages.dialog
import ui.pages.idea

class JavaExampleSteps(private val remoteRobot: RemoteRobot) {
@Suppress("unused")
private val keyboard: Keyboard = Keyboard(remoteRobot)

fun closeIdeaVimDialog() = optionalStep("Close Idea Vim dialog if it appears") {
remoteRobot.idea {
dialog("IdeaVim") { button("Yes").click() }
}
}

fun closeTipOfTheDay() = optionalStep("Close Tip of the Day if it appears") {
val idea: IdeaFrame = remoteRobot.find(IdeaFrame::class.java)
idea.dumbAware {
Expand Down

0 comments on commit 26bdd15

Please sign in to comment.