use of io.jmix.petclinic.entity.veterinarian.Veterinarian in project jmix-sneferu by mariodavid.
the class CloseEditorInteractionTest method given_validForm_when_interactionIsPerformed_then_screenIsClosedAndSuccessIsReturned.
@Test
void given_validForm_when_interactionIsPerformed_then_screenIsClosedAndSuccessIsReturned(UiTestAPI uiTestAPI) {
// given:
StandardEditorTestAPI<Veterinarian, VeterinarianEdit> visitEdit = uiTestAPI.openStandardEditor(Veterinarian.class, VeterinarianEdit.class);
// and:
visitEdit.interact(enter(textInputField("firstNameField"), "Oak"));
// when:
final OperationResult operationResult = visitEdit.andThenGet(closeEditor());
// then:
assertThat(operationResult).isEqualTo(OperationResult.success());
}
Aggregations