- Fix Jasmine test cases failing in framework. - More stability fixes and enhancements.

This commit is contained in:
Aditya Toshniwal
2021-08-17 12:19:10 +05:30
committed by Akshay Joshi
parent 351cb3e6ca
commit 9274df0f11
6 changed files with 18 additions and 12 deletions

View File

@@ -264,7 +264,7 @@ describe('SchemaView', ()=>{
ctrl.update();
expect(ctrl.find('DefaultButton[data-test="Reset"]').prop('disabled')).toBeTrue();
expect(ctrl.find('PrimaryButton[data-test="Save"]').prop('disabled')).toBeTrue();
expect(onDataChange).toHaveBeenCalledWith(false);
expect(onDataChange).toHaveBeenCalledWith(false, {});
done();
}, 0);
});
@@ -298,7 +298,7 @@ describe('SchemaView', ()=>{
expect(confirmSpy).not.toHaveBeenCalled();
expect(ctrl.find('DefaultButton[data-test="Reset"]').prop('disabled')).toBeTrue();
expect(ctrl.find('PrimaryButton[data-test="Save"]').prop('disabled')).toBeTrue();
expect(onDataChange).toHaveBeenCalledWith(false);
expect(onDataChange).toHaveBeenCalledWith(false, {});
done();
}, 0);
});
@@ -411,7 +411,7 @@ describe('SchemaView', ()=>{
ctrl.update();
expect(ctrl.find('DefaultButton[data-test="Reset"]').prop('disabled')).toBeTrue();
expect(ctrl.find('PrimaryButton[data-test="Save"]').prop('disabled')).toBeTrue();
expect(onDataChange).toHaveBeenCalledWith(false);
expect(onDataChange).toHaveBeenCalledWith(false, {});
done();
}, 0);
}, 0);