[ACS-6435] playwright e2e for list views personal files (#3551)

* [ACS-6435] playwright e2e for list views personal files

* e2e test for trash page

* e2e test for trash page

* e2e test for file-libraries page

* e2e test for file-libraries page fix

* e2e test for file-libraries page fix

* e2e test shared recent  page

* e2e test shared recent  page fix

* e2e test review comment fix

* e2e test review fix flaky test fix

* e2e test fail test fix

* e2e test fail  fix

* test code fix

* protractor list-view test enable
This commit is contained in:
Akash Rathod
2023-12-11 17:07:13 +01:00
committed by GitHub
parent 68ee86010a
commit 8b412b28f9
29 changed files with 1009 additions and 1154 deletions

View File

@@ -44,21 +44,13 @@ export function favoritesTests(username: string) {
expect(await favoritePage.pagination.isNextEnabled()).toBe(true);
});
test('[C280114] Items per page values', async ({ favoritePage }) => {
await favoritePage.pagination.openMaxItemsMenu();
expect(await (await favoritePage.pagination.getNthItem(1)).innerText()).toBe('25');
expect(await (await favoritePage.pagination.getNthItem(2)).innerText()).toBe('50');
expect(await (await favoritePage.pagination.getNthItem(3)).innerText()).toBe('100');
await favoritePage.pagination.closeMenu();
});
test('[C280115] current page menu items', async ({ favoritePage }) => {
await favoritePage.pagination.openMaxItemsMenu();
expect(await favoritePage.pagination.getItemsCount()).toBe(3);
await favoritePage.pagination.clickMenuItem('25');
await favoritePage.dataTable.spinnerWaitForReload();
expect(await favoritePage.pagination.getMaxItems()).toContain('25');
expect(await favoritePage.pagination.getTotalPages()).toContain('of 3');
expect(await favoritePage.pagination.getItemsCount()).toBe(3);
await favoritePage.pagination.closeMenu();
await favoritePage.pagination.openMaxItemsMenu();
await favoritePage.pagination.clickMenuItem('50');
@@ -89,9 +81,10 @@ export function favoritesTests(username: string) {
await favoritePage.pagination.clickMenuItem('25');
expect(await favoritePage.pagination.getMaxItems()).toContain('25');
await favoritePage.pagination.clickOnNextPage();
await favoritePage.dataTable.spinnerWaitForReload();
expect(await favoritePage.pagination.getRange()).toContain('Showing 26-50 of 51');
await favoritePage.pagination.clickOnPreviousPage();
await favoritePage.dataTable.spinnerWaitForReload();
expect(await favoritePage.pagination.getRange()).toContain('Showing 1-25 of 51');
});

View File

@@ -44,20 +44,13 @@ export function personalFilesTests(userName: string, parentName: string) {
expect(await personalFiles.pagination.isNextEnabled()).toBe(true);
});
test('[C280078] Items per page values', async ({ personalFiles }) => {
await personalFiles.pagination.openMaxItemsMenu();
expect(await (await personalFiles.pagination.getNthItem(1)).innerText()).toBe('25');
expect(await (await personalFiles.pagination.getNthItem(2)).innerText()).toBe('50');
expect(await (await personalFiles.pagination.getNthItem(3)).innerText()).toBe('100');
await personalFiles.closeMenu();
});
test('[C280079] current page menu items', async ({ personalFiles }) => {
await personalFiles.pagination.openMaxItemsMenu();
expect(await personalFiles.pagination.getItemsCount()).toBe(3);
await personalFiles.pagination.clickMenuItem('25');
await personalFiles.dataTable.spinnerWaitForReload();
expect(await personalFiles.pagination.getMaxItems()).toContain('25');
expect(await personalFiles.pagination.getTotalPages()).toContain('of 3');
expect(await personalFiles.pagination.getItemsCount()).toBe(3);
await personalFiles.pagination.openMaxItemsMenu();
await personalFiles.pagination.clickMenuItem('50');
@@ -86,9 +79,10 @@ export function personalFilesTests(userName: string, parentName: string) {
await personalFiles.pagination.clickMenuItem('25');
expect(await personalFiles.pagination.getMaxItems()).toContain('25');
await personalFiles.pagination.clickOnNextPage();
await personalFiles.dataTable.spinnerWaitForReload();
expect(await personalFiles.pagination.getRange()).toContain('Showing 26-50 of 51');
await personalFiles.pagination.clickOnPreviousPage();
await personalFiles.dataTable.spinnerWaitForReload();
expect(await personalFiles.pagination.getRange()).toContain('Showing 1-25 of 51');
});