[driver-tests]: renameApi to correspond kotline guidelines

GitOrigin-RevId: 7343d4b8dd5d7811e5773aef8589e34798b8c4b7
This commit is contained in:
Anastasia Katsman
2024-06-28 16:19:59 +02:00
committed by intellij-monorepo-bot
parent f87c9af24d
commit 58be39ad5d
2 changed files with 2 additions and 2 deletions

View File

@@ -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() }
}

View File

@@ -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() },