[ADF-3941] Settings Page - SSO -> Identity Host is not visible when open the page for the first time (#4197)

* [ADF-3941] Show identityHost for both ECM and BPM

* [ADF-3941] Added test
This commit is contained in:
Deepak Paul
2019-01-23 20:42:45 +05:30
committed by Maurizio Vitale
parent b86a385c36
commit 44b18659a1
3 changed files with 23 additions and 11 deletions

View File

@@ -336,6 +336,17 @@ describe('HostSettingsComponent', () => {
bpmUrlInput.dispatchEvent(new Event('input'));
});
it('should have a required identityUrl and invalid form when the identityUrl is missing', (done) => {
component.form.statusChanges.subscribe((status: string) => {
expect(status).toEqual('INVALID');
expect(component.identityHost.hasError('required')).toBeTruthy();
done();
});
identityUrlInput.value = '';
identityUrlInput.dispatchEvent(new Event('input'));
});
it('should have an invalid form when the identity url inserted is wrong', (done) => {
const url = 'wrong';