[ACS-9294] [E2E] XAT-4526 stable and included (#4482)

This commit is contained in:
Adam Świderski 2025-03-27 12:11:34 +01:00 committed by GitHub
parent f879958781
commit 436127edb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 8 deletions

View File

@ -1,4 +1,3 @@
{ {
"XAT-4525": "https://alfresco.atlassian.net/browse/AAE-7517", "XAT-4525": "https://alfresco.atlassian.net/browse/AAE-7517"
"XAT-4526": "https://hyland.atlassian.net/browse/ACS-9294"
} }

View File

@ -112,6 +112,7 @@ test.describe('Remember sorting', () => {
); );
await personalFiles.dataTable.sortBy('Name', 'asc'); await personalFiles.dataTable.sortBy('Name', 'asc');
await personalFiles.dataTable.spinnerWaitForReload(); await personalFiles.dataTable.spinnerWaitForReload();
await personalFiles.page.waitForTimeout(1000);
initialSortState = await getSortState(personalFiles); initialSortState = await getSortState(personalFiles);
}); });
@ -137,16 +138,21 @@ test.describe('Remember sorting', () => {
}); });
test('[XAT-4526] Size sort order is retained after viewing a file and closing the viewer', async ({ personalFiles }) => { test('[XAT-4526] Size sort order is retained after viewing a file and closing the viewer', async ({ personalFiles }) => {
await personalFiles.dataTable.sortBy('Size', 'desc'); await personalFiles.dataTable.performClickFolderOrFileToOpen(initialSortState.firstElement);
await personalFiles.dataTable.spinnerWaitForReload();
const expectedSortData = await getSortState(personalFiles);
await personalFiles.dataTable.performClickFolderOrFileToOpen(expectedSortData.firstElement);
await personalFiles.viewer.closeButtonLocator.click(); await personalFiles.viewer.closeButtonLocator.click();
await personalFiles.waitForPageLoad(); await personalFiles.waitForPageLoad();
const firstExpectedSortState = await getSortState(personalFiles);
expect(firstExpectedSortState).toEqual(initialSortState);
await personalFiles.dataTable.sortBy('Size', 'desc');
await personalFiles.dataTable.spinnerWaitForReload();
await personalFiles.page.waitForTimeout(1000);
const secondExpectedSortData = await getSortState(personalFiles);
await personalFiles.dataTable.performClickFolderOrFileToOpen(secondExpectedSortData.firstElement);
await personalFiles.viewer.closeButtonLocator.click();
await personalFiles.waitForPageLoad();
const actualSortData = await getSortState(personalFiles); const actualSortData = await getSortState(personalFiles);
expect(actualSortData).toEqual(expectedSortData); expect(actualSortData).toEqual(secondExpectedSortData);
}); });
test('[XAT-4525] Sort order should be remembered separately on each list view', async ({ personalFiles, favoritePage }) => { test('[XAT-4525] Sort order should be remembered separately on each list view', async ({ personalFiles, favoritePage }) => {