mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
KTNB-1264 Wait for project tree to load
GitOrigin-RevId: 1a9fc22a44b1db065786265f5265611c883e1797
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2042e1bed1
commit
edfac5abbd
+2
@@ -11,6 +11,7 @@ import com.intellij.driver.sdk.ui.Finder
|
||||
import com.intellij.driver.sdk.ui.UiText.Companion.asString
|
||||
import com.intellij.driver.sdk.ui.components.ComponentData
|
||||
import com.intellij.driver.sdk.ui.components.UiComponent
|
||||
import com.intellij.driver.sdk.ui.components.UiComponent.Companion.waitFound
|
||||
import com.intellij.driver.sdk.ui.components.common.EditorComponentImpl
|
||||
import com.intellij.driver.sdk.ui.components.common.IdeaFrameUI
|
||||
import com.intellij.driver.sdk.ui.components.common.JEditorUiComponent
|
||||
@@ -230,6 +231,7 @@ fun Driver.createNewNotebook(name: String = "New Notebook", type: NotebookType)
|
||||
leftToolWindowToolbar.projectButton.open() // making sure the project view is open and in focus for correct scrolling
|
||||
projectView {
|
||||
projectViewTree.run {
|
||||
waitFound(30.seconds)
|
||||
waitFor("wait for project tree to load", 30.seconds) {
|
||||
getAllTexts().isNotEmpty()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user