mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +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:
@@ -32,7 +32,8 @@ import {
|
||||
SitesApi,
|
||||
FileActionsApi,
|
||||
SITE_VISIBILITY,
|
||||
SITE_ROLES
|
||||
SITE_ROLES,
|
||||
SIDEBAR_LABELS
|
||||
} from '@alfresco/aca-playwright-shared';
|
||||
|
||||
test.describe('Search Results - General', () => {
|
||||
@@ -139,7 +140,7 @@ test.describe('Search Results - General', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('[C290012] Search library - full name match', async ({ searchPage }) => {
|
||||
test('[XAT-5594] Search library - full name match', async ({ searchPage }) => {
|
||||
await searchPage.searchWithin(site1.name, 'libraries');
|
||||
|
||||
expect(await searchPage.dataTable.isItemPresent(site1.name)).toBeTruthy();
|
||||
@@ -148,7 +149,7 @@ test.describe('Search Results - General', () => {
|
||||
expect(await searchPage.dataTable.isItemPresent(site4.name)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C290013] Search library - partial name match', async ({ searchPage }) => {
|
||||
test('[XAT-5595] Search library - partial name match', async ({ searchPage }) => {
|
||||
await fileActionsApi.waitForNodes(site3.id, { expect: 1 });
|
||||
await searchPage.searchWithin(`lib-${random}`, 'libraries');
|
||||
|
||||
@@ -158,7 +159,7 @@ test.describe('Search Results - General', () => {
|
||||
expect(await searchPage.dataTable.isItemPresent(site4.name)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C290014] Search library - description match', async ({ searchPage }) => {
|
||||
test('[XAT-5596] Search library - description match', async ({ searchPage }) => {
|
||||
await searchPage.searchWithin(site4.description, 'libraries');
|
||||
|
||||
expect(await searchPage.dataTable.isItemPresent(site1.name)).toBeFalsy();
|
||||
@@ -167,7 +168,7 @@ test.describe('Search Results - General', () => {
|
||||
expect(await searchPage.dataTable.isItemPresent(site4.name)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[C290016] Results page columns', async ({ searchPage }) => {
|
||||
test('[XAT-5598] Libraries Results page columns', async ({ searchPage }) => {
|
||||
await searchPage.searchWithin(site1.name, 'libraries');
|
||||
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility'];
|
||||
@@ -176,7 +177,7 @@ test.describe('Search Results - General', () => {
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
test('[C290017] Library visibility is correctly displayed', async ({ searchPage }) => {
|
||||
test('[XAT-5599] Library visibility is correctly displayed', async ({ searchPage }) => {
|
||||
await searchPage.searchWithin(`user-site-${random}`, 'libraries');
|
||||
|
||||
const expectedSitesVisibility = {
|
||||
@@ -190,7 +191,7 @@ test.describe('Search Results - General', () => {
|
||||
expect(expectedSitesVisibility).toEqual(actualSitesVisibility);
|
||||
});
|
||||
|
||||
test('[C290018] User role is correctly displayed', async ({ searchPage }) => {
|
||||
test('[XAT-5600] User role is correctly displayed', async ({ searchPage }) => {
|
||||
await searchPage.searchWithin(`admin-${random}-site`, 'libraries');
|
||||
|
||||
const expectedSitesRoles = {
|
||||
@@ -205,15 +206,24 @@ test.describe('Search Results - General', () => {
|
||||
expect(expectedSitesRoles).toEqual(actualSitesRole);
|
||||
});
|
||||
|
||||
test('[C290019] Private sites are not displayed when user is not a member', async ({ searchPage }) => {
|
||||
test('[XAT-5601] Private sites are not displayed when user is not a member', async ({ searchPage }) => {
|
||||
await searchPage.searchWithin(`admin-${random}-site`, 'libraries');
|
||||
|
||||
expect(await searchPage.dataTable.isItemPresent(adminPrivate)).toBeFalsy();
|
||||
});
|
||||
|
||||
test('[C290028] Search libraries with special characters', async ({ searchPage }) => {
|
||||
test('[XAT-5602] Search libraries with special characters', async ({ searchPage }) => {
|
||||
await searchPage.searchWithin(siteRussian.name, 'libraries');
|
||||
|
||||
expect(await searchPage.dataTable.isItemPresent(siteRussian.name)).toBeTruthy();
|
||||
});
|
||||
|
||||
test('[XAT-5591] Empty Search results - Libraries', async ({ searchPage }) => {
|
||||
await searchPage.sidenav.openPanel(SIDEBAR_LABELS.MY_LIBRARIES);
|
||||
/* cspell:disable-next-line */
|
||||
await searchPage.searchWithin('qwertyuiop', 'files');
|
||||
|
||||
expect(await searchPage.dataTable.isEmpty()).toBeTruthy();
|
||||
expect(await searchPage.dataTable.emptySearchText.textContent()).toContain('Your search returned 0 results');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user