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:
@@ -82,7 +82,7 @@ test.describe('Copy actions', () => {
|
||||
}
|
||||
};
|
||||
|
||||
test('[C217135] Copy a file', async ({ personalFiles }) => {
|
||||
test('[XAT-4941] Copy a file', async ({ personalFiles }) => {
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFile);
|
||||
await copyContentInPersonalFiles(personalFiles, [sourceFile], destinationFolder);
|
||||
expect.soft(await personalFiles.dataTable.isItemPresent(sourceFile)).toBeTruthy();
|
||||
@@ -91,7 +91,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(sourceFile)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C291888] Copy a folder with content', async ({ personalFiles }) => {
|
||||
test('[XAT-4942] Copy a folder with content', async ({ personalFiles }) => {
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFolder);
|
||||
await copyContentInPersonalFiles(personalFiles, [sourceFolder], destinationFolder);
|
||||
expect.soft(await personalFiles.dataTable.isItemPresent(sourceFolder)).toBeTruthy();
|
||||
@@ -103,7 +103,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(sourceFileInsideFolder)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C291889] Copy multiple items', async ({ personalFiles }) => {
|
||||
test('[XAT-4943] Copy multiple items', async ({ personalFiles }) => {
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFolder);
|
||||
await copyContentInPersonalFiles(personalFiles, [sourceFolder, sourceFile], destinationFolder);
|
||||
expect.soft(await personalFiles.dataTable.isItemPresent(sourceFolder)).toBeTruthy();
|
||||
@@ -115,7 +115,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(sourceFile)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217137] Copy a file with a name that already exists on the destination', async ({ personalFiles }) => {
|
||||
test('[XAT-4944] Copy a file with a name that already exists on the destination', async ({ personalFiles }) => {
|
||||
await nodesApi.createFile(sourceFile, destinationFolderId);
|
||||
const expectedNameForCopiedFile = sourceFile.replace('.', '-1.');
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFile);
|
||||
@@ -127,7 +127,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(expectedNameForCopiedFile)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217138] Copy a folder with a name that already exists on the destination', async ({ personalFiles }) => {
|
||||
test('[XAT-4945] Copy a folder with a name that already exists on the destination', async ({ personalFiles }) => {
|
||||
const existingFolderId = (await nodesApi.createFolder(sourceFolder, destinationFolderId)).entry.id;
|
||||
await nodesApi.createFile(sourceFileInsideFolder, existingFolderId);
|
||||
const expectedNameForCopiedFile = sourceFileInsideFolder.replace('.', '-1.');
|
||||
@@ -143,7 +143,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(expectedNameForCopiedFile)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217139] Copy locked file', async ({ personalFiles }) => {
|
||||
test('[XAT-4947] Copy locked file', async ({ personalFiles }) => {
|
||||
const lockType = 'ALLOW_OWNER_CHANGES';
|
||||
await nodesApi.lockNodes([sourceFileId], lockType);
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFile);
|
||||
@@ -154,7 +154,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(sourceFile)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217140] Copy folder that contains locked file', async ({ personalFiles }) => {
|
||||
test('[XAT-4948] Copy folder that contains locked file', async ({ personalFiles }) => {
|
||||
const lockType = 'ALLOW_OWNER_CHANGES';
|
||||
await nodesApi.lockNodes([sourceFileInsideFolderId], lockType);
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFolder);
|
||||
@@ -168,7 +168,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(sourceFileInsideFolder)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217171] Undo copy of files', async ({ personalFiles }) => {
|
||||
test('[XAT-4949] Undo copy of files', async ({ personalFiles }) => {
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFile);
|
||||
await copyContentInPersonalFiles(personalFiles, [sourceFile], destinationFolder);
|
||||
await personalFiles.snackBar.actionButton.click();
|
||||
@@ -178,7 +178,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(sourceFile)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C217172] Undo copy of folders', async ({ personalFiles }) => {
|
||||
test('[XAT-4950] Undo copy of folders', async ({ personalFiles }) => {
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFolder);
|
||||
await copyContentInPersonalFiles(personalFiles, [sourceFolder], destinationFolder);
|
||||
await personalFiles.snackBar.actionButton.click();
|
||||
@@ -188,7 +188,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(sourceFolder)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C217173] Undo copy of a file when a file with same name already exists on the destination', async ({ personalFiles }) => {
|
||||
test('[XAT-4951] Undo copy of a file when a file with same name already exists on the destination', async ({ personalFiles }) => {
|
||||
await nodesApi.createFile(sourceFile, destinationFolderId);
|
||||
const expectedNameForCopiedFile = sourceFile.replace('.', '-1.');
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFile);
|
||||
@@ -201,7 +201,7 @@ test.describe('Copy actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(expectedNameForCopiedFile)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C217174] Undo copy of a folder when a folder with same name already exists on the destination', async ({ personalFiles }) => {
|
||||
test('[XAT-4952] Undo copy of a folder when a folder with same name already exists on the destination', async ({ personalFiles }) => {
|
||||
const existingFolderId = (await nodesApi.createFolder(sourceFolder, destinationFolderId)).entry.id;
|
||||
await nodesApi.createFile(sourceFileInsideFolder, existingFolderId);
|
||||
const expectedNameForCopiedFile = sourceFileInsideFolder.replace('.', '-1.');
|
||||
|
@@ -79,21 +79,21 @@ test.describe('Copy Move actions', () => {
|
||||
await myLibrariesPage.contentNodeSelector.selectDestination(destinationFolder);
|
||||
};
|
||||
|
||||
test('[C263876] Consumer user cannot select the folder as destination', async ({ loginPage, myLibrariesPage }) => {
|
||||
test('[XAT-4922] Consumer user cannot select the folder as destination', async ({ loginPage, myLibrariesPage }) => {
|
||||
await loginPage.loginUser({ username: consumerUser, password: consumerUser }, { withNavigation: true, waitForLoading: true });
|
||||
await myLibrariesPage.navigate();
|
||||
await copyContentInMyLibraries(myLibrariesPage);
|
||||
await expect(myLibrariesPage.contentNodeSelector.actionButton).toBeDisabled();
|
||||
});
|
||||
|
||||
test('[C263877] Contributor user can select the folder as destination', async ({ loginPage, myLibrariesPage }) => {
|
||||
test('[XAT-4923] Contributor user can select the folder as destination', async ({ loginPage, myLibrariesPage }) => {
|
||||
await loginPage.loginUser({ username: contributorUser, password: contributorUser }, { withNavigation: true, waitForLoading: true });
|
||||
await myLibrariesPage.navigate();
|
||||
await copyContentInMyLibraries(myLibrariesPage);
|
||||
await expect(myLibrariesPage.contentNodeSelector.actionButton).toBeEnabled();
|
||||
});
|
||||
|
||||
test('[C263878] Collaborator user can select the folder as destination', async ({ loginPage, myLibrariesPage }) => {
|
||||
test('[XAT-4924] Collaborator user can select the folder as destination', async ({ loginPage, myLibrariesPage }) => {
|
||||
await loginPage.loginUser({ username: collaboratorUser, password: collaboratorUser }, { withNavigation: true, waitForLoading: true });
|
||||
await myLibrariesPage.navigate();
|
||||
await copyContentInMyLibraries(myLibrariesPage);
|
||||
|
@@ -74,7 +74,7 @@ test.describe('Move actions', () => {
|
||||
await personalFilesPage.spinner.waitForReload();
|
||||
};
|
||||
|
||||
test('[C217316] Move a file', async ({ personalFiles }) => {
|
||||
test('[XAT-4996] Move a file', async ({ personalFiles }) => {
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFile);
|
||||
await moveContentInPersonalFiles(personalFiles, [sourceFile], destinationFolder);
|
||||
const msg = await personalFiles.snackBar.message.innerText();
|
||||
@@ -85,7 +85,7 @@ test.describe('Move actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(sourceFile)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C291958] Move multiple items', async ({ personalFiles }) => {
|
||||
test('[XAT-4998] Move multiple items', async ({ personalFiles }) => {
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFolder);
|
||||
await moveContentInPersonalFiles(personalFiles, [sourceFolder, sourceFile], destinationFolder);
|
||||
const msg = await personalFiles.snackBar.message.innerText();
|
||||
@@ -98,7 +98,7 @@ test.describe('Move actions', () => {
|
||||
expect.soft(await personalFiles.dataTable.isItemPresent(sourceFile)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217318] Move a file with a name that already exists on the destination', async ({ personalFiles }) => {
|
||||
test('[XAT-4999] Move a file with a name that already exists on the destination', async ({ personalFiles }) => {
|
||||
await nodesApi.createFile(sourceFile, destinationFolderId);
|
||||
const expectedNameForCopiedFile = sourceFile.replace('.', '-1.');
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFile);
|
||||
@@ -112,7 +112,7 @@ test.describe('Move actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(expectedNameForCopiedFile)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C217319] Move a folder with a name that already exists on the destination', async ({ personalFiles }) => {
|
||||
test('[XAT-5000] Move a folder with a name that already exists on the destination', async ({ personalFiles }) => {
|
||||
const existingFolderId = (await nodesApi.createFolder(sourceFolder, destinationFolderId)).entry.id;
|
||||
await nodesApi.createFile(sourceFileInsideFolder, existingFolderId);
|
||||
const expectedNameForCopiedFile = sourceFileInsideFolder.replace('.', '-1.');
|
||||
@@ -129,7 +129,7 @@ test.describe('Move actions', () => {
|
||||
expect(await personalFiles.dataTable.isItemPresent(expectedNameForCopiedFile)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C217320] Move locked file', async ({ personalFiles }) => {
|
||||
test('[XAT-4989] Move locked file', async ({ personalFiles }) => {
|
||||
const lockType = 'ALLOW_OWNER_CHANGES';
|
||||
await nodesApi.lockNodes([sourceFileId], lockType);
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFile);
|
||||
@@ -142,7 +142,7 @@ test.describe('Move actions', () => {
|
||||
expect.soft(await personalFiles.dataTable.isItemPresent(sourceFile)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C217324] Undo move files', async ({ personalFiles, trashPage }) => {
|
||||
test('[XAT-4992] Undo move files', async ({ personalFiles, trashPage }) => {
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFile);
|
||||
await moveContentInPersonalFiles(personalFiles, [sourceFile], destinationFolder);
|
||||
await personalFiles.snackBar.actionButton.click();
|
||||
@@ -154,7 +154,7 @@ test.describe('Move actions', () => {
|
||||
expect(await trashPage.dataTable.isItemPresent(sourceFile)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C217325] Undo move of folders', async ({ personalFiles, trashPage }) => {
|
||||
test('[XAT-4993] Undo move folder', async ({ personalFiles, trashPage }) => {
|
||||
await Utils.reloadPageIfRowNotVisible(personalFiles, sourceFolder);
|
||||
await moveContentInPersonalFiles(personalFiles, [sourceFolder], destinationFolder);
|
||||
await personalFiles.snackBar.actionButton.click();
|
||||
@@ -185,12 +185,12 @@ test.describe('Move actions', () => {
|
||||
|
||||
[
|
||||
{
|
||||
id: 'C217317',
|
||||
id: 'XAT-4997',
|
||||
testTitle: `Move a folder with content`,
|
||||
lockedFile: false
|
||||
},
|
||||
{
|
||||
id: 'C217321',
|
||||
id: 'XAT-4990',
|
||||
testTitle: 'Move folder that contains locked file',
|
||||
lockedFile: true
|
||||
}
|
||||
|
Reference in New Issue
Block a user