mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-04-16 22:24:27 +00:00
[ACS-4124] Display tags applied to file in files list (#2974)
* [ACS-4124] Display tags applied to file in files list * [ACS-4124] CR fixes * [ACS-4124] Hide tags for smaller displays * [ACS-4124] E2e fixes * [ACS-4124] E2e fixes
This commit is contained in:
@@ -90,7 +90,7 @@ describe('Favorites', () => {
|
||||
});
|
||||
|
||||
it('[C280482] has the correct columns', async () => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by'];
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by', 'Tags'];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
await expect(actualColumns).toEqual(expectedColumns);
|
||||
|
||||
@@ -102,7 +102,7 @@ describe('File Libraries', () => {
|
||||
});
|
||||
|
||||
it('[C217095] has the correct columns', async () => {
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility'];
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility', 'Tags'];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
await expect(actualColumns).toEqual(expectedColumns);
|
||||
@@ -167,7 +167,7 @@ describe('File Libraries', () => {
|
||||
});
|
||||
|
||||
it('[C289893] has the correct columns', async () => {
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility'];
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility', 'Tags'];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
await expect(actualColumns).toEqual(expectedColumns);
|
||||
|
||||
@@ -79,7 +79,7 @@ describe('Personal Files', () => {
|
||||
});
|
||||
|
||||
it('[C217142] has the correct columns', async () => {
|
||||
const expectedColumns = ['Name', 'Size', 'Modified', 'Modified by'];
|
||||
const expectedColumns = ['Name', 'Size', 'Modified', 'Modified by', 'Tags'];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
await expect(actualColumns).toEqual(expectedColumns);
|
||||
|
||||
@@ -84,7 +84,7 @@ describe('Recent Files', () => {
|
||||
});
|
||||
|
||||
it('[C213168] has the correct columns', async () => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified'];
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Tags'];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
await expect(actualColumns).toEqual(expectedColumns);
|
||||
|
||||
@@ -90,7 +90,7 @@ describe('Shared Files', () => {
|
||||
});
|
||||
|
||||
it('[C213113] has the correct columns', async () => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by', 'Shared by'];
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by', 'Shared by', 'Tags'];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
await expect(actualColumns).toEqual(expectedColumns);
|
||||
|
||||
@@ -105,7 +105,7 @@ 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(6, 'incorrect number of columns');
|
||||
expect(await dataTable.getRowCellsCount(file)).toEqual(7, '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);
|
||||
@@ -125,7 +125,7 @@ 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(file)).toEqual(6, 'incorrect number of columns');
|
||||
expect(await dataTable.getRowCellsCount(file)).toEqual(7, '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);
|
||||
|
||||
@@ -187,7 +187,7 @@ describe('Search results - libraries', () => {
|
||||
await searchInput.searchFor(site1.name);
|
||||
await dataTable.waitForBody();
|
||||
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility'];
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility', 'Tags'];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
await expect(actualColumns).toEqual(expectedColumns);
|
||||
|
||||
Reference in New Issue
Block a user