[AAE-3209]Fix e2e about attach file from local (#5944)

* Fix attach file from local

* Exclude test

* no message

* Change hruser to new user

* Use hruser

* no message
This commit is contained in:
Cristina Jalba
2020-08-04 15:58:42 +03:00
committed by GitHub
parent 1dec2ba7c8
commit 732a34f69b
6 changed files with 31 additions and 14 deletions

View File

@@ -70,26 +70,26 @@ describe('Process Task - Attach content file', () => {
'location': browser.params.resources.Files.ADF_DOCUMENTS.PDF_B.file_path
};
beforeAll(async () => {
beforeAll(async (done) => {
await apiService.login(browser.params.testConfig.hrUser.email, browser.params.testConfig.hrUser.password);
const processDefinition = await processDefinitionService.getProcessDefinitionByName(processDefinitionName, simpleApp);
processInstance = await processInstancesService.createProcessInstance(processDefinition.entry.key, simpleApp, { name: 'upload process' });
await apiService.getInstance().login(browser.params.testConfig.hrUser.email, browser.params.testConfig.hrUser.password);
uploadedFolder = await uploadActions.createFolder(folderName, '-my-');
await uploadActions.uploadFile(pdfFileOne.location, pdfFileOne.name, uploadedFolder.entry.id);
await uploadActions.uploadFile(pdfFileTwo.location, pdfFileTwo.name, uploadedFolder.entry.id);
await loginSSOPage.login(browser.params.testConfig.hrUser.email, browser.params.testConfig.hrUser.password);
await navigationBarPage.navigateToProcessServicesCloudPage();
await appListCloudComponent.checkApsContainer();
done();
});
afterAll(async () => {
await uploadActions.deleteFileOrFolder(uploadedFolder.entry.id);
});
beforeEach(async () => {
await loginSSOPage.login(browser.params.testConfig.hrUser.email, browser.params.testConfig.hrUser.password);
await navigationBarPage.navigateToProcessServicesCloudPage();
await appListCloudComponent.checkApsContainer();
});
it('[C311290] Should be able to attach multiple files when widget allows multiple files to be attached from content', async () => {
await appListCloudComponent.checkAppIsDisplayed(simpleApp);
await appListCloudComponent.goToApp(simpleApp);