mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
ADF-3735 automated (#4433)
This commit is contained in:
committed by
Eugenio Romano
parent
f1014706cf
commit
ced2e05d10
@@ -24,6 +24,7 @@ export class LoginSSOPage {
|
||||
passwordField = element(by.id('password'));
|
||||
loginButton = element(by.css('input[class="submit"]'));
|
||||
header = element(by.id('adf-header'));
|
||||
loginError = element(by.css(`div[data-automation-id="login-error"]`));
|
||||
|
||||
loginAPS(username, password) {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.usernameField);
|
||||
@@ -56,4 +57,13 @@ export class LoginSSOPage {
|
||||
return this.loginButton.click();
|
||||
}
|
||||
|
||||
checkLoginErrorIsDisplayed() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.loginError);
|
||||
}
|
||||
|
||||
getLoginErrorMessage() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.loginError);
|
||||
return this.loginError.getText();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user