mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[jupyter-ui-tests] PY-82390 add outputs preserve after reopening test to Mono and RemDev flaky package
GitOrigin-RevId: 10c67e0e5621787ada2272e0c33902ccf8862cea
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4b442cc6c9
commit
326a720f9f
+13
-1
@@ -98,6 +98,8 @@ class NotebookEditorUiComponent(private val data: ComponentData) : JEditorUiComp
|
||||
)
|
||||
val imagePanel: List<UiComponent>
|
||||
get() = xx("//div[@class='FullEditorWidthRenderer']//div[@class='ImagePanel']").list()
|
||||
val firstNotebookOutput: String
|
||||
get() = notebookCellOutputs.first().getAllTexts().asString()
|
||||
val lastNotebookOutput: String
|
||||
get() = notebookCellOutputs.last().getAllTexts().asString()
|
||||
val statusBar: UiComponent
|
||||
@@ -427,4 +429,14 @@ fun Driver.withNotebookEditor(testBody: NotebookEditorUiComponent.() -> Unit): I
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fun Driver.openFileWithProjectPanel(fileName: String) = ideFrame {
|
||||
leftToolWindowToolbar.projectButton.open()
|
||||
projectView {
|
||||
projectViewTree.run {
|
||||
waitOneText(fileName).doubleClick()
|
||||
}
|
||||
}
|
||||
waitFor("the editor is present", timeout = 30.seconds) {
|
||||
editor().present()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user