mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACS-9294] [E2E] XAT-4526 stable and included (#4482)
This commit is contained in:
parent
f879958781
commit
436127edb2
@ -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"
|
|
||||||
}
|
}
|
||||||
|
@ -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 }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user