[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

@@ -1,48 +1,48 @@
{
"C325043": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325044": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325045": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325047": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325031": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325032": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325033": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325030": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325026": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325042": "https://alfresco.atlassian.net/browse/ACS-6412",
"XAT-5229": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5231": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5232": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5233": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5238": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5239": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5240": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5244": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5245": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5248": "https://hyland.atlassian.net/browse/ACS-6412",
"C325147": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325148": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325149": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325150": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325153": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325151": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325139": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325143": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325144": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325145": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325146": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325157": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325154": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325158": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325161": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325142": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325141": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325140": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325156": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325155": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325162": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325163": "https://alfresco.atlassian.net/browse/ACS-6412",
"XAT-5252": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5253": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5254": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5255": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5257": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5258": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5256": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5260": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5261": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5262": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5263": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5266": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5267": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5270": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5271": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5259": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5265": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5264": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5268": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5269": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5272": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5273": "https://hyland.atlassian.net/browse/ACS-6412",
"C325050": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325048": "https://alfresco.atlassian.net/browse/ACS-6412",
"C216339": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325020": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325034": "https://alfresco.atlassian.net/browse/ACS-6412",
"C290146": "https://alfresco.atlassian.net/browse/ACS-6412",
"C290142": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325028": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325027": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325023": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325024": "https://alfresco.atlassian.net/browse/ACS-6412",
"C325025": "https://alfresco.atlassian.net/browse/ACS-6412"
"XAT-5235": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5236": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5234": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5237": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5241": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5243": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5242": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5246": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5247": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5249": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5250": "https://hyland.atlassian.net/browse/ACS-6412",
"XAT-5251": "https://hyland.atlassian.net/browse/ACS-6412"
}

View File

@@ -138,7 +138,7 @@ test.describe('Create file from template', () => {
});
test.describe('Select Template dialog', () => {
test('[C325043] Select template - dialog UI - with existing templates', async () => {
test('[XAT-5229] Select template - dialog UI - when no templates exist in the repo', async () => {
await expect.soft(selectFileTemplateDialog.getDialogTitle(selectDialogTitle)).toBeVisible();
await expect.soft(selectFileTemplateDialog.getBreadcrumb(dialogBreadcrumb)).toBeVisible();
await expect.soft(dataTable.getRowByName(templatesFolder1)).not.toBeEmpty();
@@ -149,13 +149,13 @@ test.describe('Create file from template', () => {
await expect(selectFileTemplateDialog.actionButton).toBeDisabled();
});
test(`[C325044] Templates don't appear if user doesn't have permissions to see them`, async () => {
test(`[XAT-5231] Templates don't appear if user doesn't have permissions to see them`, async () => {
await expect(selectFileTemplateDialog.getDialogTitle(selectDialogTitle)).toBeVisible();
await expect(dataTable.getRowByName(restrictedTemplateFolder)).toBeHidden();
await expect(dataTable.getRowByName(templateInRestrictedFolder)).toBeHidden();
});
test(`[C325045] Navigate through the templates list with folder hierarchy`, async () => {
test(`[XAT-5232] Navigate through the templates list with folder hierarchy`, async () => {
await expect(selectFileTemplateDialog.getBreadcrumb(dialogBreadcrumb)).toBeVisible();
await expect(dataTable.getRowByName(templatesFolder1)).toBeVisible();
await expect(dataTable.getRowByName(templatesFolder2)).toBeVisible();
@@ -175,7 +175,7 @@ test.describe('Create file from template', () => {
await expect(selectFileTemplateDialog.getOptionLocator(dialogBreadcrumb)).toBeVisible();
});
test(`[C325047] Templates list doesn't allow multiple selection`, async () => {
test(`[XAT-5233] Templates list doesn't allow multiple selection`, async () => {
await expect(dataTable.getSelectedRow).toHaveCount(0);
await dataTable.getRowByName(template1InRoot).click({ modifiers: [commandKey] });
@@ -188,20 +188,20 @@ test.describe('Create file from template', () => {
await expect(dataTable.getSelectedRow).toContainText(template2InRoot);
});
test('[C325050] Links to files are not displayed', async () => {
test('[XAT-5235] Links to files are not displayed', async () => {
await expect(dataTable.getRowByName(template1InRoot)).toBeVisible();
await expect(dataTable.getRowByName(template2InRoot)).toBeVisible();
await expect(dataTable.getRowByName(fileLink)).toBeHidden();
});
test('[C325048] Cancel the Select template dialog', async () => {
test('[XAT-5236] Cancel the Select template dialog', async () => {
await expect(selectFileTemplateDialog.getDialogTitle(selectDialogTitle)).toBeVisible();
await selectFileTemplateDialog.cancelButton.click();
await expect(selectFileTemplateDialog.getDialogTitle(selectDialogTitle)).toBeHidden();
});
test('[C216339] Next button is disabled when selecting a folder', async () => {
test('[XAT-5234] Select Template - Next button is disabled when selecting a folder', async () => {
await expect(dataTable.getRowByName(templatesFolder1)).toBeVisible();
await expect(selectFileTemplateDialog.actionButton).toBeDisabled();
@@ -225,7 +225,7 @@ test.describe('Create file from template', () => {
}
});
test('[C325020] Create file from template - dialog UI', async () => {
test('[XAT-5237] Create file from template - dialog UI', async () => {
await expect.soft(createFileFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeVisible();
await expect.soft(createFileFromTemplateDialog.getDialogLabel(nameLabel)).toBeVisible();
await expect.soft(createFileFromTemplateDialog.getDialogLabel(nameLabel)).toHaveValue(template1InRoot);
@@ -237,7 +237,7 @@ test.describe('Create file from template', () => {
await expect(createFileFromTemplateDialog.createButton).toBeEnabled();
});
test('[C325031] File name is required', async () => {
test('[XAT-5238] File name is required', async () => {
await expect(createFileFromTemplateDialog.getDialogLabel(nameLabel)).toHaveValue(template1InRoot);
await createFileFromTemplateDialog.getDialogLabel(nameLabel).clear();
@@ -249,7 +249,7 @@ test.describe('Create file from template', () => {
await expect(createFileFromTemplateDialog.createButton).toBeDisabled();
});
test('[C325032] Special characters in file name', async () => {
test('[XAT-5239] Special characters in file name', async () => {
const nameWithSpecialChars = ['a*a', 'a"a', 'a<a', 'a>a', `a\\a`, 'a/a', 'a?a', 'a:a', 'a|a'];
for (const specialFileName of nameWithSpecialChars) {
@@ -266,7 +266,7 @@ test.describe('Create file from template', () => {
}
});
test('[C325033] File name ending with a dot', async () => {
test('[XAT-5240] File name ending with a dot', async () => {
await createFileFromTemplateDialog.getDialogLabel(nameLabel).fill(dotString);
await createFileFromTemplateDialog.page.keyboard.press(tabKeyString);
await expect(createFileFromTemplateDialog.getDialogLabel(nameLabel)).toHaveValue(template1InRoot + dotString);
@@ -276,7 +276,7 @@ test.describe('Create file from template', () => {
await expect(createFileFromTemplateDialog.createButton).toBeDisabled();
});
test('[C325034] File name containing only spaces', async () => {
test('[XAT-5241] File name containing only spaces', async () => {
await createFileFromTemplateDialog.getDialogLabel(nameLabel).clear();
await createFileFromTemplateDialog.getDialogLabel(nameLabel).fill(spaceString);
await createFileFromTemplateDialog.page.keyboard.press(tabKeyString);
@@ -290,7 +290,7 @@ test.describe('Create file from template', () => {
await expect(createFileFromTemplateDialog.createButton).toBeDisabled();
});
test('[C290146] File title too long', async () => {
test('[XAT-5243] File title too long', async () => {
await createFileFromTemplateDialog.getDialogLabel(titleLabel).fill(Utils.string257Long);
await createFileFromTemplateDialog.page.keyboard.press(tabKeyString);
await expect(createFileFromTemplateDialog.getDialogLabel(titleLabel)).toHaveValue(Utils.string257Long);
@@ -300,7 +300,7 @@ test.describe('Create file from template', () => {
await expect(createFileFromTemplateDialog.createButton).toBeDisabled();
});
test('[C290142] Description too long', async () => {
test('[XAT-5242] Description too long', async () => {
await createFileFromTemplateDialog.getDialogLabel(descriptionLabel).fill(Utils.string513Long);
await createFileFromTemplateDialog.page.keyboard.press(tabKeyString);
await expect(createFileFromTemplateDialog.getDialogLabel(descriptionLabel)).toHaveValue(Utils.string513Long);
@@ -313,7 +313,7 @@ test.describe('Create file from template', () => {
await expect(createFileFromTemplateDialog.createButton).toBeDisabled();
});
test('[C325028] Create a file with a duplicate name', async ({ personalFiles }) => {
test('[XAT-5246] Create a file with a duplicate name', async ({ personalFiles }) => {
const snackBar = personalFiles.snackBar;
await createFileFromTemplateDialog.createFromTemplateAction(commonFileName);
@@ -321,7 +321,7 @@ test.describe('Create file from template', () => {
await expect(createFileFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeVisible();
});
test('[C325027] Cancel file creation', async () => {
test('[XAT-5247] Cancel file creation', async () => {
await expect(createFileFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeVisible();
await createFileFromTemplateDialog.cancelButton.click();
await expect(createFileFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeHidden();
@@ -342,19 +342,19 @@ test.describe('Create file from template', () => {
}
});
test('[C325030] Create a file from a template - with a new Name', async () => {
test('[XAT-5244] Create a file from a template - with a new Name', async () => {
await createFileFromTemplateDialog.createFromTemplateAction(randomFileName);
await dataTable.goThroughPagesLookingForRowWithName(randomFileName);
await expect(dataTable.getRowByName(randomFileName)).toBeVisible();
});
test('[C325026] Create a file from a template - with a Name, Title and Description', async () => {
test('[XAT-5245] Create a file from a template - with a Name, Title and Description', async () => {
await createFileFromTemplateDialog.createFromTemplateAction(randomFileName, randomFileTitle, randomFileDescription);
await dataTable.goThroughPagesLookingForRowWithName(randomFileName);
await expect(dataTable.getCellLinkByName(randomFileName)).toHaveAttribute(titleLabel, randomFileTitle + `\n` + randomFileDescription);
});
test('[C325042] Trim spaces from file Name', async () => {
test('[XAT-5248] Trim spaces from file Name', async () => {
await createFileFromTemplateDialog.createFromTemplateAction(' ' + randomFileName + ' ');
await dataTable.goThroughPagesLookingForRowWithName(randomFileName);
await expect(dataTable.getRowByName(randomFileName)).toBeVisible();
@@ -362,7 +362,7 @@ test.describe('Create file from template', () => {
});
});
test.describe('File created from template on Personal Files Libraries', () => {
test.describe('File created from template on Libraries', () => {
const randomLibraryName = `playwright-library-c2-${Utils.random()}`;
let sitesApi: SitesApi;
@@ -390,7 +390,7 @@ test.describe('Create file from template', () => {
await dataTable.getRowByName(template1InRoot).click();
await selectFileTemplateDialog.actionButton.click();
} catch (error) {
console.error(`File created from template on Personal Files Libraries, beforeEach failed: ${error}`);
console.error(`File created from template on Libraries, beforeEach failed: ${error}`);
}
});
@@ -398,19 +398,19 @@ test.describe('Create file from template', () => {
await sitesApi.deleteSites([randomLibraryName]);
});
test('[C325023] Create a file from a template from library - with Name, Title and Description', async () => {
test('[XAT-5249] Create a file from a template from library - with Name, Title and Description', async () => {
await createFileFromTemplateDialog.createFromTemplateAction(randomFileName, randomFileTitle, randomFileDescription);
await expect(dataTable.getCellLinkByName(randomFileName)).toHaveAttribute(titleLabel, randomFileTitle + `\n` + randomFileDescription);
});
test('[C325024] Cancel file creation in a library', async () => {
test('[XAT-5250] Cancel file creation in a library', async () => {
await expect(createFileFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeVisible();
await createFileFromTemplateDialog.cancelButton.click();
await expect(createFileFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeHidden();
await expect(dataTable.getRowByName(randomFileName)).toBeHidden();
});
test('[C325025] Create a file with a duplicate name in a library', async ({ myLibrariesPage }) => {
test('[XAT-5251] Create a file with a duplicate name in a library', async ({ myLibrariesPage }) => {
const snackBar = myLibrariesPage.snackBar;
await createFileFromTemplateDialog.createFromTemplateAction(commonFileName);

View File

@@ -165,7 +165,7 @@ test.describe('Create folder from template', () => {
});
test.describe('Select Template dialog', () => {
test('[C325147] Select template - dialog UI - with existing templates', async () => {
test('[XAT-5252] Select template - dialog UI - with existing templates', async () => {
await expect.soft(selectFolderTemplateDialog.getDialogTitle(selectDialogTitle)).toBeVisible();
await expect.soft(selectFolderTemplateDialog.getBreadcrumb(dialogBreadcrumb)).toBeVisible();
await expect.soft(dataTable.getRowByName(templateFolder1)).not.toBeEmpty();
@@ -176,12 +176,12 @@ test.describe('Create folder from template', () => {
await expect(selectFolderTemplateDialog.actionButton).toBeDisabled();
});
test(`[C325148] Templates don't appear if user doesn't have permissions to see them`, async () => {
test(`[XAT-5253] Templates don't appear if user doesn't have permissions to see them`, async () => {
await expect(selectFolderTemplateDialog.getDialogTitle(selectDialogTitle)).toBeVisible();
await expect(dataTable.getRowByName(restrictedTemplateFolder)).toBeHidden();
});
test(`[C325149] Navigate through the templates list with folder hierarchy`, async () => {
test(`[XAT-5254] Navigate through the templates list with folder hierarchy`, async () => {
await expect(selectFolderTemplateDialog.getBreadcrumb(dialogBreadcrumb)).toBeVisible();
await expect(dataTable.getRowByName(templateFolder1)).toBeVisible();
@@ -199,7 +199,7 @@ test.describe('Create folder from template', () => {
await expect(selectFolderTemplateDialog.getOptionLocator(dialogBreadcrumb)).toBeVisible();
});
test(`[C325150] Templates list doesn't allow multiple selection`, async () => {
test(`[XAT-5255] Templates list doesn't allow multiple selection`, async () => {
await expect(dataTable.getSelectedRow).toHaveCount(0);
await dataTable.getRowByName(templateFolder1).click({ modifiers: [commandKey] });
@@ -212,19 +212,19 @@ test.describe('Create folder from template', () => {
await expect(dataTable.getSelectedRow).toContainText(templateFolder2);
});
test('[C325153] Links to folders are not displayed', async () => {
test('[XAT-5257] Links to folders are not displayed', async () => {
await expect(dataTable.getRowByName(templateFolder1)).toBeVisible();
await expect(dataTable.getRowByName(folderLink)).toBeHidden();
});
test('[C325151] Cancel the Select template dialog', async () => {
test('[XAT-5258] Cancel the Select template dialog', async () => {
await expect(selectFolderTemplateDialog.getDialogTitle(selectDialogTitle)).toBeVisible();
await selectFolderTemplateDialog.cancelButton.click();
await expect(selectFolderTemplateDialog.getDialogTitle(selectDialogTitle)).toBeHidden();
});
test('[C325139] Next button is disabled when selecting a file', async () => {
test('[XAT-5256] Select Template - Next button is disabled when selecting a file', async () => {
await expect(dataTable.getRowByName(fileInRootFolder)).toBeVisible();
await expect(selectFolderTemplateDialog.actionButton).toBeDisabled();
@@ -252,7 +252,7 @@ test.describe('Create folder from template', () => {
}
});
test('[C325142] Create folder from template - dialog UI', async () => {
test('[XAT-5259] Create folder from template - dialog UI', async () => {
await expect.soft(createFolderFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeVisible();
await expect.soft(createFolderFromTemplateDialog.getDialogLabel(nameLabel)).toBeVisible();
await expect.soft(createFolderFromTemplateDialog.getDialogLabel(nameLabel)).toHaveValue(templateFolder1);
@@ -264,7 +264,7 @@ test.describe('Create folder from template', () => {
await expect(createFolderFromTemplateDialog.createButton).toBeEnabled();
});
test('[C325143] Folder name is required', async () => {
test('[XAT-5260] Folder name is required', async () => {
await expect(createFolderFromTemplateDialog.getDialogLabel(nameLabel)).toHaveValue(templateFolder1);
await createFolderFromTemplateDialog.getDialogLabel(nameLabel).clear();
@@ -276,7 +276,7 @@ test.describe('Create folder from template', () => {
await expect(createFolderFromTemplateDialog.createButton).toBeDisabled();
});
test('[C325144] Special characters in folder name', async () => {
test('[XAT-5261] Special characters in folder name', async () => {
const nameWithSpecialChars = ['a*a', 'a"a', 'a<a', 'a>a', `a\\a`, 'a/a', 'a?a', 'a:a', 'a|a'];
for (const specialFolderName of nameWithSpecialChars) {
@@ -293,7 +293,7 @@ test.describe('Create folder from template', () => {
}
});
test('[C325145] Folder name ending with a dot', async () => {
test('[XAT-5262] Folder name ending with a dot', async () => {
await createFolderFromTemplateDialog.getDialogLabel(nameLabel).fill(dotString);
await createFolderFromTemplateDialog.page.keyboard.press(tabKeyString);
await expect(createFolderFromTemplateDialog.getDialogLabel(nameLabel)).toHaveValue(templateFolder1 + dotString);
@@ -303,7 +303,7 @@ test.describe('Create folder from template', () => {
await expect(createFolderFromTemplateDialog.createButton).toBeDisabled();
});
test('[C325146] Folder name containing only spaces', async () => {
test('[XAT-5263] Folder name containing only spaces', async () => {
await createFolderFromTemplateDialog.getDialogLabel(nameLabel).clear();
await createFolderFromTemplateDialog.getDialogLabel(nameLabel).fill(spaceString);
await createFolderFromTemplateDialog.page.keyboard.press(tabKeyString);
@@ -317,7 +317,7 @@ test.describe('Create folder from template', () => {
await expect(createFolderFromTemplateDialog.createButton).toBeDisabled();
});
test('[C325141] Title too long', async () => {
test('[XAT-5265] Folder title too long', async () => {
await createFolderFromTemplateDialog.getDialogLabel(titleLabel).fill(Utils.string257Long);
await createFolderFromTemplateDialog.page.keyboard.press(tabKeyString);
await expect(createFolderFromTemplateDialog.getDialogLabel(titleLabel)).toHaveValue(Utils.string257Long);
@@ -327,7 +327,7 @@ test.describe('Create folder from template', () => {
await expect(createFolderFromTemplateDialog.createButton).toBeDisabled();
});
test('[C325140] Description too long', async () => {
test('[XAT-5264] Folder description too long', async () => {
await createFolderFromTemplateDialog.getDialogLabel(descriptionLabel).fill(Utils.string513Long);
await createFolderFromTemplateDialog.page.keyboard.press(tabKeyString);
await expect(createFolderFromTemplateDialog.getDialogLabel(descriptionLabel)).toHaveValue(Utils.string513Long);
@@ -340,7 +340,7 @@ test.describe('Create folder from template', () => {
await expect(createFolderFromTemplateDialog.createButton).toBeDisabled();
});
test('[C325156] Create a folder with a duplicate name', async ({ personalFiles }) => {
test('[XAT-5268] Create a folder with a duplicate name', async ({ personalFiles }) => {
const snackBar = personalFiles.snackBar;
await createFolderFromTemplateDialog.createFromTemplateAction(commonFolderName);
@@ -348,7 +348,7 @@ test.describe('Create folder from template', () => {
await expect(createFolderFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeVisible();
});
test('[C325155] Cancel folder creation', async () => {
test('[XAT-5269] Cancel folder creation', async () => {
await expect(createFolderFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeVisible();
await createFolderFromTemplateDialog.cancelButton.click();
await expect(createFolderFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeHidden();
@@ -369,7 +369,7 @@ test.describe('Create folder from template', () => {
}
});
test('[C325157] Create a folder from a template - with a new Name', async () => {
test('[XAT-5266] Create a folder from a template - with a new Name', async () => {
await createFolderFromTemplateDialog.createFromTemplateAction(randomFolderName);
await dataTable.goThroughPagesLookingForRowWithName(randomFolderName);
await expect(dataTable.getRowByName(randomFolderName)).toBeVisible();
@@ -379,13 +379,13 @@ test.describe('Create folder from template', () => {
await expect(dataTable.getRowByName(fileInFolder1)).toBeVisible();
});
test('[C325154] Create a folder from a template - with a Name, Title and Description', async () => {
test('[XAT-5267] Create a folder from a template - with a Name, Title and Description', async () => {
await createFolderFromTemplateDialog.createFromTemplateAction(randomFolderName, randomFolderTitle, randomFolderDescription);
await dataTable.goThroughPagesLookingForRowWithName(randomFolderName);
await expect(dataTable.getCellLinkByName(randomFolderName)).toHaveAttribute(titleLabel, randomFolderTitle + `\n` + randomFolderDescription);
});
test('[C325158] Trim spaces from folder Name', async () => {
test('[XAT-5270] Trim spaces from folder Name', async () => {
await createFolderFromTemplateDialog.createFromTemplateAction(' ' + randomFolderName + ' ');
await dataTable.goThroughPagesLookingForRowWithName(randomFolderName);
await expect(dataTable.getRowByName(randomFolderName)).toBeVisible();
@@ -393,7 +393,7 @@ test.describe('Create folder from template', () => {
});
});
test.describe('Folder created from template on Personal Files Libraries', () => {
test.describe('Folder created from template on Libraries', () => {
const randomLibraryName = `playwright-library-c1-${Utils.random()}`;
let sitesApi: SitesApi;
@@ -404,7 +404,7 @@ test.describe('Create folder from template', () => {
const libraryGuId = await sitesApi.getDocLibId(randomLibraryName);
await nodesApi.createFolder(commonFolderName, libraryGuId);
} catch (error) {
console.error(`Folder created from template on Personal Files Libraries, beforeAll failed : ${error}`);
console.error(`Folder created from template on Libraries, beforeAll failed : ${error}`);
}
});
@@ -438,7 +438,7 @@ test.describe('Create folder from template', () => {
}
});
test('[C325161] Create a folder from a template from library - with Name, Title and Description', async () => {
test('[XAT-5271] Create a folder from a template from library - with Name, Title and Description', async () => {
await createFolderFromTemplateDialog.createFromTemplateAction(randomFolderName, randomFolderTitle, randomFolderDescription);
await expect
.soft(dataTable.getCellLinkByName(randomFolderName))
@@ -449,14 +449,14 @@ test.describe('Create folder from template', () => {
await expect(dataTable.getRowByName(fileInFolder1)).toBeVisible();
});
test('[C325162] Cancel folder creation in a library', async () => {
test('[XAT-5272] Cancel folder creation in a library', async () => {
await expect(createFolderFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeVisible();
await createFolderFromTemplateDialog.cancelButton.click();
await expect(createFolderFromTemplateDialog.getDialogTitle(createDialogTitle)).toBeHidden();
await expect(dataTable.getRowByName(randomFolderName)).toBeHidden();
});
test('[C325163] Create a folder with a duplicate name in a library', async ({ myLibrariesPage }) => {
test('[XAT-5273] Create a folder with a duplicate name in a library', async ({ myLibrariesPage }) => {
const snackBar = myLibrariesPage.snackBar;
await createFolderFromTemplateDialog.createFromTemplateAction(commonFolderName);

View File

@@ -77,7 +77,7 @@ test.describe('Create folders', () => {
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed');
});
test('[C216345] Create new folder dialog check', async () => {
test('[XAT-5078] Create new folder dialog UI check', async () => {
await expect(folderDialog.getLabelText('Name')).toBeVisible();
await expect(folderDialog.getRequiredMarker('Name')).toBeVisible();
await expect(folderDialog.folderNameInputLocator).toBeVisible();
@@ -89,7 +89,7 @@ test.describe('Create folders', () => {
await expect(folderDialog.createButton).toBeDisabled();
});
test('[C216346] Create a folder without a name', async () => {
test('[XAT-5079] Create a folder without a name - Disabled Create button', async () => {
await folderDialog.folderNameInputLocator.fill(randomFolderName);
await expect(folderDialog.folderNameInputLocator).toHaveValue(randomFolderName);
await expect(folderDialog.createButton).toBeEnabled();
@@ -101,14 +101,14 @@ test.describe('Create folders', () => {
await expect(folderDialog.createButton).toBeDisabled();
});
test('[C216348] Create folder when a name that ends with a dot "."', async () => {
test('[XAT-5081] Create folder when a name that ends with a dot "."', async () => {
await folderDialog.folderNameInputLocator.fill(randomFolderName + '.');
await expect(folderDialog.createButton).toBeDisabled();
await expect(folderDialog.folderNameInputHint).toContainText(errorStrings.folderNameCantEndWithAPeriod);
});
test('[C216347] Create folder with a name containing special characters', async () => {
test('[XAT-5080] Create folder with a name containing special characters', async () => {
const namesWithSpecialChars = ['a*a', 'a"a', 'a<a', 'a>a', `a\\a`, 'a/a', 'a?a', 'a:a', 'a|a'];
for (const folderName of namesWithSpecialChars) {
await folderDialog.folderNameInputLocator.fill(folderName);
@@ -118,21 +118,21 @@ test.describe('Create folders', () => {
}
});
test('[C280406] Create a folder with a name containing only spaces', async () => {
test('[XAT-5082] Create a folder with a name containing only spaces', async () => {
await folderDialog.folderNameInputLocator.fill(spacesString);
await expect(folderDialog.createButton).toBeDisabled();
await expect(folderDialog.folderNameInputHint).toContainText(errorStrings.folderNameCantContainOnlySpaces);
});
test('[C216349] Cancel folder creation', async ({ personalFiles }) => {
test('[XAT-5083] Cancel folder creation', async ({ personalFiles }) => {
await expect(personalFiles.page.getByRole(dialogString, { name: createNewFolderString })).toBeVisible();
await folderDialog.folderNameInputLocator.fill(randomFolderName);
await folderDialog.cancelButton.click();
await expect(personalFiles.page.getByRole(dialogString, { name: createNewFolderString })).toBeHidden();
});
test('[C216350] Duplicate folder name error', async ({ personalFiles }) => {
test('[XAT-5084] Duplicate folder name error', async ({ personalFiles }) => {
const folderSnackBar = personalFiles.snackBar;
await folderDialog.createNewFolderDialog(commonFolderName);
@@ -145,19 +145,19 @@ test.describe('Create folders', () => {
folderTable = personalFiles.dataTable;
});
test('[C216341] Create a folder with name only', async () => {
test('[XAT-5077] Create folder when pressing OK - with name and no description', async () => {
await folderDialog.createNewFolderDialog(randomFolderName);
await expect(folderTable.getRowByName(randomFolderName)).toBeVisible();
});
test('[C216340] Create a folder with name, title and description', async () => {
test('[XAT-5076] Create folder when pressing OK - with name, title and description', async () => {
await folderDialog.createNewFolderDialog(randomFolderName, randomFolderTitle, randomFolderDescription);
await expect(folderTable.getCellLinkByName(randomFolderName)).toHaveAttribute('title', randomFolderTitle + `\n` + randomFolderDescription);
});
test('[C216351] Folder created after trimmed ending spaces from a folder name', async () => {
test('[XAT-5085] Folder created after trimmed ending spaces from a folder name', async () => {
await folderDialog.createNewFolderDialog(randomFolderName + spacesString);
await expect(folderTable.getRowByName(randomFolderName)).toBeVisible();

View File

@@ -94,7 +94,7 @@ test.describe('Create Libraries ', () => {
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed', sitesApi, createdLibrariesIds);
});
test('[C280024] Create Library dialog UI', async () => {
test('[XAT-5118] Create Library dialog UI check', async () => {
await expect(libraryDialog.getDialogTitle(libraryDialogTitle)).toBeVisible();
await expect(libraryDialog.getLabelText(libraryNameLabel)).toBeVisible();
await expect(libraryDialog.getRequiredMarker(libraryNameLabel)).toBeVisible();
@@ -115,7 +115,7 @@ test.describe('Create Libraries ', () => {
libraryBreadcrumb = myLibrariesPage.breadcrumb;
});
test('[C280025] Create a public library', async ({ myLibrariesPage }) => {
test('[XAT-5119] Create a public library', async ({ myLibrariesPage }) => {
await libraryDialog.getLabelText(libraryNameLabel).fill(randomLibraryName);
await expect(libraryDialog.getLabelText(libraryNameLabel)).toHaveValue(randomLibraryName);
await expect(libraryDialog.getLabelText(libraryIdLabel)).toHaveValue(randomLibraryName);
@@ -128,7 +128,7 @@ test.describe('Create Libraries ', () => {
createdLibrariesIds.push(randomLibraryName);
});
test('[C289880] Create a moderated library', async ({ myLibrariesPage }) => {
test('[XAT-5120] Create a moderated library', async ({ myLibrariesPage }) => {
await libraryDialog.createLibraryWithNameAndId(randomLibraryName, randomLibraryId, null, moderatedVisibility);
await expect(libraryBreadcrumb.getItemByTitle(randomLibraryName)).toBeVisible();
@@ -139,7 +139,7 @@ test.describe('Create Libraries ', () => {
createdLibrariesIds.push(randomLibraryId);
});
test('[C289881] Create a private library', async ({ myLibrariesPage }) => {
test('[XAT-5121] Create a private library', async ({ myLibrariesPage }) => {
await libraryDialog.createLibraryWithNameAndId(randomLibraryName, randomLibraryId, null, privateVisibility);
await expect(libraryBreadcrumb.getItemByTitle(randomLibraryName)).toBeVisible();
@@ -149,7 +149,7 @@ test.describe('Create Libraries ', () => {
createdLibrariesIds.push(randomLibraryId);
});
test('[C289882] Create a library with a given ID and description', async ({ myLibrariesPage }) => {
test('[XAT-5122] Create a library with a given ID and description', async ({ myLibrariesPage }) => {
const libraryViewDetails = myLibrariesPage.acaHeader.viewDetails;
const libraryDetails = myLibrariesPage.libraryDetails;
@@ -169,7 +169,7 @@ test.describe('Create Libraries ', () => {
createdLibrariesIds.push(randomLibraryId);
});
test('[C280029] Cancel button', async () => {
test('[XAT-5126] Create Library - Cancel button', async () => {
await expect(libraryDialog.getDialogTitle(libraryDialogTitle)).toBeVisible();
await libraryDialog.getLabelText(libraryNameLabel).fill(randomLibraryName);
await libraryDialog.cancelButton.click();
@@ -178,7 +178,7 @@ test.describe('Create Libraries ', () => {
await expect(libraryTable.getRowByName(randomLibraryName)).toHaveCount(0);
});
test('[C280030] Create 2 libraries with same name but different IDs', async ({ myLibrariesPage }) => {
test('[XAT-5127] Create multiple sites with same name but different IDs', async ({ myLibrariesPage }) => {
const libraryName = commonLibraryName + ' (' + commonLibraryName + ')';
const libraryName2 = commonLibraryName + ' (' + randomLibraryId + ')';
@@ -193,7 +193,7 @@ test.describe('Create Libraries ', () => {
});
});
test('[C280026] Library ID cannot contain special characters', async () => {
test('[XAT-5123] Library ID cannot contain special characters', async () => {
const idsWithSpecialChars = [
'a!a',
'a@a',
@@ -226,7 +226,7 @@ test.describe('Create Libraries ', () => {
}
});
test('[C280027] Duplicate library ID', async () => {
test('[XAT-5124] Duplicate library ID', async () => {
await libraryDialog.getLabelText(libraryNameLabel).fill(randomLibraryName);
await libraryDialog.getLabelText(libraryIdLabel).clear();
await libraryDialog.getLabelText(libraryIdLabel).fill(commonLibraryName);
@@ -237,7 +237,7 @@ test.describe('Create Libraries ', () => {
expect(await libraryDialog.isErrorMessageDisplayed(libraryErrors.libraryIdIsNotAvailable), errorMessageNotPresent).toBe(true);
});
test('[C280028] Create library using the ID of a library from the Trashcan', async () => {
test('[XAT-5125] Create library using the ID of a library from the Trashcan', async () => {
await libraryDialog.getLabelText(libraryNameLabel).fill(randomLibraryName);
await libraryDialog.getLabelText(libraryIdLabel).clear();
await libraryDialog.getLabelText(libraryIdLabel).fill(commonTrashLibraryName);