[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

@@ -73,7 +73,7 @@ describe('Task Audit', () => {
await taskPage.tasksListPage().checkContentIsDisplayed(taskTaskApp);
await taskPage.taskDetails().clickAuditLogButton();
await expect(await FileBrowserUtil.isFileDownloaded(auditLogFile)).toBe(true);
await FileBrowserUtil.isFileDownloaded(auditLogFile);
});
it('[C260389] Should Audit file be downloaded when clicking on Task Audit log icon on a standalone completed task', async () => {
@@ -88,7 +88,7 @@ describe('Task Audit', () => {
await expect(await taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + taskTaskApp + ' completed');
await taskPage.taskDetails().clickAuditLogButton();
await expect(await FileBrowserUtil.isFileDownloaded(auditLogFile)).toBe(true);
await FileBrowserUtil.isFileDownloaded(auditLogFile);
});
it('[C263944] Should Audit file be downloaded when clicking on Task Audit log icon on a custom app standalone completed task', async () => {
@@ -105,7 +105,7 @@ describe('Task Audit', () => {
await expect(await taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + taskCompleteCustomApp + ' completed');
await taskPage.taskDetails().clickAuditLogButton();
await expect(await FileBrowserUtil.isFileDownloaded(auditLogFile)).toBe(true);
await FileBrowserUtil.isFileDownloaded(auditLogFile);
});
it('[C263943] Should Audit file be downloaded when clicking on Task Audit log icon on a custom app standalone running task', async () => {
@@ -117,6 +117,6 @@ describe('Task Audit', () => {
await taskPage.tasksListPage().checkContentIsDisplayed(taskCustomApp);
await taskPage.taskDetails().clickAuditLogButton();
await expect(await FileBrowserUtil.isFileDownloaded(auditLogFile)).toBe(true);
await FileBrowserUtil.isFileDownloaded(auditLogFile);
});
});