mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
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:
@@ -50,7 +50,7 @@ describe('Form Field Component - Dropdown Widget', () => {
|
||||
const simpleApp = browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.name;
|
||||
|
||||
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]);
|
||||
|
||||
@@ -73,7 +73,7 @@ describe('Form Field Component - Dropdown Widget', () => {
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||
});
|
||||
|
||||
|
@@ -21,7 +21,6 @@ import {
|
||||
LoginPage,
|
||||
ProcessCloudWidgetPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import {
|
||||
peopleSingleModeFormMock,
|
||||
peopleMultipleModeFormMock,
|
||||
@@ -71,7 +70,7 @@ describe('People and Group of people Widgets', () => {
|
||||
};
|
||||
|
||||
beforeAll(async () => {
|
||||
await loginSSOPage.login(browser.params.testConfig.hrUser.email, browser.params.testConfig.hrUser.password);
|
||||
await loginSSOPage.loginWithProfile('hrUser');
|
||||
await navigationBarPage.navigateToFormCloudPage();
|
||||
});
|
||||
|
||||
|
@@ -56,7 +56,7 @@ describe('Task cloud visibility', async () => {
|
||||
let testUser, groupInfo;
|
||||
|
||||
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]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
@@ -66,7 +66,7 @@ describe('Task cloud visibility', async () => {
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||
});
|
||||
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
import { FormCloudComponentPage, LoginPage, ProcessCloudWidgetPage } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
|
||||
import { NavigationBarPage } from '../../core/pages/navigation-bar.page';
|
||||
import { tabFieldValueVisibilityJson, tabVarValueVisibilityJson, tabVarFieldVisibilityJson,
|
||||
@@ -52,7 +51,7 @@ describe('Visibility conditions on tabs - cloud', () => {
|
||||
};
|
||||
|
||||
beforeAll(async () => {
|
||||
await loginSSOPage.login(browser.params.testConfig.hrUser.email, browser.params.testConfig.hrUser.password);
|
||||
await loginSSOPage.loginWithProfile('hrUser');
|
||||
await navigationBarPage.navigateToFormCloudPage();
|
||||
});
|
||||
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
import { FormCloudComponentPage, LoginPage, ProcessCloudWidgetPage } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
|
||||
import { NavigationBarPage } from '../../core/pages/navigation-bar.page';
|
||||
import { checkboxVisibilityFormJson, multipleCheckboxVisibilityFormJson } from '../../resources/forms/checkbox-visibility-condition';
|
||||
@@ -81,7 +80,7 @@ describe('Visibility conditions - cloud', () => {
|
||||
};
|
||||
|
||||
beforeAll(async () => {
|
||||
await loginSSOPage.login(browser.params.testConfig.hrUser.email, browser.params.testConfig.hrUser.password);
|
||||
await loginSSOPage.loginWithProfile('hrUser');
|
||||
await navigationBarPage.navigateToFormCloudPage();
|
||||
await formCloudDemoPage.setConfigToEditor(checkboxVisibilityFormJson);
|
||||
});
|
||||
|
Reference in New Issue
Block a user