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

@@ -49,7 +49,7 @@ describe('Task list cloud - selection', () => {
const tasks = [];
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]);
@@ -67,7 +67,7 @@ describe('Task list cloud - selection', () => {
});
afterAll(async () => {
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
await apiService.loginWithProfile('identityAdmin');
await identityService.deleteIdentityUser(testUser.idIdentityService);
});