mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-2972] Add password visibility to login sso page (#5830)
* AAE-2972 Add password visibility to login sso page * AAE-2972 Remove unuseful checks * AAE-2972 Fix css selector
This commit is contained in:
committed by
GitHub
parent
19840b3def
commit
90133b3bef
@@ -29,6 +29,7 @@ export class LoginSSOPage {
|
||||
loginButton = element(by.css('input[type="submit"]'));
|
||||
header = element(by.tagName('adf-layout-header'));
|
||||
loginError = element(by.css(`div[data-automation-id="login-error"]`));
|
||||
visibilityLabel = element(by.id('v'));
|
||||
|
||||
txtUsernameBasicAuth = element(by.css('input[id="username"]'));
|
||||
txtPasswordBasicAuth = element(by.css('input[id="password"]'));
|
||||
@@ -77,6 +78,7 @@ export class LoginSSOPage {
|
||||
}
|
||||
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.usernameField);
|
||||
await this.displayPassword();
|
||||
await this.enterUsername(username);
|
||||
await this.enterPassword(password);
|
||||
await this.clickLoginButton();
|
||||
@@ -131,4 +133,10 @@ export class LoginSSOPage {
|
||||
return BrowserActions.getText(this.loginError);
|
||||
}
|
||||
|
||||
async displayPassword(): Promise<void> {
|
||||
await BrowserActions.click(this.visibilityLabel);
|
||||
const passwordInputTypeText = element(by.css(`input[name="password"][type="text"]`));
|
||||
await BrowserVisibility.waitUntilElementIsVisible(passwordInputTypeText);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user