com.github.mvysny.kaributesting.v10.pro.ConfirmDialog.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of karibu-testing-v10 Show documentation
Show all versions of karibu-testing-v10 Show documentation
Karibu Testing, support for browserless Vaadin testing in Kotlin
package com.github.mvysny.kaributesting.v10.pro
import com.github.mvysny.kaributesting.v10._fireEvent
import com.vaadin.flow.component.confirmdialog.ConfirmDialog
public fun ConfirmDialog._fireConfirm() {
_fireEvent(ConfirmDialog.ConfirmEvent(this, true))
close() // close the ConfirmDialog afterwards, to emulate the ConfirmDialog behavior: https://github.com/mvysny/karibu-testing/issues/34
}
public fun ConfirmDialog._fireCancel() {
_fireEvent(ConfirmDialog.CancelEvent(this, true))
close() // close the ConfirmDialog afterwards, to emulate the ConfirmDialog behavior: https://github.com/mvysny/karibu-testing/issues/34
}
public fun ConfirmDialog._fireReject() {
_fireEvent(ConfirmDialog.RejectEvent(this, true))
close() // close the ConfirmDialog afterwards, to emulate the ConfirmDialog behavior: https://github.com/mvysny/karibu-testing/issues/34
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy