mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
add sanity tests for File Libraries
small improvement to Personal Files
This commit is contained in:
@@ -108,14 +108,12 @@ describe('Personal Files', () => {
|
||||
.then(done);
|
||||
});
|
||||
|
||||
it('has the right column count', () => {
|
||||
expect(dataTable.getColumnHeaders().count()).toBe(5);
|
||||
});
|
||||
|
||||
it('has the right columns', () => {
|
||||
it('has the correct columns', () => {
|
||||
const labels = [ 'Name', 'Size', 'Modified', 'Modified by' ];
|
||||
const elements = labels.map(label => dataTable.getColumnHeaderByLabel(label));
|
||||
|
||||
expect(dataTable.getColumnHeaders().count()).toBe(4 + 1, 'Incorrect number of columns');
|
||||
|
||||
elements.forEach((element, index) => {
|
||||
expect(element.isPresent()).toBe(true, `"${labels[index]}" is missing`);
|
||||
});
|
||||
|
Reference in New Issue
Block a user