Class UiTestUtils

java.lang.Object
io.jmix.flowui.testassist.UiTestUtils

public final class UiTestUtils extends Object
Class provides helper methods for testing.
  • Method Details

    • getCurrentView

      public static <T extends View<?>> T 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