use of io.jmix.petclinic.entity.visit.Visit in project jmix-sneferu by mariodavid.
the class GetLazyOpenedLookupScreenTest method given_screenIsAlreadyOpened_when_getLazyOpenedLookupScreen_then_lazyTestApiIsReturned.
@Test
void given_screenIsAlreadyOpened_when_getLazyOpenedLookupScreen_then_lazyTestApiIsReturned(Screens screens, UiTestAPI uiTestAPI) {
// given:
final VisitBrowse screen = screens.create(VisitBrowse.class);
// and:
screen.show();
// when:
final StandardLookupTestAPI<Visit, VisitBrowse> lazyOpenedScreen = uiTestAPI.getLazyOpenedLookupScreen(VisitBrowse.class);
// then:
assertThat(lazyOpenedScreen.screen()).isEqualTo(screen);
}
Aggregations