mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3191] Not able to login only to BPM or ECM (#3478)
* disable random test * host setting component reset JS-API * reload api after user prefrence change * remove replicate reset * missing semicolon * deprecate provider property * remove trailing space * check new value before to set
This commit is contained in:
@@ -562,19 +562,6 @@ describe('LoginComponent', () => {
|
||||
expect(element.querySelector('#password').type).toEqual('password');
|
||||
});
|
||||
|
||||
it('should emit error event when the providers is undefined', async(() => {
|
||||
component.error.subscribe((error) => {
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(component.isError).toBe(true);
|
||||
expect(getLoginErrorElement()).toBeDefined();
|
||||
expect(getLoginErrorMessage()).toEqual('LOGIN.MESSAGES.LOGIN-ERROR-PROVIDERS');
|
||||
expect(error).toEqual(new LoginErrorEvent('LOGIN.MESSAGES.LOGIN-ERROR-PROVIDERS'));
|
||||
});
|
||||
|
||||
loginWithCredentials('fake-username', 'fake-password', null);
|
||||
}));
|
||||
|
||||
it('should emit only the username and not the password as part of the executeSubmit', async(() => {
|
||||
component.executeSubmit.subscribe((res) => {
|
||||
fixture.detectChanges();
|
||||
|
Reference in New Issue
Block a user