From b013818649fdb64af25a416b2abc02fcadb80370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=9Awiderski?= Date: Mon, 10 Feb 2025 12:03:50 +0100 Subject: [PATCH] [ACS-9187] [E2E] Fix XAT-5304 - file downloading is flaky (#4375) * [ACS-9187] [E2E] Github Actions test run * [ACS-9187] added artifacts * [ACS-9187] Download fix1 for XAT-5304 * [ACS-9187] removed github artifacts --- e2e/playwright/edit-actions/exclude.tests.json | 4 +--- e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts | 6 ++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/playwright/edit-actions/exclude.tests.json b/e2e/playwright/edit-actions/exclude.tests.json index 851e01bfa..0967ef424 100644 --- a/e2e/playwright/edit-actions/exclude.tests.json +++ b/e2e/playwright/edit-actions/exclude.tests.json @@ -1,3 +1 @@ -{ - "XAT-5304": "https://hyland.atlassian.net/browse/ACS-9187" -} +{} diff --git a/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts b/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts index 81e4e2a8b..8ff6d995f 100644 --- a/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts +++ b/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts @@ -73,8 +73,10 @@ test.describe('Edit offline - on Personal Files', () => { test('[XAT-5304] File is locked and downloaded when clicking Edit offline', async ({ personalFiles }) => { await personalFiles.dataTable.selectItems(file1); await personalFiles.acaHeader.clickMoreActions(); - await personalFiles.matMenu.clickMenuItem('Edit Offline'); - const [download] = await Promise.all([personalFiles.page.waitForEvent('download', { timeout: 5000 })]); + const [download] = await Promise.all([ + personalFiles.page.waitForEvent('download', { timeout: 5000 }), + personalFiles.matMenu.clickMenuItem('Edit Offline') + ]); expect(download.suggestedFilename()).toBe(file1); });