Skip to content
Snippets Groups Projects
Commit edae12f4 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5981 separated test steps

parent 06967f71
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ import {
} from '../../../support/binary-file-util';
import {
countDownloadFiles,
deleteDownloadFolder,
dropCollections,
getDownloadFiles,
readFileFromDownloads,
......@@ -138,13 +139,17 @@ describe('Vorgang Anhänge', () => {
exist(readFileFromDownloads(buildDownloadFileName(pdfAttachmentName)));
});
it('should download attachments', () => {
attachmentList.downloadAttachments().then(() => {
it('should download attachment zip file', () => {
deleteDownloadFolder().then(() => {
attachmentList.downloadAttachments();
});
});
it('should unzip attachment file', () => {
getDownloadFiles().then((files) => {
unzipDownloadFile(files[0]).then(() => {
countDownloadFiles().then((count) => {
expect(count).to.eq(6);
});
expect(count).to.eq(3);
});
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment