mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[AAE-1926] automated e2e tests - interacting with an attached file in an active & completed form (#5528)
This commit is contained in:
@@ -382,8 +382,7 @@ describe('Document List - Pagination', () => {
|
||||
await contentServicesPage.selectFolderWithCommandKey('subfolder6');
|
||||
await contentServicesPage.clickDownloadButton();
|
||||
|
||||
await expect(await FileBrowserUtil.isFileDownloaded('subfolder6.zip')
|
||||
).toBe(true, `subfolder6 not downloaded`);
|
||||
await FileBrowserUtil.isFileDownloaded('subfolder6.zip');
|
||||
|
||||
await contentServicesPage.deleteSubFolderUnderRoot(newFolderModel.name, folderTwoModel.name);
|
||||
});
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -107,9 +107,9 @@ describe('Version component actions', () => {
|
||||
|
||||
it('[C269081] Should be possible download all the version of a file', async () => {
|
||||
await versionManagePage.downloadFileVersion('1.0');
|
||||
await expect(await FileBrowserUtil.isFileDownloaded(txtFileModel.name)).toBe(true, `${txtFileModel.name} not downloaded`);
|
||||
await FileBrowserUtil.isFileDownloaded(txtFileModel.name);
|
||||
await versionManagePage.downloadFileVersion('1.1');
|
||||
await expect(await FileBrowserUtil.isFileDownloaded(fileModelVersionTwo.name)).toBe(true, `${fileModelVersionTwo.name} not downloaded`);
|
||||
await FileBrowserUtil.isFileDownloaded(fileModelVersionTwo.name);
|
||||
});
|
||||
|
||||
it('[C272819] Should be possible delete a version when click on delete version action', async () => {
|
||||
|
||||
Reference in New Issue
Block a user