mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[rdct-tests] GTW-8615 fix wrong modality state on opening the editor
GitOrigin-RevId: 82ed93e50722cda2aeafc09f98304485b1a906fe
This commit is contained in:
committed by
intellij-monorepo-bot
parent
96068ab7a2
commit
9443e180c5
@@ -68,17 +68,17 @@ fun Driver.openFile(relativePath: String, project: Project = singleProject()) =
|
||||
}
|
||||
else {
|
||||
val service = service(GuestNavigationService::class, project)
|
||||
service.navigateViaBackend(relativePath, 0)
|
||||
waitFor(errorMessage = "Fail to open file $relativePath", duration = 30.seconds,
|
||||
getter = {
|
||||
withContext(OnDispatcher.EDT) {
|
||||
withContext(OnDispatcher.EDT) {
|
||||
service.navigateViaBackend(relativePath, 0)
|
||||
waitFor(errorMessage = "Fail to open file $relativePath", duration = 30.seconds,
|
||||
getter = {
|
||||
service<FileEditorManager>(project).getSelectedTextEditor()?.getVirtualFile()
|
||||
}
|
||||
},
|
||||
checker = { virtualFile ->
|
||||
virtualFile != null &&
|
||||
virtualFile.getPath().contains(relativePath)
|
||||
})!!
|
||||
},
|
||||
checker = { virtualFile ->
|
||||
virtualFile != null &&
|
||||
virtualFile.getPath().contains(relativePath)
|
||||
})!!
|
||||
}
|
||||
}
|
||||
waitForCodeAnalysis(file = openedFile)
|
||||
}
|
||||
Reference in New Issue
Block a user