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,3 +1,3 @@
|
||||
{
|
||||
"C280502": "https://hyland.atlassian.net/browse/ACS-8888"
|
||||
"XAT-5017": "https://hyland.atlassian.net/browse/ACS-8888"
|
||||
}
|
||||
|
@@ -116,7 +116,7 @@ test.describe('Delete and undo delete', () => {
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed');
|
||||
});
|
||||
|
||||
test('[C217125] delete a file and check notification', async ({ personalFiles, trashPage }) => {
|
||||
test('[XAT-5016] Delete a file and check snackbar notification', async ({ personalFiles, trashPage }) => {
|
||||
let items = await personalFiles.dataTable.getRowsCount();
|
||||
await personalFiles.dataTable.selectItems(file1);
|
||||
await personalFiles.acaHeader.clickMoreActions();
|
||||
@@ -133,7 +133,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(file1)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C280502] delete multiple files and check notification', async ({ personalFiles, trashPage }) => {
|
||||
test('[XAT-5017] Delete multiple files and check snackbar notification', async ({ personalFiles, trashPage }) => {
|
||||
await personalFiles.page.reload({ waitUntil: 'load' });
|
||||
let items = await personalFiles.dataTable.getRowsCount();
|
||||
await personalFiles.dataTable.selectItems(file2, file3);
|
||||
@@ -150,7 +150,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(file3)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217126] delete a folder with content', async ({ personalFiles, trashPage }) => {
|
||||
test('[XAT-5018] Delete a folder with content', async ({ personalFiles, trashPage }) => {
|
||||
let items = await personalFiles.dataTable.getRowsCount();
|
||||
await personalFiles.dataTable.selectItems(folder1);
|
||||
await personalFiles.acaHeader.clickMoreActions();
|
||||
@@ -164,7 +164,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(file1InFolder)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C217127] delete a folder containing locked files', async ({ personalFiles, trashPage }) => {
|
||||
test(`[XAT-5019] Delete a folder containing files that can't be deleted (e.g. locked files)`, async ({ personalFiles, trashPage }) => {
|
||||
await personalFiles.dataTable.selectItems(folder2);
|
||||
await personalFiles.acaHeader.clickMoreActions();
|
||||
await personalFiles.matMenu.clickMenuItem('Delete');
|
||||
@@ -176,7 +176,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(fileLocked1)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C217129] notification on multiple items deletion - some items fail to delete', async ({ personalFiles }) => {
|
||||
test('[XAT-5020] Notification on unsuccessful multiple items deletion - some items fail to delete', async ({ personalFiles }) => {
|
||||
await personalFiles.dataTable.selectItems(file4, folder3);
|
||||
await personalFiles.acaHeader.clickMoreActions();
|
||||
await personalFiles.matMenu.clickMenuItem('Delete');
|
||||
@@ -185,7 +185,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(action).toContain('Undo');
|
||||
});
|
||||
|
||||
test('[C217130] notification on multiple items deletion - all items fail to delete', async ({ personalFiles }) => {
|
||||
test('[XAT-5021] Notification on unsuccessful multiple items deletion - all items fail to delete', async ({ personalFiles }) => {
|
||||
await personalFiles.dataTable.selectItems(folder4, folder5);
|
||||
await personalFiles.acaHeader.clickMoreActions();
|
||||
await personalFiles.matMenu.clickMenuItem('Delete');
|
||||
@@ -193,7 +193,7 @@ test.describe('Delete and undo delete', () => {
|
||||
await expect(personalFiles.snackBar.actionButton).toBeHidden();
|
||||
});
|
||||
|
||||
test('[C217132] undo delete of file', async ({ personalFiles }) => {
|
||||
test('[XAT-5022] Undo delete of a single file restores the file', async ({ personalFiles }) => {
|
||||
const items = await personalFiles.dataTable.getRowsCount();
|
||||
|
||||
await personalFiles.dataTable.selectItems(file5);
|
||||
@@ -206,7 +206,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await personalFiles.pagination.getRange()).toContain(`1-${items} of ${items}`);
|
||||
});
|
||||
|
||||
test('[C280503] undo delete of folder with content', async ({ personalFiles }) => {
|
||||
test('[XAT-5024] Undo restores the deleted folder and its content', async ({ personalFiles }) => {
|
||||
await personalFiles.dataTable.selectItems(folder6);
|
||||
await personalFiles.acaHeader.clickMoreActions();
|
||||
await personalFiles.matMenu.clickMenuItem('Delete');
|
||||
@@ -218,7 +218,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(file2InFolder)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C280504] undo delete of multiple files', async ({ personalFiles }) => {
|
||||
test('[XAT-5023] Undo delete of multiple files restores all of the files', async ({ personalFiles }) => {
|
||||
await personalFiles.dataTable.selectItems(file6, file7);
|
||||
await personalFiles.acaHeader.clickMoreActions();
|
||||
await personalFiles.matMenu.clickMenuItem('Delete');
|
||||
|
@@ -79,7 +79,7 @@ test.describe('Delete and undo delete', () => {
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed');
|
||||
});
|
||||
|
||||
test('[C217091] delete a file', async ({ trashPage }) => {
|
||||
test('[XAT-5103] Permanently Delete a file', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(file1);
|
||||
await trashPage.acaHeader.permanentlyDeleteButton.click();
|
||||
await trashPage.deleteDialog.deleteButton.click();
|
||||
@@ -88,7 +88,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await trashPage.dataTable.isItemPresent(file1)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C280416] delete a folder', async ({ trashPage }) => {
|
||||
test('[XAT-5104] Permanently delete a folder', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(folder1);
|
||||
await trashPage.acaHeader.permanentlyDeleteButton.click();
|
||||
await trashPage.deleteDialog.deleteButton.click();
|
||||
@@ -97,7 +97,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await trashPage.dataTable.isItemPresent(folder1)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C290103] delete a library', async ({ trashPage }) => {
|
||||
test('[XAT-5108] Permanently delete a library', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(site);
|
||||
await trashPage.acaHeader.permanentlyDeleteButton.click();
|
||||
await trashPage.deleteDialog.deleteButton.click();
|
||||
@@ -106,7 +106,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await trashPage.dataTable.isItemPresent(site)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C280417] delete multiple items', async ({ trashPage }) => {
|
||||
test('[XAT-5105] Permanently delete multiple items', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(file2, folder2);
|
||||
await trashPage.acaHeader.permanentlyDeleteButton.click();
|
||||
await trashPage.deleteDialog.deleteButton.click();
|
||||
@@ -116,7 +116,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await trashPage.dataTable.isItemPresent(folder2)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C269113] Confirmation dialog UI', async ({ trashPage }) => {
|
||||
test('[XAT-5106] Permanently delete - Confirmation dialog UI', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(file3);
|
||||
await trashPage.acaHeader.permanentlyDeleteButton.click();
|
||||
await trashPage.deleteDialog.waitForDialog();
|
||||
@@ -128,7 +128,7 @@ test.describe('Delete and undo delete', () => {
|
||||
expect(await trashPage.deleteDialog.isKeepEnabled()).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C269115] Keep action cancels the deletion', async ({ trashPage }) => {
|
||||
test('[XAT-5107] ""Keep"" action cancels the deletion', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(file3);
|
||||
await trashPage.acaHeader.permanentlyDeleteButton.click();
|
||||
await trashPage.deleteDialog.waitForDialog();
|
||||
|
@@ -91,25 +91,25 @@ test.describe('Restore from Trash', () => {
|
||||
expect(await trashPage.dataTable.isItemPresent(nodeName)).toBeFalsy();
|
||||
}
|
||||
|
||||
test('[C217177] restore file', async ({ trashPage, personalFiles }) => {
|
||||
test('[XAT-5109] Restore file', async ({ trashPage, personalFiles }) => {
|
||||
await restoreNode(trashPage, file1);
|
||||
await personalFiles.navigate();
|
||||
expect(await personalFiles.dataTable.isItemPresent(file1)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C280438] restore folder', async ({ trashPage, personalFiles }) => {
|
||||
test('[XAT-5110] Restore folder', async ({ trashPage, personalFiles }) => {
|
||||
await restoreNode(trashPage, folder1);
|
||||
await personalFiles.navigate();
|
||||
expect(await personalFiles.dataTable.isItemPresent(folder1)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C290104] restore library', async ({ trashPage, myLibrariesPage }) => {
|
||||
test('[XAT-5117] Restore library', async ({ trashPage, myLibrariesPage }) => {
|
||||
await restoreNode(trashPage, site1);
|
||||
await myLibrariesPage.navigate();
|
||||
expect(await myLibrariesPage.dataTable.isItemPresent(site1)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217182] restore multiple items', async ({ trashPage, personalFiles }) => {
|
||||
test('[XAT-5111] Restore multiple items', async ({ trashPage, personalFiles }) => {
|
||||
await trashPage.dataTable.selectItems(file2, folder2);
|
||||
await trashPage.acaHeader.restoreButton.click();
|
||||
await trashPage.snackBar.verifySnackBarActionText(`Restore successful`);
|
||||
@@ -122,7 +122,7 @@ test.describe('Restore from Trash', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(folder2)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217181] View from notification', async ({ trashPage, personalFiles }) => {
|
||||
test('[XAT-5112] Restore file - View from notification', async ({ trashPage, personalFiles }) => {
|
||||
await trashPage.dataTable.selectItems(file3);
|
||||
await trashPage.acaHeader.restoreButton.click();
|
||||
await trashPage.snackBar.clickSnackBarAction();
|
||||
@@ -162,13 +162,13 @@ test.describe('Restore from Trash', () => {
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed');
|
||||
});
|
||||
|
||||
test('[C217178] Restore a file when another file with same name exists on the restore location', async ({ trashPage }) => {
|
||||
test('[XAT-5113] Restore an item when another one with same name already exists on the restore location', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(file1);
|
||||
await trashPage.acaHeader.restoreButton.click();
|
||||
await trashPage.snackBar.verifySnackBarActionText(`Can't restore, ${file1} already exists`);
|
||||
});
|
||||
|
||||
test('[C217179] Restore a file when original location no longer exists', async ({ trashPage }) => {
|
||||
test('[XAT-5114] Restore a file when original location no longer exists', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(file2);
|
||||
await trashPage.acaHeader.restoreButton.click();
|
||||
await trashPage.snackBar.verifySnackBarActionText(`Can't restore ${file2}, the original location no longer exists`);
|
||||
@@ -222,13 +222,13 @@ test.describe('Restore from Trash', () => {
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed');
|
||||
});
|
||||
|
||||
test('[C217183] one failure', async ({ trashPage }) => {
|
||||
test('[XAT-5115] Notification on partial success - one failure', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(file1, file2);
|
||||
await trashPage.acaHeader.restoreButton.click();
|
||||
await trashPage.snackBar.verifySnackBarActionText(`Can't restore ${file1}, the original location no longer exists`);
|
||||
});
|
||||
|
||||
test('[C217184] multiple failures', async ({ trashPage }) => {
|
||||
test('[XAT-5116] Notification on partial success - multiple failures', async ({ trashPage }) => {
|
||||
await trashPage.dataTable.selectItems(file3, file4, file5);
|
||||
await trashPage.acaHeader.restoreButton.click();
|
||||
await trashPage.snackBar.verifySnackBarActionText('2 items not restored because of issues with the restore location');
|
||||
|
Reference in New Issue
Block a user