mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-test] extend evaluateLicense step on the FirstStart
This commit is contained in:
@@ -208,6 +208,14 @@ abstract class FirstStart(val ideType: IdeType) {
|
||||
return JDialogFixture(this, jDialog)
|
||||
}
|
||||
|
||||
fun Robot.dialog(timeoutSeconds: Long = DEFAULT_TIMEOUT, titleMatcher: (String) -> Boolean): JDialogFixture {
|
||||
val jDialog = waitUntilFound(this, null, JDialog::class.java, timeoutSeconds) { dialog ->
|
||||
titleMatcher(dialog.title)
|
||||
}
|
||||
return JDialogFixture(this, jDialog)
|
||||
}
|
||||
|
||||
|
||||
fun Robot.radioButton(text: String, timeoutSeconds: Long = DEFAULT_TIMEOUT): JRadioButtonFixture {
|
||||
val jRadioButton = waitUntilFound(this, null, JRadioButton::class.java, timeoutSeconds) { radioButton ->
|
||||
radioButton.text == text && radioButton.isShowing && radioButton.isEnabled
|
||||
|
||||
Reference in New Issue
Block a user