[ADF-4259] ClientId shouldn't be in the config file (#4930)

* add delete users missing in ps cloud e2e

* clientId use config param

* Update test.config.js
This commit is contained in:
Eugenio Romano
2019-07-13 16:16:40 +01:00
committed by GitHub
parent 098577f6e5
commit 5703c45ad8
6 changed files with 15 additions and 15 deletions

View File

@@ -29,7 +29,7 @@ describe('User Info - SSO', () => {
let identityService: IdentityService;
beforeAll(async (done) => {
const apiService = new ApiService('alfresco', browser.params.testConfig.adf.url, browser.params.testConfig.adf.hostSso, 'ECM');
const apiService = new ApiService(browser.params.config.oauth2.clientId, browser.params.testConfig.adf.url, browser.params.testConfig.adf.hostSso, 'ECM');
await apiService.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
identityService = new IdentityService(apiService);
@@ -38,7 +38,7 @@ describe('User Info - SSO', () => {
silentLogin = false;
settingsPage.setProviderEcmSso(browser.params.testConfig.adf.url,
browser.params.testConfig.adf.hostSso,
browser.params.testConfig.adf.hostIdentity, silentLogin, true, 'alfresco');
browser.params.testConfig.adf.hostIdentity, silentLogin, true, browser.params.config.oauth2.clientId);
loginSSOPage.clickOnSSOButton();