mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-9297] [ACA] [E2E] Update test IDs to match the XRAY test cases IDs (#4429)
* [ACS-9297] [E2E] Authentication and List Views updated * [ACS-9297] navigation tests IDs updated * [ACS-9297] updated pagination IDs * [ACS-9297] updated download actions ids * [ACS-9297] Updated upload-download actions IDs & changed the location of viewer-version-actions tests to match XRAY * [ACS-9297] updated copy-move-actions IDs * [ACS-9297] Updated delete-actions IDs * [ACS-9297] updated create-actions IDs * [ACS-9297] Updated library-actions IDs * [ACS_9297] Updated share IDs * [ACS-9297] Special Permissions Updated IDs * [ACS-9297] Updated viewer IDs * [ACS-9297] Updated comments IDs * [ACS-9297] Updated Search IDs * [ACS-9297] Updated the remaning IDs * [ACS-9297] one tests excluded one duplicated deleted * [ACS-9297] fixing rebase mistakes 1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"C261153": "https://alfresco.atlassian.net/browse/AAE-7517",
|
||||
"C589205": "https://hyland.atlassian.net/browse/ACS-9294"
|
||||
"XAT-4525": "https://alfresco.atlassian.net/browse/AAE-7517",
|
||||
"XAT-4526": "https://hyland.atlassian.net/browse/ACS-9294"
|
||||
}
|
||||
|
@@ -38,46 +38,6 @@ test.describe('Empty list views', () => {
|
||||
await Utils.tryLoginUser(loginPage, username, username, 'beforeEach failed');
|
||||
});
|
||||
|
||||
test('[C217099] empty My Libraries', async ({ myLibrariesPage }) => {
|
||||
await myLibrariesPage.navigate();
|
||||
expect(await myLibrariesPage.dataTable.isEmpty(), 'list is not empty').toBe(true);
|
||||
expect(await myLibrariesPage.dataTable.getEmptyStateTitle()).toContain(`You aren't a member of any File Libraries yet`);
|
||||
expect(await myLibrariesPage.dataTable.getEmptyStateSubtitle()).toContain('Join libraries to upload, view, and share files.');
|
||||
});
|
||||
|
||||
test('[C280134] [C280120] Empty Trash - pagination controls not displayed', async ({ trashPage }) => {
|
||||
await trashPage.navigate();
|
||||
expect(await trashPage.dataTable.isEmpty(), 'list is not empty').toBe(true);
|
||||
expect(await trashPage.dataTable.getEmptyStateTitle()).toContain('Trash is empty');
|
||||
expect(await trashPage.dataTable.getEmptyListText()).toContain('Items you delete are moved to the Trash.');
|
||||
expect(await trashPage.dataTable.getEmptyListText()).toContain('Empty Trash to permanently delete items.');
|
||||
expect(await trashPage.pagination.isRangePresent(), 'Range is present').toBe(false);
|
||||
expect(await trashPage.pagination.isMaxItemsPresent(), 'Max items is present').toBe(false);
|
||||
});
|
||||
|
||||
test('[C290123] [C290031] Empty Search results - pagination controls not displayed', async ({ personalFiles, searchPage }) => {
|
||||
await personalFiles.acaHeader.searchButton.click();
|
||||
await searchPage.clickSearchButton();
|
||||
await searchPage.searchOverlay.checkFilesAndFolders();
|
||||
await searchPage.searchOverlay.searchFor('InvalidText');
|
||||
await searchPage.reload({ waitUntil: 'domcontentloaded' });
|
||||
await searchPage.dataTable.spinnerWaitForReload();
|
||||
|
||||
expect(await personalFiles.pagination.isRangePresent(), 'Range is present').toBe(false);
|
||||
expect(await personalFiles.pagination.isMaxItemsPresent(), 'Max items is present').toBe(false);
|
||||
expect(await personalFiles.dataTable.isEmpty(), 'list is not empty').toBe(true);
|
||||
expect(await personalFiles.dataTable.emptySearchText.innerText()).toContain('Your search returned 0 results');
|
||||
});
|
||||
|
||||
test('[C290020] Empty Search results - Libraries', async ({ searchPage }) => {
|
||||
await searchPage.sidenav.openPanel(SIDEBAR_LABELS.MY_LIBRARIES);
|
||||
/* cspell:disable-next-line */
|
||||
await searchPage.searchWithin('qwertyuiop', 'files');
|
||||
|
||||
expect(await searchPage.dataTable.isEmpty()).toBeTruthy();
|
||||
expect(await searchPage.dataTable.emptySearchText.textContent()).toContain('Your search returned 0 results');
|
||||
});
|
||||
|
||||
async function openEmptyTab(searchPage: SearchPage, tab: string, emptyStateTitle: string, emptyStateSubtitle: string) {
|
||||
await searchPage.sidenav.openPanel(tab);
|
||||
await searchPage.dataTable.spinnerWaitForReload();
|
||||
@@ -99,7 +59,14 @@ test.describe('Empty list views', () => {
|
||||
expect(await personalFiles.pagination.isNextButtonPresent()).toBeFalsy();
|
||||
}
|
||||
|
||||
test(`[C289911] empty ${SIDEBAR_LABELS.FAVORITE_LIBRARIES}`, async ({ searchPage }) => {
|
||||
test('[XAT-4402] Empty My Libraries', async ({ myLibrariesPage }) => {
|
||||
await myLibrariesPage.navigate();
|
||||
expect(await myLibrariesPage.dataTable.isEmpty(), 'list is not empty').toBe(true);
|
||||
expect(await myLibrariesPage.dataTable.getEmptyStateTitle()).toContain(`You aren't a member of any File Libraries yet`);
|
||||
expect(await myLibrariesPage.dataTable.getEmptyStateSubtitle()).toContain('Join libraries to upload, view, and share files.');
|
||||
});
|
||||
|
||||
test(`[XAT-4403] Empty Favorite Libraries`, async ({ searchPage }) => {
|
||||
await openEmptyTab(
|
||||
searchPage,
|
||||
SIDEBAR_LABELS.FAVORITE_LIBRARIES,
|
||||
@@ -108,7 +75,7 @@ test.describe('Empty list views', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test(`[C213169] empty ${SIDEBAR_LABELS.RECENT_FILES}`, async ({ searchPage }) => {
|
||||
test(`[XAT-4405] Empty Recent Files`, async ({ searchPage }) => {
|
||||
await openEmptyTab(
|
||||
searchPage,
|
||||
SIDEBAR_LABELS.RECENT_FILES,
|
||||
@@ -117,31 +84,51 @@ test.describe('Empty list views', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test(`[C280133] empty ${SIDEBAR_LABELS.FAVORITES}`, async ({ searchPage }) => {
|
||||
test(`[XAT-4406] Empty Favorites`, async ({ searchPage }) => {
|
||||
await openEmptyTab(searchPage, SIDEBAR_LABELS.FAVORITES, 'No favorite files or folders', 'Favorite items that you want to easily find later.');
|
||||
});
|
||||
|
||||
test(`[C280111] ${SIDEBAR_LABELS.FAVORITES} - pagination controls not displayed`, async ({ searchPage, personalFiles }) => {
|
||||
test('[XAT-4581] Trash - Pagination control is not displayed on empty page load', async ({ trashPage }) => {
|
||||
await trashPage.navigate();
|
||||
expect(await trashPage.dataTable.isEmpty(), 'list is not empty').toBe(true);
|
||||
expect(await trashPage.dataTable.getEmptyStateTitle()).toContain('Trash is empty');
|
||||
expect(await trashPage.dataTable.getEmptyListText()).toContain('Items you delete are moved to the Trash.');
|
||||
expect(await trashPage.dataTable.getEmptyListText()).toContain('Empty Trash to permanently delete items.');
|
||||
expect(await trashPage.pagination.isRangePresent(), 'Range is present').toBe(false);
|
||||
expect(await trashPage.pagination.isMaxItemsPresent(), 'Max items is present').toBe(false);
|
||||
});
|
||||
|
||||
test('[XAT-4590] Search Page - Pagination control is not displayed on empty page load', async ({ personalFiles, searchPage }) => {
|
||||
await personalFiles.acaHeader.searchButton.click();
|
||||
await searchPage.clickSearchButton();
|
||||
await searchPage.searchOverlay.checkFilesAndFolders();
|
||||
await searchPage.searchOverlay.searchFor('InvalidText');
|
||||
await searchPage.reload({ waitUntil: 'domcontentloaded' });
|
||||
await searchPage.dataTable.spinnerWaitForReload();
|
||||
|
||||
expect(await personalFiles.pagination.isRangePresent(), 'Range is present').toBe(false);
|
||||
expect(await personalFiles.pagination.isMaxItemsPresent(), 'Max items is present').toBe(false);
|
||||
expect(await personalFiles.dataTable.isEmpty(), 'list is not empty').toBe(true);
|
||||
expect(await personalFiles.dataTable.emptySearchText.innerText()).toContain('Your search returned 0 results');
|
||||
});
|
||||
|
||||
test(`[XAT-4573] Favorites - Pagination control is not displayed on empty page load`, async ({ searchPage, personalFiles }) => {
|
||||
await checkPaginationForTabs(searchPage, SIDEBAR_LABELS.FAVORITES, personalFiles);
|
||||
});
|
||||
|
||||
test(`[C280084] ${SIDEBAR_LABELS.MY_LIBRARIES} - pagination controls not displayed`, async ({ searchPage, personalFiles }) => {
|
||||
test(`[XAT-4537] My Libraries - Pagination control is not displayed on empty page load`, async ({ searchPage, personalFiles }) => {
|
||||
await checkPaginationForTabs(searchPage, SIDEBAR_LABELS.MY_LIBRARIES, personalFiles);
|
||||
});
|
||||
|
||||
test(`[C291873] ${SIDEBAR_LABELS.FAVORITE_LIBRARIES} - pagination controls not displayed`, async ({ searchPage, personalFiles }) => {
|
||||
test(`[XAT-4546] Favorite Libraries - Pagination control is not displayed on empty page load`, async ({ searchPage, personalFiles }) => {
|
||||
await checkPaginationForTabs(searchPage, SIDEBAR_LABELS.FAVORITE_LIBRARIES, personalFiles);
|
||||
});
|
||||
|
||||
test(`[C280075] ${SIDEBAR_LABELS.PERSONAL_FILES} - pagination controls not displayed`, async ({ searchPage, personalFiles }) => {
|
||||
test(`[XAT-4528] Personal Files - Pagination control is not displayed on empty page load`, async ({ searchPage, personalFiles }) => {
|
||||
await checkPaginationForTabs(searchPage, SIDEBAR_LABELS.PERSONAL_FILES, personalFiles);
|
||||
});
|
||||
|
||||
test(`[C280102] ${SIDEBAR_LABELS.RECENT_FILES} - pagination controls not displayed`, async ({ searchPage, personalFiles }) => {
|
||||
test(`[XAT-4564] Recent Files - Pagination control is not displayed on empty page load`, async ({ searchPage, personalFiles }) => {
|
||||
await checkPaginationForTabs(searchPage, SIDEBAR_LABELS.RECENT_FILES, personalFiles);
|
||||
});
|
||||
|
||||
test(`[C280120] ${SIDEBAR_LABELS.TRASH} - pagination controls not displayed`, async ({ searchPage, personalFiles }) => {
|
||||
await checkPaginationForTabs(searchPage, SIDEBAR_LABELS.TRASH, personalFiles);
|
||||
});
|
||||
});
|
||||
|
@@ -90,21 +90,21 @@ test.describe('Favorites Files', () => {
|
||||
await favoritePage.navigate();
|
||||
});
|
||||
|
||||
test('[C280482] has the correct columns', async ({ favoritePage }) => {
|
||||
test('[XAT-4454] Favorites list has the correct columns', async ({ favoritePage }) => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by', 'Tags'];
|
||||
const actualColumns = Utils.trimArrayElements(await favoritePage.dataTable.getColumnHeaders());
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
test(`[C213228] deleted favorite file does not appear`, async ({ favoritePage }) => {
|
||||
test(`[XAT-4456] Deleted favorite files and folders do not appear in the list`, async ({ favoritePage }) => {
|
||||
expect(await favoritePage.dataTable.isItemPresent(fileName3), `${fileName3} is displayed`).not.toBe(true);
|
||||
});
|
||||
|
||||
test(`[C213229] file is displayed after it is restored from Trashcan`, async ({ favoritePage }) => {
|
||||
test(`[XAT-4457] Favorite files and folders restored from trashcan are displayed in the list`, async ({ favoritePage }) => {
|
||||
expect(await favoritePage.dataTable.isItemPresent(fileName4), `${fileName4} not displayed`).toBe(true);
|
||||
});
|
||||
|
||||
test('[C213231] Location column displays the parent folder of the files', async ({ favoritePage }) => {
|
||||
test('[XAT-4459] Location column displays the parent folder of the file as link', async ({ favoritePage }) => {
|
||||
expect(await favoritePage.dataTable.getItemLocationText(fileName2)).toEqual(parentFolder);
|
||||
expect(await favoritePage.dataTable.getItemLocationText(favFolderName)).toEqual('Personal Files');
|
||||
expect(await favoritePage.dataTable.getItemLocationTooltip(fileName2)).toEqual(`Personal Files/${parentFolder}`);
|
||||
@@ -114,25 +114,25 @@ test.describe('Favorites Files', () => {
|
||||
expect(await favoritePage.dataTable.getItemLocationTooltip(fileName1)).toContain(`${siteName}`);
|
||||
});
|
||||
|
||||
test('[C213650] Location column redirect - item in user Home', async ({ favoritePage }) => {
|
||||
test(`[XAT-4460] Clicking on the location link redirects to parent folder - item in User's Home`, async ({ favoritePage }) => {
|
||||
await favoritePage.dataTable.clickItemLocation(favFolderName);
|
||||
await favoritePage.dataTable.spinnerWaitForReload();
|
||||
expect(await favoritePage.breadcrumb.getAllItems()).toEqual(['Personal Files']);
|
||||
});
|
||||
|
||||
test('[C280484] Location column redirect - file in folder', async ({ favoritePage }) => {
|
||||
test('[XAT-4461] Clicking on the location link redirects to parent folder - item in a folder', async ({ favoritePage }) => {
|
||||
await favoritePage.dataTable.clickItemLocation(fileName2);
|
||||
await favoritePage.dataTable.spinnerWaitForReload();
|
||||
expect(await favoritePage.breadcrumb.getAllItems()).toEqual(['Personal Files', parentFolder]);
|
||||
});
|
||||
|
||||
test('[C280485] Location column redirect - file in site', async ({ favoritePage }) => {
|
||||
test('[XAT-4462] Clicking on the location link redirects to parent folder - item in a site', async ({ favoritePage }) => {
|
||||
await favoritePage.dataTable.clickItemLocation(fileName1);
|
||||
await favoritePage.dataTable.spinnerWaitForReload();
|
||||
expect(await favoritePage.breadcrumb.getAllItems()).toEqual(['My Libraries', siteName]);
|
||||
});
|
||||
|
||||
test('[C213230] Navigate into folder from Favorites', async ({ favoritePage }) => {
|
||||
test('[XAT-4458] Navigate into a folder from Favorites', async ({ favoritePage }) => {
|
||||
await favoritePage.dataTable.performClickFolderOrFileToOpen(favFolderName);
|
||||
await favoritePage.dataTable.spinnerWaitForReload();
|
||||
await expect(favoritePage.breadcrumb.currentItem).toHaveText(favFolderName);
|
||||
|
@@ -93,13 +93,13 @@ test.describe('File Libraries', () => {
|
||||
await myLibrariesPage.navigate();
|
||||
});
|
||||
|
||||
test('[C217095] has the correct columns', async ({ myLibrariesPage }) => {
|
||||
test('[XAT-4416] My Libraries list has the correct columns', async ({ myLibrariesPage }) => {
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility'];
|
||||
const actualColumns = Utils.trimArrayElements(await myLibrariesPage.dataTable.getColumnHeaders());
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
test('[C289905] Library visibility is correctly displayed', async ({ myLibrariesPage }) => {
|
||||
test('[XAT-4418] My Libraries - Library visibility is correctly displayed', async ({ myLibrariesPage }) => {
|
||||
const expectedSitesVisibility = {
|
||||
[userSitePrivate]: Site.VisibilityEnum.PRIVATE,
|
||||
[userSiteModerated]: Site.VisibilityEnum.MODERATED,
|
||||
@@ -111,7 +111,7 @@ test.describe('File Libraries', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('[C289903] User role is correctly displayed', async ({ myLibrariesPage }) => {
|
||||
test('[XAT-4419] My Libraries - User role is correctly displayed', async ({ myLibrariesPage }) => {
|
||||
const expectedSitesRoles = {
|
||||
[adminSite1]: Site.RoleEnum.SiteConsumer,
|
||||
[adminSite2]: Site.RoleEnum.SiteContributor,
|
||||
@@ -125,7 +125,7 @@ test.describe('File Libraries', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('[C217098] Site ID is displayed when two sites have the same name', async ({ myLibrariesPage }) => {
|
||||
test('[XAT-4420] My Libraries - Site ID is displayed when two sites have the same name', async ({ myLibrariesPage }) => {
|
||||
const expectedSites = [`${siteName} (${siteId1})`, `${siteName} (${siteId2})`];
|
||||
const actualSite1 = await myLibrariesPage.dataTable.getRowAllInnerTexts(siteId1);
|
||||
expect(actualSite1).toContain(expectedSites[0]);
|
||||
@@ -140,14 +140,14 @@ test.describe('File Libraries', () => {
|
||||
await favoritesLibrariesPage.navigate();
|
||||
});
|
||||
|
||||
test('[C289893] has the correct columns', async ({ favoritesLibrariesPage }) => {
|
||||
test('[XAT-4423] Favorite Libraries list has the correct columns', async ({ favoritesLibrariesPage }) => {
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility'];
|
||||
const actualColumns = Utils.trimArrayElements(await favoritesLibrariesPage.dataTable.getColumnHeaders());
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
test('[C289897] User can see only his favorite sites', async ({ favoritesLibrariesPage }) => {
|
||||
test('[XAT-4424] User can see only his favorite sites', async ({ favoritesLibrariesPage }) => {
|
||||
expect(await favoritesLibrariesPage.dataTable.isItemPresent(adminSite5), `${adminSite5} should not appear`).toBe(false);
|
||||
});
|
||||
});
|
||||
|
@@ -63,7 +63,7 @@ test.describe('Generic errors', () => {
|
||||
await trashcanApi.emptyTrashcan();
|
||||
});
|
||||
|
||||
test('[C217313] File / folder not found', async ({ personalFiles }) => {
|
||||
test('[XAT-4516] File / folder not found', async ({ personalFiles }) => {
|
||||
await actionUser.deleteNodeById(file1Id, false);
|
||||
await personalFiles.navigate({ remoteUrl: `#/personal-files/${file1Id}` });
|
||||
|
||||
@@ -73,7 +73,7 @@ test.describe('Generic errors', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('[C217314] Permission denied', async ({ personalFiles, loginPage }) => {
|
||||
test('[XAT-4517] Permission denied', async ({ personalFiles, loginPage }) => {
|
||||
await loginPage.logoutUser();
|
||||
await loginPage.loginUser(
|
||||
{ username: username2, password: username2 },
|
||||
|
@@ -93,7 +93,9 @@ test.describe('Special permissions', () => {
|
||||
await siteApiAdmin.deleteSites([sitePrivate]);
|
||||
});
|
||||
|
||||
test('[C213173] on Recent Files', async ({ recentFilesPage }) => {
|
||||
test('[XAT-4445] Recent Files - File recently edited that the user no longer has permission to view is not displayed in the list', async ({
|
||||
recentFilesPage
|
||||
}) => {
|
||||
await recentFilesPage.navigate();
|
||||
expect(await recentFilesPage.dataTable.getRowsCount(), 'Incorrect number of items').toBeGreaterThanOrEqual(1);
|
||||
await siteApiAdmin.deleteSiteMember(sitePrivate, username);
|
||||
@@ -101,7 +103,7 @@ test.describe('Special permissions', () => {
|
||||
expect(await recentFilesPage.dataTable.isItemPresent(fileName), 'Items are still displayed').toBe(false);
|
||||
});
|
||||
|
||||
test('[C213227] on Favorites', async ({ favoritePage }) => {
|
||||
test('[XAT-4455] Favorites - File is not displayed if the user no longer has permissions on it', async ({ favoritePage }) => {
|
||||
await favoritePage.navigate();
|
||||
expect(await favoritePage.dataTable.getRowsCount(), 'Incorrect number of items').toBe(1);
|
||||
await siteApiAdmin.deleteSiteMember(sitePrivate, username);
|
||||
@@ -109,7 +111,7 @@ test.describe('Special permissions', () => {
|
||||
expect(await favoritePage.dataTable.isEmpty(), 'Items are still displayed').toBe(true);
|
||||
});
|
||||
|
||||
test('[C213116] on Shared Files', async ({ sharedPage }) => {
|
||||
test(`[XAT-4433] Shared file that the user doesn't have permission to view is not displayed in the list`, async ({ sharedPage }) => {
|
||||
await sharedPage.navigate();
|
||||
await expect(sharedPage.dataTable.getRowByName(sitePrivate)).toBeVisible();
|
||||
await siteApiAdmin.deleteSiteMember(sitePrivate, username);
|
||||
@@ -173,24 +175,33 @@ test.describe('Special permissions', () => {
|
||||
await adminSiteApiActions.deleteSites([sitePrivate]);
|
||||
});
|
||||
|
||||
test('[C213178] on Recent Files', async ({ recentFilesPage }) => {
|
||||
test(`[XAT-4452] Recent Files - Location column is empty if the user doesn't have permissions on the file's parent folder`, async ({
|
||||
recentFilesPage
|
||||
}) => {
|
||||
await recentFilesPage.navigate();
|
||||
expect(await recentFilesPage.dataTable.isItemPresent(fileName)).toBe(true);
|
||||
expect(await recentFilesPage.dataTable.getItemLocationText(fileName)).toEqual('Unknown');
|
||||
});
|
||||
|
||||
test('[C213672] on Favorites', async ({ favoritePage }) => {
|
||||
test(`[XAT-4464] Favorites - Location column is empty if the user doesn't have permissions on the file's parent folder`, async ({
|
||||
favoritePage
|
||||
}) => {
|
||||
await favoritePage.navigate();
|
||||
expect(await favoritePage.dataTable.getRowsCount(), 'Incorrect number of items').toBe(1);
|
||||
expect(await favoritePage.dataTable.getItemLocationText(fileName)).toEqual('Unknown');
|
||||
});
|
||||
|
||||
test(`[C213668] on Shared Files`, async ({ sharedPage }) => {
|
||||
test(`[XAT-4441] Shared Files - Location column is empty if the user doesn't have permissions on the file's parent folder`, async ({
|
||||
sharedPage
|
||||
}) => {
|
||||
await sharedPage.navigate();
|
||||
expect(await sharedPage.dataTable.getItemLocationText(fileName)).toEqual('Unknown');
|
||||
});
|
||||
|
||||
test('[C306868] on Search results', async ({ personalFiles, searchPage }) => {
|
||||
test(`[XAT-5612] Search Page - Location column is empty if the user doesn't have permissions on the file's parent folder`, async ({
|
||||
personalFiles,
|
||||
searchPage
|
||||
}) => {
|
||||
await personalFiles.acaHeader.searchButton.click();
|
||||
await searchPage.clickSearchButton();
|
||||
await searchPage.searchOverlay.checkFilesAndFolders();
|
||||
|
@@ -53,18 +53,18 @@ test.describe('Personal Files', () => {
|
||||
await Utils.tryLoginUser(loginPage, username, username, 'beforeEach failed');
|
||||
});
|
||||
|
||||
test('[C217142] has the correct columns', async ({ personalFiles }) => {
|
||||
test('[XAT-4414] Personal Files list displays correct columns', async ({ personalFiles }) => {
|
||||
const expectedColumns = ['Name', 'Size', 'Modified', 'Modified by', 'Tags'];
|
||||
const actualColumns = Utils.trimArrayElements(await personalFiles.dataTable.getColumnHeaders());
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
test('[C217143] has default sorted column', async ({ personalFiles }) => {
|
||||
test('[XAT-4415] Personal Files - Default sort order', async ({ personalFiles }) => {
|
||||
await Utils.reloadPageIfDatatableEmpty(personalFiles);
|
||||
expect(await personalFiles.dataTable.getSortedColumnHeaderText()).toBe('Name');
|
||||
});
|
||||
|
||||
test('[C213245] redirects to Personal Files on clicking the link from sidebar', async ({ personalFiles }) => {
|
||||
test('[XAT-4411] User is redirected to Home page on selecting <Personal Files> from any folder location', async ({ personalFiles }) => {
|
||||
await personalFiles.dataTable.performClickFolderOrFileToOpen(userFolder);
|
||||
await personalFiles.sidenav.openPanel(SIDEBAR_LABELS.PERSONAL_FILES);
|
||||
await personalFiles.dataTable.spinnerWaitForReload();
|
||||
@@ -72,7 +72,7 @@ test.describe('Personal Files', () => {
|
||||
expect(await personalFiles.sidenav.isActive(SIDEBAR_LABELS.PERSONAL_FILES), 'My Libraries link not active').toBe(true);
|
||||
});
|
||||
|
||||
test('[C213246] page loads correctly after browser refresh', async ({ personalFiles }) => {
|
||||
test('[XAT-4412] Personal Files - List reloads on browser Refresh', async ({ personalFiles }) => {
|
||||
await personalFiles.reload();
|
||||
expect(personalFiles.page.url()).toContain(APP_ROUTES.PERSONAL_FILES);
|
||||
});
|
||||
|
@@ -82,35 +82,35 @@ test.describe('Recent Files', () => {
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodeActionsUser, trashcanApi, 'afterAll failed', siteActionsUser, [siteName]);
|
||||
});
|
||||
|
||||
test('[C213168] has the correct columns', async ({ recentFilesPage }) => {
|
||||
test('[XAT-4442] Recent Files list has the correct columns', async ({ recentFilesPage }) => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Tags'];
|
||||
const actualColumns = Utils.trimArrayElements(await recentFilesPage.dataTable.getColumnHeaders());
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
test('[C213171] default sorting column', async ({ recentFilesPage }) => {
|
||||
test('[XAT-4444] Default sort order is by Modified, showing most recently edited files first', async ({ recentFilesPage }) => {
|
||||
expect(await recentFilesPage.dataTable.getSortedColumnHeaderText()).toBe('Modified');
|
||||
expect(await recentFilesPage.dataTable.getSortingOrder()).toBe('desc');
|
||||
});
|
||||
|
||||
test(`[C213174] file not displayed if it's been deleted`, async ({ recentFilesPage }) => {
|
||||
test(`[XAT-4446] File recently edited that is deleted afterwards is not displayed in the list`, async ({ recentFilesPage }) => {
|
||||
expect(await recentFilesPage.dataTable.isItemPresent(fileName3), `${fileName3} is displayed`).not.toBe(true);
|
||||
});
|
||||
|
||||
test('[C213176] Location column redirect - file in user Home', async ({ recentFilesPage }) => {
|
||||
test(`[XAT-4448] Clicking on the location link redirects to parent folder - item in User's Home`, async ({ recentFilesPage }) => {
|
||||
await recentFilesPage.dataTable.clickItemLocation(fileName2);
|
||||
await recentFilesPage.dataTable.spinnerWaitForReload();
|
||||
expect(await recentFilesPage.breadcrumb.getAllItems()).toEqual(['Personal Files']);
|
||||
});
|
||||
|
||||
test('[C280486] Location column redirect - file in folder', async ({ recentFilesPage }) => {
|
||||
test('[XAT-4449] Clicking on the location link redirects to parent folder - item in a folder', async ({ recentFilesPage }) => {
|
||||
await recentFilesPage.dataTable.clickItemLocation(fileName1);
|
||||
await recentFilesPage.dataTable.spinnerWaitForReload();
|
||||
expect(await recentFilesPage.breadcrumb.getAllItems()).toEqual(['Personal Files', folderName]);
|
||||
});
|
||||
|
||||
test('[C280487] Location column redirect - file in site', async ({ recentFilesPage }) => {
|
||||
test('[XAT-4450] Clicking on the location link redirects to parent folder - item in a site', async ({ recentFilesPage }) => {
|
||||
await recentFilesPage.dataTable.clickItemLocation(fileSite);
|
||||
await recentFilesPage.dataTable.spinnerWaitForReload();
|
||||
expect(await recentFilesPage.breadcrumb.getAllItems()).toEqual(['My Libraries', siteName, folderSite]);
|
||||
|
@@ -92,38 +92,38 @@ test.describe('Shared Files', () => {
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed', siteActionsAdmin, [siteName]);
|
||||
});
|
||||
|
||||
test('[C213113] has the correct columns', async ({ sharedPage }) => {
|
||||
test('[XAT-4430] Shared files list view has the correct columns', async ({ sharedPage }) => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by', 'Shared by', 'Tags'];
|
||||
const actualColumns = Utils.trimArrayElements(await sharedPage.dataTable.getColumnHeaders());
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
test('[C213115] default sorting column', async ({ sharedPage }) => {
|
||||
test('[XAT-4432] Default sort order is by Modified date, showing most recently edited files first', async ({ sharedPage }) => {
|
||||
expect(await sharedPage.dataTable.getSortedColumnHeaderText()).toBe('Modified');
|
||||
expect(await sharedPage.dataTable.getSortingOrder()).toBe('desc');
|
||||
});
|
||||
|
||||
test(`[C213117] file not displayed if it's been deleted`, async ({ sharedPage }) => {
|
||||
test(`[XAT-4434] File that was quick shared and deleted afterwards is not displayed in the list`, async ({ sharedPage }) => {
|
||||
expect(await sharedPage.dataTable.isItemPresent(file2User), `${file2User} is displayed`).toBe(false);
|
||||
});
|
||||
|
||||
test('[C213118] unshared file is not displayed', async ({ sharedPage }) => {
|
||||
test('[XAT-4435] File that was quick shared and then unshared is not displayed in the list', async ({ sharedPage }) => {
|
||||
expect(await sharedPage.dataTable.isItemPresent(file3User), `${file3User} is displayed`).toBe(false);
|
||||
});
|
||||
|
||||
test('[C213666] Location column redirect - file in user Home', async ({ sharedPage }) => {
|
||||
test(`[XAT-4437] Clicking on the location link redirects to parent folder - item in User's Home`, async ({ sharedPage }) => {
|
||||
await sharedPage.dataTable.clickItemLocation(file4User);
|
||||
await sharedPage.dataTable.spinnerWaitForReload();
|
||||
expect(await sharedPage.breadcrumb.getAllItems()).toEqual(['Personal Files']);
|
||||
});
|
||||
|
||||
test('[C280490] Location column redirect - file in folder', async ({ sharedPage }) => {
|
||||
test('[XAT-4438] Clicking on the location link redirects to parent folder - item in a folder', async ({ sharedPage }) => {
|
||||
await sharedPage.dataTable.clickItemLocation(file1User);
|
||||
await sharedPage.dataTable.spinnerWaitForReload();
|
||||
expect(await sharedPage.breadcrumb.getAllItems()).toEqual(['Personal Files', folderUser]);
|
||||
});
|
||||
|
||||
test('[C280491] Location column redirect - file in site', async ({ sharedPage }) => {
|
||||
test('[XAT-4439] Clicking on the location link redirects to parent folder - item in a site', async ({ sharedPage }) => {
|
||||
await sharedPage.dataTable.clickItemLocation(fileAdmin);
|
||||
await sharedPage.dataTable.spinnerWaitForReload();
|
||||
expect(await sharedPage.breadcrumb.getAllItems()).toEqual(['My Libraries', siteName]);
|
||||
|
@@ -122,7 +122,7 @@ test.describe('Remember sorting', () => {
|
||||
await nodeActionUser2.deleteCurrentUserNodes();
|
||||
});
|
||||
|
||||
test('[C261136] Sort order is retained when navigating to another part of the app', async ({ personalFiles, favoritePage }) => {
|
||||
test('[XAT-4519] Sort order is retained when navigating to another part of the app', async ({ personalFiles, favoritePage }) => {
|
||||
await personalFiles.dataTable.sortBy('Name', 'desc');
|
||||
await personalFiles.dataTable.spinnerWaitForReload();
|
||||
|
||||
@@ -136,7 +136,7 @@ test.describe('Remember sorting', () => {
|
||||
expect(actualSortData).toEqual(expectedSortData);
|
||||
});
|
||||
|
||||
test('[C589205] 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.spinnerWaitForReload();
|
||||
const expectedSortData = await getSortState(personalFiles);
|
||||
@@ -149,7 +149,7 @@ test.describe('Remember sorting', () => {
|
||||
expect(actualSortData).toEqual(expectedSortData);
|
||||
});
|
||||
|
||||
test('[C261153] 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 }) => {
|
||||
await personalFiles.dataTable.sortBy('Size', 'desc');
|
||||
await personalFiles.dataTable.spinnerWaitForReload();
|
||||
const personalFilesSortData = await getSortState(personalFiles);
|
||||
@@ -166,7 +166,7 @@ test.describe('Remember sorting', () => {
|
||||
expect(personalFilesSortDataAfterFavSort).toEqual(personalFilesSortData);
|
||||
});
|
||||
|
||||
test('[C261147] Sort order is retained when user changes the page from pagination', async ({ personalFiles }) => {
|
||||
test('[XAT-4523] Sort order is retained when user changes the page from pagination', async ({ personalFiles }) => {
|
||||
const lastFileInArray = testData.user1.files.jpg.slice(-2).pop();
|
||||
const firstFileInArray = testData.user1.files.pdf[0];
|
||||
|
||||
@@ -201,7 +201,7 @@ test.describe('Remember sorting', () => {
|
||||
folderIds[folderToMove] = (await nodeActionUser1.createFolder(folderToMove)).entry.id;
|
||||
});
|
||||
|
||||
test('[C261138] Sort order is retained when creating a new folder', async ({ personalFiles }) => {
|
||||
test('[XAT-4521] Sort order is retained when creating a new folder', async ({ personalFiles }) => {
|
||||
await personalFiles.dataTable.sortBy('Name', 'desc');
|
||||
await personalFiles.dataTable.spinnerWaitForReload();
|
||||
|
||||
@@ -219,7 +219,7 @@ test.describe('Remember sorting', () => {
|
||||
expect(actualSortData).toEqual(expectedSortData);
|
||||
});
|
||||
|
||||
test('[C261139] Sort order is retained when moving a file', async ({ personalFiles }) => {
|
||||
test('[XAT-4522] Sort order is retained when moving a file', async ({ personalFiles }) => {
|
||||
const expectedSortData = {
|
||||
sortingColumn: await personalFiles.dataTable.getSortedColumnHeaderText(),
|
||||
sortingOrder: await personalFiles.dataTable.getSortingOrder(),
|
||||
@@ -234,7 +234,7 @@ test.describe('Remember sorting', () => {
|
||||
|
||||
test.describe('User Tests', () => {
|
||||
test.describe.configure({ mode: 'serial' });
|
||||
test('[C261137] Size sort order is retained when user logs out and logs back in', async ({ personalFiles, loginPage }) => {
|
||||
test('[XAT-4520] Size sort order is retained when user logs out and logs back in', async ({ personalFiles, loginPage }) => {
|
||||
await personalFiles.dataTable.sortBy('Name', 'desc');
|
||||
await personalFiles.dataTable.spinnerWaitForReload();
|
||||
const expectedSortData = await getSortState(personalFiles);
|
||||
@@ -249,7 +249,7 @@ test.describe('Remember sorting', () => {
|
||||
expect(actualSortData).toEqual(expectedSortData);
|
||||
});
|
||||
|
||||
test('[C261150] Sort order is not retained between different users', async ({ personalFiles, loginPage }) => {
|
||||
test('[XAT-4524] Sort order is retained per user', async ({ personalFiles, loginPage }) => {
|
||||
await personalFiles.dataTable.sortBy('Size', 'asc');
|
||||
await personalFiles.dataTable.spinnerWaitForReload();
|
||||
const expectedSortData = await getSortState(personalFiles);
|
||||
|
@@ -51,7 +51,7 @@ test.describe('Trash admin', () => {
|
||||
});
|
||||
|
||||
test.describe('as admin', () => {
|
||||
test('[C213217] has the correct columns', async ({ trashPage }) => {
|
||||
test('[XAT-4465] Trash list has correct columns - admin', async ({ trashPage }) => {
|
||||
await trashPage.navigate();
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Deleted', 'Deleted by'];
|
||||
const actualColumns = Utils.trimArrayElements(await trashPage.dataTable.getColumnHeaders());
|
||||
|
@@ -77,35 +77,35 @@ test.describe('Trash', () => {
|
||||
await trashPage.navigate();
|
||||
});
|
||||
|
||||
test('[C280494] has the correct columns', async ({ trashPage }) => {
|
||||
test('[XAT-4466] Trash list has correct columns - non admin', async ({ trashPage }) => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Deleted'];
|
||||
const actualColumns = Utils.trimArrayElements(await trashPage.dataTable.getColumnHeaders());
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
test('[C213219] default sorting column', async ({ trashPage }) => {
|
||||
test(`[XAT-4469] Default sort order is on 'Deleted' column with most recent first`, async ({ trashPage }) => {
|
||||
expect(await trashPage.dataTable.getSortedColumnHeaderText()).toBe('Deleted');
|
||||
expect(await trashPage.dataTable.getSortingOrder()).toBe('desc');
|
||||
});
|
||||
|
||||
test('[C280500] Location column is empty if parent folder no longer exists', async ({ trashPage }) => {
|
||||
test('[XAT-4475] Location column is empty if parent folder no longer exists', async ({ trashPage }) => {
|
||||
expect(await trashPage.dataTable.getItemLocationText(fileDeleted)).toEqual('');
|
||||
});
|
||||
|
||||
test('[C217144] Location column redirect - file in user Home', async ({ trashPage }) => {
|
||||
test(`[XAT-4470] Clicking on the location link redirects to parent folder - item in User's Home`, async ({ trashPage }) => {
|
||||
await trashPage.dataTable.clickItemLocation(fileUser);
|
||||
await trashPage.dataTable.spinnerWaitForReload();
|
||||
expect(await trashPage.breadcrumb.getAllItems()).toEqual(['Personal Files']);
|
||||
});
|
||||
|
||||
test('[C280496] Location column redirect - file in folder', async ({ trashPage }) => {
|
||||
test('[XAT-4471] Clicking on the location link redirects to parent folder - item in a folder', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.clickItemLocation(fileInFolder);
|
||||
await trashPage.dataTable.spinnerWaitForReload();
|
||||
expect(await trashPage.breadcrumb.getAllItems()).toEqual(['Personal Files', folderNotDeleted]);
|
||||
});
|
||||
|
||||
test('[C280497] Location column redirect - file in site', async ({ trashPage }) => {
|
||||
test('[XAT-4472] Clicking on the location link redirects to parent folder - item in a site', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.clickItemLocation(fileSite);
|
||||
await trashPage.dataTable.spinnerWaitForReload();
|
||||
expect(await trashPage.breadcrumb.getAllItems()).toEqual(['My Libraries', siteName]);
|
||||
|
Reference in New Issue
Block a user