mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Ability to chage the route (#5703)
This commit is contained in:
@@ -21,7 +21,6 @@ import { BrowserActions } from '../utils/browser-actions';
|
||||
|
||||
export class LoginSSOPage {
|
||||
|
||||
loginURL: string = browser.baseUrl + '/login';
|
||||
ssoButton = element(by.css(`[data-automation-id="login-button-sso"]`));
|
||||
usernameField = element(by.id('username'));
|
||||
passwordField = element(by.id('password'));
|
||||
@@ -40,7 +39,8 @@ export class LoginSSOPage {
|
||||
}
|
||||
|
||||
if (!currentUrl || currentUrl === '' || currentUrl === 'data:,') {
|
||||
await browser.get(this.loginURL);
|
||||
const loginURL: string = browser.baseUrl + browser.params.loginRoute ? browser.params.loginRoute : '';
|
||||
await browser.get(loginURL);
|
||||
}
|
||||
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.usernameField);
|
||||
|
@@ -116,6 +116,7 @@ exports.config = {
|
||||
|
||||
params: {
|
||||
testConfig: TestConfig,
|
||||
loginRoute: '/login',
|
||||
config: TestConfig.appConfig,
|
||||
groupSuffix: GROUP_SUFFIX,
|
||||
identityAdmin: TestConfig.identityAdmin,
|
||||
|
Reference in New Issue
Block a user