[ACA-4479][ACA-4480] - Enable Save button when the form is invalid (#7131)

* [ACA-4479][ACA-4480] - Enable Save button when the form is invalid

* Add a unit test for form cloud

* Fix e2e
This commit is contained in:
arditdomi
2021-06-29 14:36:19 +01:00
committed by GitHub
parent 2e377731c9
commit 7f7b61bda1
5 changed files with 19 additions and 17 deletions

View File

@@ -904,7 +904,7 @@ describe('FormComponent', () => {
expect(formComponent.isOutcomeButtonEnabled(saveOutcome)).toBeFalsy();
});
it('should disable save outcome button when the form is invalid', () => {
it('should save outcome button be enabled when the form is invalid', () => {
const formModel = new FormModel();
formComponent.form = formModel;
@@ -926,7 +926,7 @@ describe('FormComponent', () => {
name: FormOutcomeModel.SAVE_ACTION
});
expect(formComponent.isOutcomeButtonEnabled(saveOutcome)).toBeFalsy();
expect(formComponent.isOutcomeButtonEnabled(saveOutcome)).toBeTruthy();
});
it('should disable start process outcome button when disableStartProcessButton is true', () => {