Skip to content

Commit

Permalink
Update UI tests for python. Open tool window by calling API
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPl292 committed Apr 26, 2024
1 parent ae75498 commit b86ec03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/ui-py-tests/src/test/kotlin/PyCharmTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ class PyCharmTest {
findAllText("Python Packages").isNotEmpty() &&
isSmartMode()
}
findText("Python Console").click()

// Open tool window by id.
// id taken from PythonConsoleToolWindowFactory.ID but it's not resolved in robot by some reason
// the last 'x' is just to return some serializable value
callJs<String>("com.intellij.openapi.wm.ToolWindowManager.getInstance(component.project).getToolWindow('Python Console').activate(null, true); 'x'", true)

Thread.sleep(10_000)

Expand Down

0 comments on commit b86ec03

Please sign in to comment.