mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Maurizio Vitale
parent
b86a385c36
commit
44b18659a1
@@ -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';
|
||||
|
||||
|
Reference in New Issue
Block a user