Package io.jmix.flowui.testassist
Class UiTestUtils
java.lang.Object
io.jmix.flowui.testassist.UiTestUtils
Class provides helper methods for testing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends View<?>>
TReturns instance of currently navigated view.
-
Method Details
-
getCurrentView
Returns instance of currently navigated view. Usage example:@Test public void navigateToUserListView() { viewNavigators.view(UserListView.class) .navigate(); UserListView view = UiTestUtils.getCurrentView(); }
- Type Parameters:
T
- type of navigated view- Returns:
- instance of currently navigated view
-