mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[jupyter-RemDev-ui-tests] PY-82390 implement RemDev smoke IPyKernel tests
GitOrigin-RevId: 965039492a84e8636322bf604fc3ea49029f753a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
efcfd55f1f
commit
8b011b1268
+12
@@ -17,6 +17,7 @@ import com.intellij.driver.sdk.ui.components.common.IdeaFrameUI
|
||||
import com.intellij.driver.sdk.ui.components.common.JEditorUiComponent
|
||||
import com.intellij.driver.sdk.ui.components.common.editor
|
||||
import com.intellij.driver.sdk.ui.components.common.ideFrame
|
||||
import com.intellij.driver.sdk.ui.components.common.toolwindows.ToolWindowLeftToolbarUi
|
||||
import com.intellij.driver.sdk.ui.components.common.toolwindows.ToolWindowRightToolbarUi
|
||||
import com.intellij.driver.sdk.ui.components.common.toolwindows.projectView
|
||||
import com.intellij.driver.sdk.ui.components.elements.JLabelUiComponent
|
||||
@@ -402,6 +403,17 @@ fun Driver.closeRightToolWindow(stripeButtonName: String) {
|
||||
}
|
||||
}
|
||||
|
||||
fun Driver.openLeftToolWindow(stripeButtonName: String) {
|
||||
ideFrame {
|
||||
val leftToolbar = xx(ToolWindowLeftToolbarUi::class.java) { byClass("ToolWindowLeftToolbar") }.list().firstOrNull()
|
||||
?: return@ideFrame
|
||||
val varsButton = leftToolbar.stripeButton(stripeButtonName)
|
||||
if (varsButton.notPresent()) {
|
||||
varsButton.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes a test block within the context of the notebook editor UI component.
|
||||
* Note: only the NotebookEditorUiComponent and its successors are directly available in the context of this block.
|
||||
|
||||
Reference in New Issue
Block a user