mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1928] e2e improvements - part2 (#884)
* refactor Mark as favourite tests rename method to be more clear create separate methods for some checks and actions * forgot some changes * refactor delete-undo tests * some more refactoring * fix * small improvements / refactoring
This commit is contained in:
committed by
Cilibiu Bogdan
parent
b8ce533759
commit
24f5f01900
@@ -98,62 +98,62 @@ describe('Empty list views', () => {
|
||||
|
||||
it('Favorites - pagination controls not displayed - [C280111]', async () => {
|
||||
await page.clickFavorites();
|
||||
expect(await pagination.range.isPresent()).toBe(false);
|
||||
expect(await pagination.maxItems.isPresent()).toBe(false);
|
||||
expect(await pagination.currentPage.isPresent()).toBe(false);
|
||||
expect(await pagination.totalPages.isPresent()).toBe(false);
|
||||
expect(await pagination.previousButton.isPresent()).toBe(false);
|
||||
expect(await pagination.nextButton.isPresent()).toBe(false);
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
expect(await pagination.isCurrentPagePresent()).toBe(false, 'Current page is present');
|
||||
expect(await pagination.isTotalPagesPresent()).toBe(false, 'Total pages is present');
|
||||
expect(await pagination.isPreviousButtonPresent()).toBe(false, 'Previous button is present');
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('File Libraries - pagination controls not displayed - [C280084]', async () => {
|
||||
await page.clickFileLibraries();
|
||||
expect(await pagination.range.isPresent()).toBe(false);
|
||||
expect(await pagination.maxItems.isPresent()).toBe(false);
|
||||
expect(await pagination.currentPage.isPresent()).toBe(false);
|
||||
expect(await pagination.totalPages.isPresent()).toBe(false);
|
||||
expect(await pagination.previousButton.isPresent()).toBe(false);
|
||||
expect(await pagination.nextButton.isPresent()).toBe(false);
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
expect(await pagination.isCurrentPagePresent()).toBe(false, 'Current page is present');
|
||||
expect(await pagination.isTotalPagesPresent()).toBe(false, 'Total pages is present');
|
||||
expect(await pagination.isPreviousButtonPresent()).toBe(false, 'Previous button is present');
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Personal Files - pagination controls not displayed - [C280075]', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
expect(await pagination.range.isPresent()).toBe(false);
|
||||
expect(await pagination.maxItems.isPresent()).toBe(false);
|
||||
expect(await pagination.currentPage.isPresent()).toBe(false);
|
||||
expect(await pagination.totalPages.isPresent()).toBe(false);
|
||||
expect(await pagination.previousButton.isPresent()).toBe(false);
|
||||
expect(await pagination.nextButton.isPresent()).toBe(false);
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
expect(await pagination.isCurrentPagePresent()).toBe(false, 'Current page is present');
|
||||
expect(await pagination.isTotalPagesPresent()).toBe(false, 'Total pages is present');
|
||||
expect(await pagination.isPreviousButtonPresent()).toBe(false, 'Previous button is present');
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Recent Files - pagination controls not displayed - [C280102]', async () => {
|
||||
await page.clickRecentFiles();
|
||||
expect(await pagination.range.isPresent()).toBe(false);
|
||||
expect(await pagination.maxItems.isPresent()).toBe(false);
|
||||
expect(await pagination.currentPage.isPresent()).toBe(false);
|
||||
expect(await pagination.totalPages.isPresent()).toBe(false);
|
||||
expect(await pagination.previousButton.isPresent()).toBe(false);
|
||||
expect(await pagination.nextButton.isPresent()).toBe(false);
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
expect(await pagination.isCurrentPagePresent()).toBe(false, 'Current page is present');
|
||||
expect(await pagination.isTotalPagesPresent()).toBe(false, 'Total pages is present');
|
||||
expect(await pagination.isPreviousButtonPresent()).toBe(false, 'Previous button is present');
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Shared Files - pagination controls not displayed - [C280094]', async () => {
|
||||
await page.clickSharedFiles();
|
||||
expect(await pagination.range.isPresent()).toBe(false);
|
||||
expect(await pagination.maxItems.isPresent()).toBe(false);
|
||||
expect(await pagination.currentPage.isPresent()).toBe(false);
|
||||
expect(await pagination.totalPages.isPresent()).toBe(false);
|
||||
expect(await pagination.previousButton.isPresent()).toBe(false);
|
||||
expect(await pagination.nextButton.isPresent()).toBe(false);
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
expect(await pagination.isCurrentPagePresent()).toBe(false, 'Current page is present');
|
||||
expect(await pagination.isTotalPagesPresent()).toBe(false, 'Total pages is present');
|
||||
expect(await pagination.isPreviousButtonPresent()).toBe(false, 'Previous button is present');
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Trash - pagination controls not displayed - [C280120]', async () => {
|
||||
await page.clickTrash();
|
||||
expect(await pagination.range.isPresent()).toBe(false);
|
||||
expect(await pagination.maxItems.isPresent()).toBe(false);
|
||||
expect(await pagination.currentPage.isPresent()).toBe(false);
|
||||
expect(await pagination.totalPages.isPresent()).toBe(false);
|
||||
expect(await pagination.previousButton.isPresent()).toBe(false);
|
||||
expect(await pagination.nextButton.isPresent()).toBe(false);
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
expect(await pagination.isCurrentPagePresent()).toBe(false, 'Current page is present');
|
||||
expect(await pagination.isTotalPagesPresent()).toBe(false, 'Total pages is present');
|
||||
expect(await pagination.isPreviousButtonPresent()).toBe(false, 'Previous button is present');
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Search results - pagination controls not displayed - [C290123]', async () => {
|
||||
@@ -163,11 +163,11 @@ describe('Empty list views', () => {
|
||||
await searchInput.searchFor('qwertyuiop');
|
||||
await dataTable.waitForBody();
|
||||
|
||||
expect(await pagination.range.isPresent()).toBe(false);
|
||||
expect(await pagination.maxItems.isPresent()).toBe(false);
|
||||
expect(await pagination.currentPage.isPresent()).toBe(false);
|
||||
expect(await pagination.totalPages.isPresent()).toBe(false);
|
||||
expect(await pagination.previousButton.isPresent()).toBe(false);
|
||||
expect(await pagination.nextButton.isPresent()).toBe(false);
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
expect(await pagination.isCurrentPagePresent()).toBe(false, 'Current page is present');
|
||||
expect(await pagination.isTotalPagesPresent()).toBe(false, 'Total pages is present');
|
||||
expect(await pagination.isPreviousButtonPresent()).toBe(false, 'Previous button is present');
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user