mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-4511] search layout update (#2272)
* [ACA-4511] search layout update * * separate description column * * enable path and fix e2e * * revert lock changes
This commit is contained in:
@@ -326,7 +326,7 @@ describe('Edit offline', () => {
|
||||
it('[C306954] Lock information is displayed', async () => {
|
||||
expect(await dataTable.isItemPresent(fileSearchLocked2, parentSearch)).toBe(true, `${fileSearchLocked2} is not displayed`);
|
||||
expect(await dataTable.hasLockIcon(fileSearchLocked2, parentSearch)).toBe(true, `${fileSearchLocked2} does not have a lock icon`);
|
||||
expect(await dataTable.getLockOwner(fileSearchLocked2, parentSearch)).toContain(
|
||||
expect(await dataTable.getLockOwnerToolTip(fileSearchLocked2, parentSearch)).toContain(
|
||||
username,
|
||||
`${fileSearchLocked2} does not have correct lock owner info`
|
||||
);
|
||||
|
@@ -108,12 +108,13 @@ describe('Search results - files and folders', () => {
|
||||
const size = fileEntry.entry.content.sizeInBytes;
|
||||
|
||||
expect(await dataTable.isItemPresent(file)).toBe(true, `${file} is not displayed`);
|
||||
expect(await dataTable.getRowCellsCount(file)).toEqual(2, 'incorrect number of columns');
|
||||
expect(await dataTable.getSearchResultLinesCount(file)).toEqual(4, 'incorrect number of lines for search result');
|
||||
expect(await dataTable.getSearchResultNameAndTitle(file)).toBe(`${file} ( ${fileTitle} )`);
|
||||
expect(await dataTable.getSearchResultDescription(file)).toBe(fileDescription);
|
||||
expect(await dataTable.getSearchResultModified(file)).toBe(`Modified: ${modifiedDate} by ${modifiedBy} | Size: ${size} Bytes`);
|
||||
expect(await dataTable.getSearchResultLocation(file)).toMatch(/Location:\s+Personal Files/);
|
||||
expect(await dataTable.getRowCellsCount(file)).toEqual(6, 'incorrect number of columns');
|
||||
expect(await page.getName(file)).toBe(`${file} ( ${fileTitle} )`);
|
||||
expect(await page.getDescription(file)).toBe(fileDescription);
|
||||
expect(await page.getModified(file)).toBe(modifiedDate);
|
||||
expect(await page.getModifiedBy(file)).toBe(modifiedBy);
|
||||
expect(await page.getSize(file)).toBe(`${size} Bytes`);
|
||||
expect(await page.getLocation(file)).toEqual(`Company Home › User Homes › ${username}`);
|
||||
});
|
||||
|
||||
it('[C306867] Folder information', async () => {
|
||||
@@ -127,12 +128,12 @@ describe('Search results - files and folders', () => {
|
||||
const modifiedBy = folderEntry.entry.modifiedByUser.displayName;
|
||||
|
||||
expect(await dataTable.isItemPresent(folder)).toBe(true, `${folder} is not displayed`);
|
||||
expect(await dataTable.getRowCellsCount(folder)).toEqual(2, 'incorrect number of columns');
|
||||
expect(await dataTable.getSearchResultLinesCount(folder)).toEqual(4, 'incorrect number of lines for search result');
|
||||
expect(await dataTable.getSearchResultNameAndTitle(folder)).toBe(`${folder} ( ${folderTitle} )`);
|
||||
expect(await dataTable.getSearchResultDescription(folder)).toBe(folderDescription);
|
||||
expect(await dataTable.getSearchResultModified(folder)).toBe(`Modified: ${modifiedDate} by ${modifiedBy}`);
|
||||
expect(await dataTable.getSearchResultLocation(folder)).toMatch(/Location:\s+Personal Files/);
|
||||
expect(await dataTable.getRowCellsCount(file)).toEqual(6, 'incorrect number of columns');
|
||||
expect(await page.getName(folder)).toBe(`${folder} ( ${folderTitle} )`);
|
||||
expect(await page.getDescription(folder)).toBe(folderDescription);
|
||||
expect(await page.getModified(folder)).toBe(modifiedDate);
|
||||
expect(await page.getModifiedBy(folder)).toBe(modifiedBy);
|
||||
expect(await page.getLocation(folder)).toEqual(`Company Home › User Homes › ${username}`);
|
||||
});
|
||||
|
||||
it('[C290029] Search file with special characters', async () => {
|
||||
|
Reference in New Issue
Block a user