com.github.mvysny.kaributesting.v23.SideNavUtils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of karibu-testing-v23 Show documentation
Show all versions of karibu-testing-v23 Show documentation
Karibu Testing, support for browserless Vaadin testing in Kotlin
The newest version!
package com.github.mvysny.kaributesting.v23
import com.github.mvysny.kaributesting.v10._expectEditableByUser
import com.github.mvysny.kaributools.navigateTo
import com.vaadin.flow.component.sidenav.SideNavItem
import com.vaadin.flow.router.NavigationTrigger
/**
* Clicks this item, but only if it's enabled. The effect is that it navigates to the underlying
* view or [SideNavItem.getPath].
*/
public fun SideNavItem._click(trigger: NavigationTrigger = NavigationTrigger.CLIENT_SIDE) {
_expectEditableByUser()
navigateTo(path, trigger)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy