[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
This commit is contained in:
Adam Świderski 2025-02-10 12:03:50 +01:00 committed by GitHub
parent 2093a7acc1
commit b013818649
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1 @@
{ {}
"XAT-5304": "https://hyland.atlassian.net/browse/ACS-9187"
}

View File

@ -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 }) => { test('[XAT-5304] File is locked and downloaded when clicking Edit offline', async ({ personalFiles }) => {
await personalFiles.dataTable.selectItems(file1); await personalFiles.dataTable.selectItems(file1);
await personalFiles.acaHeader.clickMoreActions(); await personalFiles.acaHeader.clickMoreActions();
await personalFiles.matMenu.clickMenuItem('Edit Offline'); const [download] = await Promise.all([
const [download] = await Promise.all([personalFiles.page.waitForEvent('download', { timeout: 5000 })]); personalFiles.page.waitForEvent('download', { timeout: 5000 }),
personalFiles.matMenu.clickMenuItem('Edit Offline')
]);
expect(download.suggestedFilename()).toBe(file1); expect(download.suggestedFilename()).toBe(file1);
}); });