use of de.diedavids.sneferu.components.testapi.ButtonTestAPI in project jmix-sneferu by mariodavid.
the class ComponentTestApiTest method given_componentIsPresentOnScreen_when_retrieveComponentViaTestAPI_then_componentTestApiIsReturned.
@Test
void given_componentIsPresentOnScreen_when_retrieveComponentViaTestAPI_then_componentTestApiIsReturned(UiTestAPI uiTestAPI) {
// given:
final StandardLookupTestAPI<Visit, VisitBrowse> openedScreen = uiTestAPI.openStandardLookup(Visit.class, VisitBrowse.class);
// and:
assertThat(openedScreen.screen().getWindow().getComponent("createBtn")).isNotNull();
// when:
final ButtonTestAPI createBtnTestAPI = openedScreen.component(button("createBtn"));
// then:
assertThat(createBtnTestAPI).isNotNull();
}
Aggregations