mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
KTNB: Try to stabilize tests
GitOrigin-RevId: 986ff6762e3e03217315683c79a35332356650ca
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b7f1189b79
commit
bdef2c2a73
@@ -17,6 +17,7 @@ import com.intellij.driver.sdk.ui.ui
|
||||
import com.intellij.driver.sdk.waitFor
|
||||
import org.intellij.lang.annotations.Language
|
||||
import kotlin.time.Duration
|
||||
import kotlin.time.Duration.Companion.milliseconds
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
/**
|
||||
@@ -103,10 +104,14 @@ class NotebookEditorUiComponent(private val data: ComponentData) : JEditorUiComp
|
||||
cell.click()
|
||||
}
|
||||
|
||||
fun typeInCell(cellSelector: CellSelector, text: String) {
|
||||
fun typeInCell(
|
||||
cellSelector: CellSelector,
|
||||
text: String,
|
||||
delayBetweenChars: Duration = 50.milliseconds,
|
||||
) {
|
||||
clickOnCell(cellSelector)
|
||||
keyboard {
|
||||
typeText(text)
|
||||
typeText(text, delayBetweenChars.inWholeMilliseconds)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user