Skip to content

Commit

Permalink
investigating problem with menu on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nizienko committed Nov 7, 2023
1 parent b89b6c5 commit eb590ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ class CreateCommandLineKotlinTest {
}
idea {
waitFor(ofMinutes(5)) { isDumbMode().not() }
step("Enable menu") {
runJs("""
const menuBar = component.getJMenuBar()
menuBar.setVisible(true)
""")
}
step("Create App file") {
with(projectViewTree) {
if (hasText("src").not()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ import com.intellij.remoterobot.utils.waitFor
import java.time.Duration

fun RemoteRobot.idea(function: IdeaFrame.() -> Unit) {
find<IdeaFrame>(timeout = Duration.ofSeconds(10)).apply(function)
find<IdeaFrame>(timeout = Duration.ofSeconds(10))
.apply {
step("Enable menu") {
runJs("""
const menuBar = component.getJMenuBar()
menuBar.setVisible(true)
""")
}
}
.apply(function)
}

@FixtureName("Idea frame")
Expand Down

0 comments on commit eb590ef

Please sign in to comment.