[ADF-3959] Fixing trashcan-pagination tests (#4222)

This commit is contained in:
Marouan Bentaleb
2019-02-01 13:20:17 +00:00
committed by Eugenio Romano
parent 2036e026f3
commit c00e230983
6 changed files with 56 additions and 38 deletions

View File

@@ -84,15 +84,19 @@ describe('Trashcan - Pagination', () => {
});
loginPage.loginToContentServicesUsingUserModel(acsUser);
navigationBarPage.clickTrashcanButton();
trashcanPage.waitForTableBody();
done();
});
it('[C272811] Should be able to set Items per page to 20', () => {
navigationBarPage.clickTrashcanButton();
afterEach((done) => {
browser.refresh();
trashcanPage.waitForTableBody();
done();
});
it('[C272811] Should be able to set Items per page to 20', () => {
paginationPage.selectItemsPerPage(itemsPerPage.twenty);
trashcanPage.waitForTableBody();
@@ -107,8 +111,6 @@ describe('Trashcan - Pagination', () => {
});
it('[C276742] Should be able to set Items per page to 15', () => {
navigationBarPage.clickTrashcanButton();
trashcanPage.waitForTableBody();
paginationPage.selectItemsPerPage(itemsPerPage.fifteen);
trashcanPage.waitForTableBody();
trashcanPage.waitForPagination();
@@ -120,8 +122,6 @@ describe('Trashcan - Pagination', () => {
});
it('[C276743] Should be able to set Items per page to 10', () => {
navigationBarPage.clickTrashcanButton();
trashcanPage.waitForTableBody();
paginationPage.selectItemsPerPage(itemsPerPage.ten);
trashcanPage.waitForTableBody();
trashcanPage.waitForPagination();
@@ -133,8 +133,6 @@ describe('Trashcan - Pagination', () => {
});
it('[C276744] Should be able to set Items per page to 5', () => {
navigationBarPage.clickTrashcanButton();
trashcanPage.waitForTableBody();
paginationPage.selectItemsPerPage(itemsPerPage.five);
trashcanPage.waitForTableBody();
trashcanPage.waitForPagination();