mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
- fix intermittent failing tests from Shared Files (#539)
- rename some methods to be more clear - use async / await - part1
This commit is contained in:
committed by
Denys Vuika
parent
262240c8ea
commit
c6f704270f
@@ -181,7 +181,7 @@ describe('Pagination on Recent Files', () => {
|
||||
expect(pagination.currentPage.getText()).toContain('Page 3');
|
||||
expect(pagination.previousButton.isEnabled()).toBe(true, 'Previous button is not enabled');
|
||||
expect(pagination.nextButton.isEnabled()).toBe(true, 'Next button is not enabled');
|
||||
expect(dataTable.getRowName('file-40.txt').isPresent()).toBe(true, 'File not found on page');
|
||||
expect(dataTable.getRowByName('file-40.txt').isPresent()).toBe(true, 'File not found on page');
|
||||
})
|
||||
|
||||
.then(() => pagination.resetToDefaultPageNumber());
|
||||
@@ -192,7 +192,7 @@ describe('Pagination on Recent Files', () => {
|
||||
.then(() => dataTable.waitForHeader())
|
||||
.then(() => {
|
||||
expect(pagination.range.getText()).toContain('26-50 of 101');
|
||||
expect(dataTable.getRowName('file-70.txt').isPresent()).toBe(true, 'File not found on page');
|
||||
expect(dataTable.getRowByName('file-70.txt').isPresent()).toBe(true, 'File not found on page');
|
||||
})
|
||||
|
||||
.then(() => pagination.resetToDefaultPageNumber());
|
||||
@@ -206,7 +206,7 @@ describe('Pagination on Recent Files', () => {
|
||||
.then(() => dataTable.waitForHeader())
|
||||
.then(() => {
|
||||
expect(pagination.range.getText()).toContain('1-25 of 101');
|
||||
expect(dataTable.getRowName('file-88.txt').isPresent()).toBe(true, 'File not found on page');
|
||||
expect(dataTable.getRowByName('file-88.txt').isPresent()).toBe(true, 'File not found on page');
|
||||
})
|
||||
|
||||
.then(() => pagination.resetToDefaultPageNumber());
|
||||
|
Reference in New Issue
Block a user