mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-1880] e2e document-list selection mode (#5518)
* [AAE-1880] e2e document-list selection mode, open file/folder * resolved comments: backtick, refactoring names, using dropdownPage, removing comments, wrapping the API * added a new try-catch for beforeAll, fixed the error message * changed the name of a method from clickDropdownWithOption to selectDropdownOption * changed the method name from clickDropdown... to selectDropdownOption * added the variable type for some methods, delete the let list and refactor accordingly
This commit is contained in:
committed by
GitHub
parent
2b1a321baf
commit
24c728a8f5
@@ -75,36 +75,40 @@ describe('Start Process Component', () => {
|
||||
describe('Provider: BPM', () => {
|
||||
|
||||
beforeAll(async () => {
|
||||
this.alfrescoJsApi = new AlfrescoApi({
|
||||
provider: 'BPM',
|
||||
hostBpm: browser.params.testConfig.adf_aps.host
|
||||
});
|
||||
try {
|
||||
this.alfrescoJsApi = new AlfrescoApi({
|
||||
provider: 'BPM',
|
||||
hostBpm: browser.params.testConfig.adf_aps.host
|
||||
});
|
||||
|
||||
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
||||
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
||||
|
||||
const newTenant = await this.alfrescoJsApi.activiti.adminTenantsApi.createTenant(new Tenant());
|
||||
const newTenant = await this.alfrescoJsApi.activiti.adminTenantsApi.createTenant(new Tenant());
|
||||
|
||||
tenantId = newTenant.id;
|
||||
procUserModel = new User({ tenantId: tenantId });
|
||||
secondProcUserModel = new User({ tenantId: tenantId });
|
||||
tenantId = newTenant.id;
|
||||
procUserModel = new User({tenantId: tenantId});
|
||||
secondProcUserModel = new User({tenantId: tenantId});
|
||||
|
||||
await this.alfrescoJsApi.activiti.adminUsersApi.createNewUser(procUserModel);
|
||||
await this.alfrescoJsApi.activiti.adminUsersApi.createNewUser(secondProcUserModel);
|
||||
await this.alfrescoJsApi.activiti.adminUsersApi.createNewUser(procUserModel);
|
||||
await this.alfrescoJsApi.activiti.adminUsersApi.createNewUser(secondProcUserModel);
|
||||
|
||||
this.alfrescoJsApiUserTwo = new AlfrescoApi({
|
||||
provider: 'BPM',
|
||||
hostBpm: browser.params.testConfig.adf_aps.host
|
||||
});
|
||||
this.alfrescoJsApiUserTwo = new AlfrescoApi({
|
||||
provider: 'BPM',
|
||||
hostBpm: browser.params.testConfig.adf_aps.host
|
||||
});
|
||||
|
||||
await this.alfrescoJsApiUserTwo.login(secondProcUserModel.email, secondProcUserModel.password);
|
||||
await this.alfrescoJsApiUserTwo.login(secondProcUserModel.email, secondProcUserModel.password);
|
||||
|
||||
const appCreated = await apps.importPublishDeployApp(this.alfrescoJsApiUserTwo, app.file_location);
|
||||
const appCreated = await apps.importPublishDeployApp(this.alfrescoJsApiUserTwo, app.file_location);
|
||||
|
||||
simpleAppCreated = await apps.importPublishDeployApp(this.alfrescoJsApiUserTwo, simpleApp.file_location);
|
||||
simpleAppCreated = await apps.importPublishDeployApp(this.alfrescoJsApiUserTwo, simpleApp.file_location);
|
||||
|
||||
dateFormAppCreated = await apps.importPublishDeployApp(this.alfrescoJsApiUserTwo, dateFormApp.file_location);
|
||||
dateFormAppCreated = await apps.importPublishDeployApp(this.alfrescoJsApiUserTwo, dateFormApp.file_location);
|
||||
|
||||
appId = appCreated.id;
|
||||
appId = appCreated.id;
|
||||
} catch (error) {
|
||||
throw new Error(`API call failed in beforeAll: ${error}`);
|
||||
}
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
@@ -535,8 +539,7 @@ describe('Start Process Component', () => {
|
||||
await contentServicesPage.checkContextActionIsVisible('Start Process');
|
||||
await contentServicesPage.pressContextMenuActionNamed('Start Process');
|
||||
await selectAppsDialog.checkSelectAppsDialogIsDisplayed();
|
||||
await selectAppsDialog.clickDropdownAppsButton();
|
||||
await selectAppsDialog.clickAppsOption();
|
||||
await selectAppsDialog.selectApp('start process app');
|
||||
await selectAppsDialog.clickContinueButton();
|
||||
await startProcessPage.enterProcessName('Test Process');
|
||||
|
||||
@@ -550,7 +553,6 @@ describe('Start Process Component', () => {
|
||||
await processFiltersPage.clickCompletedFilterButton();
|
||||
await processFiltersPage.selectFromProcessList('Test Process');
|
||||
await expect(await processDetailsPage.getEmptyMessage()).toBe('This list is empty');
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user