Multiple option env file (#4788)

* multi configuration file enabling

* improve ignore

* update i18n tool dep

* update webbpack bundle analyzer version

* fix ps cloud test wait setting

* fix script content

* remove use of testconfig for browser options

* convert protractor to ts

* download browser util fix
This commit is contained in:
Eugenio Romano
2019-05-30 11:15:15 +01:00
committed by GitHub
parent 9aafb80483
commit b91a942aa1
156 changed files with 1227 additions and 715 deletions

View File

@@ -59,8 +59,7 @@ export class SettingsPage {
goToSettingsPage() {
browser.waitForAngularEnabled(true);
browser.driver.get(this.settingsURL);
BrowserVisibility.waitUntilElementIsVisible(this.providerDropdown);
return this;
return BrowserVisibility.waitUntilElementIsVisible(this.providerDropdown);
}
setProvider(option, selected) {
@@ -139,7 +138,7 @@ export class SettingsPage {
}
async setProviderEcmSso(contentServiceURL, authHost, identityHost, silentLogin = true, implicitFlow = true, clientId?: string, logoutUr: string = '/logout') {
this.goToSettingsPage();
await this.goToSettingsPage();
this.setProvider(this.ecm.option, this.ecm.text);
BrowserVisibility.waitUntilElementIsNotOnPage(this.bpmText);
BrowserVisibility.waitUntilElementIsVisible(this.ecmText);
@@ -151,11 +150,11 @@ export class SettingsPage {
this.setImplicitFlow(implicitFlow);
this.setLogoutUrl(logoutUr);
this.clickApply();
browser.sleep(1000);
await browser.sleep(1000);
}
async setProviderBpmSso(processServiceURL, authHost, identityHost, silentLogin = true, implicitFlow = true) {
this.goToSettingsPage();
await this.goToSettingsPage();
this.setProvider(this.bpm.option, this.bpm.text);
BrowserVisibility.waitUntilElementIsVisible(this.bpmText);
BrowserVisibility.waitUntilElementIsNotOnPage(this.ecmText);
@@ -166,8 +165,8 @@ export class SettingsPage {
this.setIdentityHost(identityHost);
this.setSilentLogin(silentLogin);
this.setImplicitFlow(implicitFlow);
this.clickApply();
browser.sleep(1000);
await this.clickApply();
await browser.sleep(1000);
}
async setLogoutUrl(logoutUrl) {

View File

@@ -19,7 +19,7 @@ import * as path from 'path';
import * as fs from 'fs';
import { browser } from 'protractor';
const DEFAULT_ROOT_PATH = global['TestConfig'] ? global['TestConfig'].main.rootPath : __dirname;
const DEFAULT_ROOT_PATH = browser.params.testConfig ? browser.params.testConfig.main.rootPath : __dirname;
export class FileBrowserUtil {

View File

@@ -16,6 +16,19 @@
*/
export interface TestConfiguration {
appConfig: any;
identityAdmin: {
email: string,
password: string
};
identityUser: {
email: string,
password: string
};
main: {
timeout: number;
rootPath: string;