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:
@@ -59,8 +59,6 @@ describe('Attach File - Content service', () => {
|
||||
const uploadActions = new UploadActions(apiService);
|
||||
const usersActions = new UsersActions(apiService);
|
||||
|
||||
const { email, password } = browser.params.testConfig.admin;
|
||||
|
||||
const pdfFileOne = {
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_path
|
||||
@@ -78,10 +76,10 @@ describe('Attach File - Content service', () => {
|
||||
beforeAll(async () => {
|
||||
await LocalStorageUtil.setStorageItem('providers', 'ALL');
|
||||
|
||||
await apiService.login(email, password);
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiServiceExternal.login(email, password);
|
||||
await apiServiceExternal.loginWithProfile('admin');
|
||||
await usersActionsExternal.createUser(user);
|
||||
|
||||
await integrationService.addCSIntegration({
|
||||
@@ -104,7 +102,7 @@ describe('Attach File - Content service', () => {
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apiService.login(email, password);
|
||||
await apiService.loginWithProfile('admin');
|
||||
await apiService.getInstance().activiti.adminTenantsApi.deleteTenant(user.tenantId);
|
||||
});
|
||||
|
||||
|
@@ -487,7 +487,7 @@ describe('Start Process Component', () => {
|
||||
|
||||
const usersActions = new UsersActions(apiServiceAll);
|
||||
|
||||
await apiServiceAll.login(browser.params.testConfig.admin.email, browser.params.testConfig.admin.password);
|
||||
await apiServiceAll.login(browser.params.testConfig.users.admin.username, browser.params.testConfig.users.admin.password);
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
|
Reference in New Issue
Block a user