move users in the users object to make loginWithProgile general purpose (#6270)

* move users in the users object to make loginWithProgile general puropose

* add loginProfile in login page too

* fix

* fix

* fix

* fix

* fix

* fix

* more fix

* fix

* fix

* fix

* change

* fix script

* fix
This commit is contained in:
Eugenio Romano
2020-10-26 17:46:54 +00:00
committed by GitHub
parent c6a3da2a74
commit fca378a12b
51 changed files with 140 additions and 127 deletions

View File

@@ -16,7 +16,6 @@
*/
import { ApiService, IdentityService, AboutPage, LoginPage } from '@alfresco/adf-testing';
import { browser } from 'protractor';
import { NavigationBarPage } from '../core/pages/navigation-bar.page';
describe('About Process Services Cloud', () => {
@@ -31,7 +30,7 @@ describe('About Process Services Cloud', () => {
let testUser;
beforeAll(async () => {
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
await apiService.loginWithProfile('identityAdmin');
testUser = await identityService.createIdentityUserWithRole( [identityService.ROLES.ACTIVITI_USER, identityService.ROLES.ACTIVITI_DEVOPS]);
await loginSSOPage.login(testUser.email, testUser.password);
await apiService.login(testUser.email, testUser.password);
@@ -39,7 +38,7 @@ describe('About Process Services Cloud', () => {
});
afterAll(async () => {
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
await apiService.loginWithProfile('identityAdmin');
await identityService.deleteIdentityUser(testUser.idIdentityService);
});