[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:
Daniil Stankevych
2025-11-19 18:06:55 +00:00
committed by intellij-monorepo-bot
parent 4b442cc6c9
commit 326a720f9f
@@ -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()
}
}