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:
@@ -75,7 +75,7 @@ test.describe('Share a file', () => {
|
||||
await apiClientFactory.nodes.deleteNodes([file6Id]);
|
||||
});
|
||||
|
||||
test('[C286326] A non-logged user can download the shared file from the viewer', async ({ personalFiles, page }) => {
|
||||
test('[XAT-5148] A non-logged user can download the shared file from the viewer', async ({ personalFiles, page }) => {
|
||||
await page.goto(file6SharedLink);
|
||||
await personalFiles.viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -131,7 +131,7 @@ test.describe('Share a file', () => {
|
||||
await nodesApi.deleteNodes([file3Id, file4Id, file5Id, file6Id, file7Id, file8Id, file9Id]);
|
||||
});
|
||||
|
||||
test('[C286327] Share dialog default values', async ({ personalFiles }) => {
|
||||
test('[XAT-5149] Share dialog default values', async ({ personalFiles }) => {
|
||||
await personalFiles.dataTable.performActionFromExpandableMenu(file3, 'Share');
|
||||
const labels = await personalFiles.shareDialog.getLabels();
|
||||
expect(await personalFiles.shareDialog.getDialogTitle()).toEqual(`Share ${file3}`);
|
||||
@@ -145,7 +145,7 @@ test.describe('Share a file', () => {
|
||||
expect(await personalFiles.shareDialog.isCloseEnabled()).toBe(true);
|
||||
});
|
||||
|
||||
test('[C286329] Share a file', async ({ personalFiles, nodesApiAction }) => {
|
||||
test('[XAT-5151] Share a file', async ({ personalFiles, nodesApiAction }) => {
|
||||
await personalFiles.dataTable.performActionFromExpandableMenu(file3, 'Share');
|
||||
|
||||
const url = await personalFiles.shareDialog.getLinkUrl();
|
||||
@@ -155,7 +155,7 @@ test.describe('Share a file', () => {
|
||||
expect(url).toContain(sharedId);
|
||||
});
|
||||
|
||||
test('[C286330] Copy shared file URL', async ({ personalFiles, page }) => {
|
||||
test('[XAT-5152] Copy shared file URL', async ({ personalFiles, page }) => {
|
||||
await personalFiles.dataTable.performActionFromExpandableMenu(file4, 'Share');
|
||||
|
||||
const url = await personalFiles.shareDialog.getLinkUrl();
|
||||
@@ -176,7 +176,7 @@ test.describe('Share a file', () => {
|
||||
expect(download.suggestedFilename()).toBe(file4);
|
||||
});
|
||||
|
||||
test('[C286332] Share a file with expiration date', async ({ personalFiles, nodesApiAction, page }) => {
|
||||
test('[XAT-5153] Share a file with expiration date', async ({ personalFiles, nodesApiAction, page }) => {
|
||||
await personalFiles.dataTable.performActionFromExpandableMenu(file5, 'Share');
|
||||
|
||||
await personalFiles.shareDialog.expireToggle.click();
|
||||
@@ -194,7 +194,7 @@ test.describe('Share a file', () => {
|
||||
expect(Utils.formatDate(expireDateProperty)).toEqual(Utils.formatDate(inputDate));
|
||||
});
|
||||
|
||||
test('[C286337] Expire date is displayed correctly', async ({ personalFiles, nodesApiAction }) => {
|
||||
test('[XAT-5154] Expire date is displayed correctly', async ({ personalFiles, nodesApiAction }) => {
|
||||
await personalFiles.dataTable.performActionFromExpandableMenu(file6, 'Share');
|
||||
const expireProperty = await nodesApiAction.getNodeProperty(file6Id, 'qshare:expiryDate');
|
||||
|
||||
@@ -203,7 +203,7 @@ test.describe('Share a file', () => {
|
||||
expect(Utils.formatDate(await personalFiles.shareDialog.getExpireDate())).toEqual(Utils.formatDate(expiryDate));
|
||||
});
|
||||
|
||||
test('[C286333] Disable the share link expiration', async ({ personalFiles, nodesApiAction, page }) => {
|
||||
test('[XAT-5155] Disable the share link expiration', async ({ personalFiles, nodesApiAction, page }) => {
|
||||
await personalFiles.dataTable.performActionFromExpandableMenu(file7, 'Share');
|
||||
|
||||
expect(await personalFiles.shareDialog.isExpireToggleEnabled()).toBe(true);
|
||||
@@ -217,7 +217,7 @@ test.describe('Share a file', () => {
|
||||
expect(await nodesApiAction.getNodeProperty(file7Id, 'qshare:expiryDate')).toBe('');
|
||||
});
|
||||
|
||||
test('[C286335] Shared file URL is not changed when Share dialog is closed and opened again', async ({ personalFiles }) => {
|
||||
test('[XAT-5156] Shared file URL is not changed when Share dialog is closed and opened again', async ({ personalFiles }) => {
|
||||
await personalFiles.dataTable.performActionFromExpandableMenu(file8, 'Share');
|
||||
|
||||
const url1 = await personalFiles.shareDialog.getLinkUrl();
|
||||
@@ -230,7 +230,7 @@ test.describe('Share a file', () => {
|
||||
expect(url1).toEqual(url2);
|
||||
});
|
||||
|
||||
test('[C286345] Share a file from the context menu', async ({ personalFiles, nodesApiAction }) => {
|
||||
test('[XAT-5157] Share a file from the context menu', async ({ personalFiles, nodesApiAction }) => {
|
||||
await personalFiles.dataTable.performActionFromExpandableMenu(file9, 'Share');
|
||||
|
||||
const url = await personalFiles.shareDialog.getLinkUrl();
|
||||
|
@@ -113,7 +113,7 @@ test.describe('Unshare a file from Search Results', () => {
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed', sitesApi, [docLibId]);
|
||||
});
|
||||
|
||||
test('[C306995] Unshare dialog UI', async ({ personalFiles, searchPage }) => {
|
||||
test('[XAT-5197] Unshare dialog UI', async ({ personalFiles, searchPage }) => {
|
||||
await personalFiles.acaHeader.searchButton.click();
|
||||
await searchPage.clickSearchButton();
|
||||
await searchPage.searchOverlay.checkFilesAndFolders();
|
||||
@@ -134,7 +134,7 @@ test.describe('Unshare a file from Search Results', () => {
|
||||
await expect(personalFiles.confirmDialog.cancelButton).toBeEnabled();
|
||||
});
|
||||
|
||||
test('[C306996] Unshare a file', async ({ personalFiles, searchPage, nodesApiAction, page }) => {
|
||||
test('[XAT-5198] Unshare a file', async ({ personalFiles, searchPage, nodesApiAction, page }) => {
|
||||
await personalFiles.acaHeader.searchButton.click();
|
||||
await searchPage.clickSearchButton();
|
||||
await searchPage.searchOverlay.checkFilesAndFolders();
|
||||
@@ -153,7 +153,7 @@ test.describe('Unshare a file from Search Results', () => {
|
||||
expect(await nodesApiAction.isFileShared(file2Id)).toBe(false);
|
||||
});
|
||||
|
||||
test('[C306997] Cancel the Unshare action', async ({ personalFiles, searchPage }) => {
|
||||
test('[XAT-5199] Cancel the Unshare action', async ({ personalFiles, searchPage }) => {
|
||||
await personalFiles.acaHeader.searchButton.click();
|
||||
await searchPage.clickSearchButton();
|
||||
await searchPage.searchOverlay.checkFilesAndFolders();
|
||||
@@ -171,7 +171,7 @@ test.describe('Unshare a file from Search Results', () => {
|
||||
expect(urlBefore).toEqual(urlAfter);
|
||||
});
|
||||
|
||||
test('[C306999] Unshare a file from the context menu', async ({ personalFiles, searchPage, nodesApiAction, page }) => {
|
||||
test('[XAT-5200] Unshare a file from the context menu', async ({ personalFiles, searchPage, nodesApiAction, page }) => {
|
||||
await personalFiles.acaHeader.searchButton.click();
|
||||
await searchPage.clickSearchButton();
|
||||
await searchPage.searchOverlay.checkFilesAndFolders();
|
||||
@@ -190,7 +190,7 @@ test.describe('Unshare a file from Search Results', () => {
|
||||
expect(await nodesApiAction.isFileShared(file4Id)).toBe(false);
|
||||
});
|
||||
|
||||
test('[C306998] Consumer - on Search Results - file shared by other user', async ({ personalFiles, searchPage, nodesApiAction }) => {
|
||||
test('[XAT-5227] Unshare a file as consumer - file shared by other user - Search Page', async ({ personalFiles, searchPage, nodesApiAction }) => {
|
||||
await personalFiles.acaHeader.searchButton.click();
|
||||
await searchPage.clickSearchButton();
|
||||
await searchPage.searchOverlay.checkFilesAndFolders();
|
||||
@@ -205,7 +205,12 @@ test.describe('Unshare a file from Search Results', () => {
|
||||
expect(await nodesApiAction.isFileShared(fileSite2Id)).toBe(true);
|
||||
});
|
||||
|
||||
test('[C307000] Consumer - on Search Results - file shared by the user', async ({ personalFiles, searchPage, nodesApiAction, page }) => {
|
||||
test('[XAT-5228] Unshare a file as consumer - file shared by the user - Search Page', async ({
|
||||
personalFiles,
|
||||
searchPage,
|
||||
nodesApiAction,
|
||||
page
|
||||
}) => {
|
||||
await personalFiles.acaHeader.searchButton.click();
|
||||
await searchPage.clickSearchButton();
|
||||
await searchPage.searchOverlay.checkFilesAndFolders();
|
||||
|
Reference in New Issue
Block a user