[AAE-1926] automated e2e tests - interacting with an attached file in an active & completed form (#5528)

This commit is contained in:
Alexandra Abrudan
2020-03-02 14:52:41 +00:00
committed by GitHub
parent 7a2af38699
commit 133140d69b
11 changed files with 182 additions and 18 deletions

View File

@@ -128,7 +128,7 @@ describe('SSO in ADF using ACS and AIS, Download Directive, Viewer, DocumentList
it('[C291936] Should be able to download a file', async () => {
await contentListPage.selectRow(pngFileModel.name);
await contentServicesPage.clickDownloadButton();
await expect(await FileBrowserUtil.isFileDownloaded(pngFileModel.name)).toBe(true, `${pngFileModel.name} not downloaded`);
await FileBrowserUtil.isFileDownloaded(pngFileModel.name);
});
it('[C291938] Should be able to open a document', async () => {
@@ -154,7 +154,7 @@ describe('SSO in ADF using ACS and AIS, Download Directive, Viewer, DocumentList
await contentListPage.dataTablePage().checkRowIsChecked('Display name', pngFileModel.name);
await contentListPage.dataTablePage().checkRowIsChecked('Display name', firstPdfFileModel.name);
await contentServicesPage.clickDownloadButton();
await expect(await FileBrowserUtil.isFileDownloaded('archive.zip')).toBe(true, `archive.zip not downloaded`);
await FileBrowserUtil.isFileDownloaded('archive.zip');
});
it('[C291940] Should be able to view thumbnails when enabled', async () => {