mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 15:06:56 +07:00
[driver-tests]: renameApi to correspond kotline guidelines
GitOrigin-RevId: 7343d4b8dd5d7811e5773aef8589e34798b8c4b7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f87c9af24d
commit
58be39ad5d
@@ -74,5 +74,5 @@ class BookmarksPopupUiComponent(data: ComponentData) : UiComponent(data) {
|
||||
.map { it.toString().replace("TreePathToRow{path=[", "").dropLast(2) }
|
||||
|
||||
fun clickBookmark(textContains: String, doubleClick: Boolean = false) =
|
||||
bookmarksTree.waitSomeTextsContains(text = textContains).first().apply { if (doubleClick) doubleClick() else click() }
|
||||
bookmarksTree.waitAnyTextsContains(text = textContains).first().apply { if (doubleClick) doubleClick() else click() }
|
||||
}
|
||||
@@ -222,7 +222,7 @@ open class UiComponent(private val data: ComponentData) : Finder, WithKeyboard {
|
||||
/**
|
||||
* Waits for a non-empty list of UiText's with substring '$text'.
|
||||
*/
|
||||
fun waitSomeTextsContains(text: String, message: String? = null, timeout: Duration = DEFAULT_FIND_TIMEOUT): List<UiText> {
|
||||
fun waitAnyTextsContains(text: String, message: String? = null, timeout: Duration = DEFAULT_FIND_TIMEOUT): List<UiText> {
|
||||
return waitAny(message = message ?: "Finding at least some texts and contains '$text' in $this",
|
||||
timeout = timeout,
|
||||
getter = { getAllTexts() },
|
||||
|
||||
Reference in New Issue
Block a user