mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[ADF-000] fixed PS pipeline (#5516)
This commit is contained in:
parent
159f0f94f3
commit
d2ec8ccee7
@ -57,9 +57,19 @@ describe('Task Assignee', () => {
|
||||
beforeAll(async () => {
|
||||
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
||||
user = await users.createTenantAndUser(this.alfrescoJsApi);
|
||||
try {// creates user and group if not available
|
||||
await users.createApsUserWithName(this.alfrescoJsApi, user.tenantId, app.candidate.email, app.candidate.firstName, app.candidate.lastName);
|
||||
} catch (e) {}
|
||||
try {// creates group if not available
|
||||
await this.alfrescoJsApi.activiti.adminGroupsApi.createNewGroup({ 'name': app.candidateGroup, 'tenantId': user.tenantId, 'type': 1 });
|
||||
} catch (e) {}
|
||||
|
||||
await this.alfrescoJsApi.login(user.email, user.password);
|
||||
try {
|
||||
await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location, { renewIdmEntries: true });
|
||||
} catch (e) {
|
||||
console.error(`failed to publish the application`);
|
||||
}
|
||||
await loginPage.loginToProcessServicesUsingUserModel(user);
|
||||
});
|
||||
|
||||
@ -128,6 +138,10 @@ describe('Task Assignee', () => {
|
||||
await this.alfrescoJsApi.activiti.adminGroupsApi.addGroupMember(candidateGroup.id, candidate2.id);
|
||||
await this.alfrescoJsApi.activiti.adminGroupsApi.addGroupMember(candidateGroup.id, user.id);
|
||||
|
||||
try {// for creates user if not available
|
||||
await users.createApsUserWithName(this.alfrescoJsApi, user.tenantId, app.candidate.email, app.candidate.firstName, app.candidate.lastName);
|
||||
} catch (e) {}
|
||||
|
||||
await this.alfrescoJsApi.login(user.email, user.password);
|
||||
const appModel = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location, { renewIdmEntries: true });
|
||||
await apps.startProcess(this.alfrescoJsApi, appModel, app.processNames[1]);
|
||||
|
Binary file not shown.
@ -63,7 +63,8 @@ exports.Files = {
|
||||
},
|
||||
candidateGroup: "candidates",
|
||||
adminGroup: "admin",
|
||||
adminCapabilities: ['tenant-admin']
|
||||
adminCapabilities: ['tenant-admin'],
|
||||
candidate: { firstName: 'Candidate', lastName: 'User', email: 'candidateuser@actviti.com' }
|
||||
},
|
||||
|
||||
APP_WITH_USER_WIDGET: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user