[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:
Adam Świderski
2025-03-19 10:20:24 +01:00
committed by GitHub
parent 8fffe98e01
commit 9d22bf0efe
65 changed files with 562 additions and 526 deletions

View File

@@ -48,7 +48,7 @@ test.describe('as admin', () => {
await nodesApi.deleteNodes([userFolderId], true);
});
test(`[C260970] Breadcrumb on navigation to a user's home`, async ({ personalFiles }) => {
test(`[XAT-4400] Breadcrumb on navigation to a user's home as admin`, async ({ personalFiles }) => {
await personalFiles.navigate({ remoteUrl: `#/personal-files/${userFolderId}` });
await personalFiles.breadcrumb.getItemByTitle(userFolder).waitFor({ state: 'attached' });
expect(await personalFiles.breadcrumb.getAllItems()).toEqual(['Personal Files', userFolder]);

View File

@@ -88,25 +88,25 @@ test.describe('viewer action file', () => {
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed', siteActions, [docLibId]);
});
test('[C260964] Personal Files breadcrumb main node', async ({ personalFiles }) => {
test('[XAT-4387] Personal Files breadcrumb main node', async ({ personalFiles }) => {
await personalFiles.navigate({ remoteUrl: `#/personal-files/` });
expect(await personalFiles.breadcrumb.items.count(), 'Breadcrumb has incorrect number of items').toEqual(1);
await expect(personalFiles.breadcrumb.currentItem).toHaveText('Personal Files');
});
test('[C260965] Personal Files breadcrumb for a folder hierarchy', async ({ personalFiles }) => {
test('[XAT-4388] Personal Files breadcrumb for a folder hierarchy', async ({ personalFiles }) => {
await personalFiles.navigate({ remoteUrl: `#/personal-files/${subFolder2Id}` });
const expectedBreadcrumb = ['Personal Files', parent, subFolder1, subFolder2];
expect(await personalFiles.breadcrumb.getAllItems()).toEqual(expectedBreadcrumb);
});
test('[C260967] File Libraries breadcrumb for a folder hierarchy', async ({ myLibrariesPage }) => {
test('[XAT-4391] My Libraries breadcrumb for a folder hierarchy', async ({ myLibrariesPage }) => {
await myLibrariesPage.navigate({ remoteUrl: `#/libraries/${subFolder2FromSiteId}` });
const expectedItems = ['My Libraries', siteName, parentFromSite, subFolder1FromSite, subFolder2FromSite];
expect(await myLibrariesPage.breadcrumb.getAllItems()).toEqual(expectedItems);
});
test('[C213235] User can navigate to any location by clicking on a step from the breadcrumb', async ({ personalFiles }) => {
test('[XAT-4396] User can navigate to any location by clicking on any step from the breadcrumb', async ({ personalFiles }) => {
await personalFiles.navigate({ remoteUrl: `#/personal-files/${subFolder2Id}` });
await personalFiles.breadcrumb.clickItem(subFolder1);
await personalFiles.dataTable.spinnerWaitForReload();
@@ -114,13 +114,13 @@ test.describe('viewer action file', () => {
expect(await personalFiles.breadcrumb.getAllItems()).toEqual(expectedBreadcrumb);
});
test('[C213237] Tooltip appears on hover on a step in breadcrumb', async ({ personalFiles }) => {
test('[XAT-4397] Tooltip appears on hover on a step in breadcrumb', async ({ personalFiles }) => {
await personalFiles.navigate({ remoteUrl: `#/personal-files/${subFolder2Id}` });
const item = personalFiles.breadcrumb.items.nth(2);
await expect(item).toHaveAttribute('title', subFolder1);
});
test('[C213238] Breadcrumb updates correctly when folder is renamed', async ({ personalFiles, nodesApiAction }) => {
test('[XAT-4398] Breadcrumb updates correctly when folder is renamed', async ({ personalFiles, nodesApiAction }) => {
await nodesApiAction.renameNode(folder1Id, folder1Renamed);
await personalFiles.navigate({ remoteUrl: `#/personal-files/${folder1Id}` });
await personalFiles.page.reload();
@@ -128,7 +128,7 @@ test.describe('viewer action file', () => {
await expect(personalFiles.breadcrumb.currentItem).toHaveText(folder1Renamed);
});
test('[C213240] Browser back navigates to previous location regardless of breadcrumb steps', async ({ personalFiles, trashPage }) => {
test('[XAT-4399] Browser back navigates to previous location regardless of breadcrumb steps', async ({ personalFiles, trashPage }) => {
await personalFiles.navigate({ remoteUrl: `#/personal-files/${subFolder2Id}` });
await trashPage.navigate();
await personalFiles.page.goBack();

View File

@@ -38,7 +38,7 @@ test.describe('Sidebar', () => {
await Utils.tryLoginUser(loginPage, username, username, 'beforeEach failed');
});
test('[C289901] navigate to My Libraries', async ({ personalFiles, myLibrariesPage }) => {
test('[XAT-5368] Navigate to My Libraries', async ({ personalFiles, myLibrariesPage }) => {
await personalFiles.navigate();
await personalFiles.sidenav.openPanel(SIDEBAR_LABELS.MY_LIBRARIES);
await personalFiles.dataTable.spinnerWaitForReload();
@@ -46,14 +46,14 @@ test.describe('Sidebar', () => {
expect(await myLibrariesPage.sidenav.isActive(SIDEBAR_LABELS.MY_LIBRARIES), 'My Libraries link not active').toBe(true);
});
test('[C277230] sidenav can be expanded when search results page is displayed', async ({ personalFiles }) => {
test('[XAT-5387] The sidenav can be expanded when search results page is displayed', async ({ personalFiles }) => {
await personalFiles.navigate({ remoteUrl: `#/search;q=test` });
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar expanded').toBe(false);
await personalFiles.sidenav.expandSideNav();
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar not expanded').toBe(true);
});
test('[C269100] sidebar state is preserved on page refresh', async ({ personalFiles }) => {
test('[XAT-5384] Sidenav state is preserved on page refresh', async ({ personalFiles }) => {
await personalFiles.navigate();
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar not expanded').toBe(true);
await personalFiles.reload();
@@ -66,7 +66,7 @@ test.describe('Sidebar', () => {
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar expanded').toBe(false);
});
test('[C269096] sidebar toggle', async ({ personalFiles }) => {
test('[XAT-5382] Sidenav can be collapsed and expanded', async ({ personalFiles }) => {
await personalFiles.navigate();
await personalFiles.sidenav.collapseSideNav();
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar expanded').toBe(false);
@@ -74,7 +74,10 @@ test.describe('Sidebar', () => {
expect(await personalFiles.sidenav.isSidenavExpanded(), 'Sidebar not expanded').toBe(true);
});
test('[C277224] sidenav returns to the default state when navigating away from the Search Results page', async ({ personalFiles, searchPage }) => {
test('[XAT-5386] The sidenav returns to the default state when navigating away from the search results page', async ({
personalFiles,
searchPage
}) => {
await personalFiles.navigate({ remoteUrl: `#/search;q=test` });
await searchPage.searchInput.searchCloseButton.click();
await searchPage.sidenav.expandedSidenav.waitFor({ state: 'attached' });

View File

@@ -63,13 +63,13 @@ test.describe('Single click on item name', () => {
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed');
});
test('[C284899] Hyperlink does not appear for items in the Trash', async ({ trashPage }) => {
test('[XAT-4894] Hyperlink does not appear for items in the Trash', async ({ trashPage }) => {
await trashPage.navigate();
await expect(trashPage.dataTable.getCellLinkByName(deletedFile1), 'Link on name is present').toBeHidden();
await expect(trashPage.dataTable.getCellLinkByName(deletedFolder1), 'Link on name is present').toBeHidden();
});
test('[C280034] Navigate inside the folder when clicking the hyperlink on Personal Files', async ({ personalFiles }) => {
test('[XAT-4897] Navigate inside the folder when clicking the hyperlink - on Personal Files', async ({ personalFiles }) => {
await personalFiles.navigate();
await personalFiles.dataTable.setPaginationTo50();
await personalFiles.dataTable.getCellLinkByName(folder1).click();
@@ -80,7 +80,7 @@ test.describe('Single click on item name', () => {
await expect(personalFiles.breadcrumb.currentItem).toHaveText(folder1);
});
test('[C284902] Navigate inside the library when clicking the hyperlink on File Libraries', async ({ myLibrariesPage }) => {
test('[XAT-4899] Navigate inside the library when clicking the hyperlink', async ({ myLibrariesPage }) => {
await myLibrariesPage.navigate();
await myLibrariesPage.dataTable.goThroughPagesLookingForRowWithName(siteName);
await myLibrariesPage.dataTable.getCellLinkByName(siteName).click();