Skip to content

Commit

Permalink
ACS-7577 refactor e2e test [ci:force]
Browse files Browse the repository at this point in the history
  • Loading branch information
DaryaBalvanovich authored and DaryaBalvanovich committed Apr 23, 2024
1 parent 35cabe7 commit 233f40d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ describe('Document List - Pagination', () => {
});

it('[C260107] Should not display pagination bar when a folder is empty', async () => {
await paginationPage.selectItemsPerPage('5');
await paginationPage.selectItemsPerPage('5');
await contentServicesPage.contentList.dataTablePage().waitTillContentLoaded();

Expand Down Expand Up @@ -375,18 +374,23 @@ describe('Document List - Pagination', () => {
}
await browser.refresh();
await contentServicesPage.contentList.dataTablePage().waitTillContentLoaded();

await expect(await paginationPage.getPaginationRange()).toEqual(`Showing 1-5 of ${numberOfSubFolders}`);

await paginationPage.clickOnNextPage();
await expect(await paginationPage.getPaginationRange()).toEqual(`Showing 6-${numberOfSubFolders} of ${numberOfSubFolders}`);
const nodeIdSubFolder6 = await contentServicesPage.getAttributeValueForElement('subfolder6', 'Node id');

for (let i = 0; i < numberOfSubFolders; i++) {
await uploadActions.createFolder('subfolder' + (i + 1), nodeIdSubFolder6);
}
await browser.refresh();
await contentServicesPage.contentList.dataTablePage().waitTillContentLoaded();

await expect(await paginationPage.getPaginationRange()).toEqual(`Showing 1-5 of ${numberOfSubFolders}`);
await expect(await paginationPage.getCurrentPage()).toEqual('Page 1');
await expect(await paginationPage.getTotalPages()).toEqual('of 2');

await contentServicesPage.deleteSubFolderUnderRoot(newFolderModel.name, folderTwoModel.name);
});

Expand Down

0 comments on commit 233f40d

Please sign in to comment.