mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-534] Login dialog enhancements (#1844)
* version 1.4.0 social component * Login dialog enhancements - ability to toggle ‘Remember me’ (switched off by default now) - ability to toggle a footer with extra actions (switched off by default now) - readme updates * fix unit tests
This commit is contained in:
committed by
Eugenio Romano
parent
6342c34f51
commit
f33b841f9b
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import { AlfrescoAuthenticationService, CoreModule } from 'ng2-alfresco-core';
|
||||
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
import { AlfrescoLoginComponent } from './alfresco-login.component';
|
||||
@@ -24,7 +24,7 @@ import { AuthenticationMock } from './../assets/authentication.service.mock';
|
||||
import { TranslationMock } from './../assets/translation.service.mock';
|
||||
|
||||
describe('AlfrescoLogin', () => {
|
||||
let component: any;
|
||||
let component: AlfrescoLoginComponent;
|
||||
let fixture: ComponentFixture<AlfrescoLoginComponent>;
|
||||
let debug: DebugElement;
|
||||
let element: any;
|
||||
@@ -50,6 +50,8 @@ describe('AlfrescoLogin', () => {
|
||||
debug = fixture.debugElement;
|
||||
element = fixture.nativeElement;
|
||||
component = fixture.componentInstance;
|
||||
component.showRememberMe = true;
|
||||
component.showLoginActions = true;
|
||||
|
||||
usernameInput = element.querySelector('#username');
|
||||
passwordInput = element.querySelector('#password');
|
||||
@@ -67,8 +69,10 @@ describe('AlfrescoLogin', () => {
|
||||
expect(element.querySelector('#login-button')).toBeDefined();
|
||||
expect(element.querySelector('#login-button').innerText).toEqual('LOGIN.BUTTON.LOGIN');
|
||||
|
||||
/*
|
||||
expect(element.querySelector('#login-remember')).toBeDefined();
|
||||
expect(element.querySelector('#login-remember').innerText).toEqual('LOGIN.LABEL.REMEMBER');
|
||||
*/
|
||||
|
||||
expect(element.querySelector('#login-action-help')).toBeDefined();
|
||||
expect(element.querySelector('#login-action-help').innerText).toEqual('LOGIN.ACTION.HELP');
|
||||
|
Reference in New Issue
Block a user