mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA-1766] disable selenium_promise_manager (#1061)
* disable selenium_promise_manager and fix some methods * some more changes
This commit is contained in:
committed by
Denys Vuika
parent
f051f01279
commit
7df8d8a4ae
@@ -83,11 +83,9 @@ describe('Pagination on multiple pages on Favorites', () => {
|
||||
|
||||
it('Items per page values - [C280114]', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
const [ first, second, third ] = [1, 2, 3]
|
||||
.map(async nth => await pagination.menu.getNthItem(nth).getText());
|
||||
expect(first).toBe('25');
|
||||
expect(second).toBe('50');
|
||||
expect(third).toBe('100');
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
expect(await pagination.menu.getNthItem(3).getText()).toBe('100');
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
|
||||
@@ -78,11 +78,9 @@ describe('Pagination on multiple pages', () => {
|
||||
|
||||
it('Items per page values - [C280087]', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
const [ first, second, third ] = [1, 2, 3]
|
||||
.map(async nth => await pagination.menu.getNthItem(nth).getText());
|
||||
expect(first).toBe('25');
|
||||
expect(second).toBe('50');
|
||||
expect(third).toBe('100');
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
expect(await pagination.menu.getNthItem(3).getText()).toBe('100');
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
@@ -181,11 +179,9 @@ describe('Pagination on multiple pages', () => {
|
||||
|
||||
it('Items per page values - [C291876]', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
const [ first, second, third ] = [1, 2, 3]
|
||||
.map(async nth => await pagination.menu.getNthItem(nth).getText());
|
||||
expect(first).toBe('25');
|
||||
expect(second).toBe('50');
|
||||
expect(third).toBe('100');
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
expect(await pagination.menu.getNthItem(3).getText()).toBe('100');
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ describe('Pagination on multiple pages on Personal Files', () => {
|
||||
beforeEach(async (done) => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(parent);
|
||||
await dataTable.waitForHeader();
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -79,11 +80,9 @@ describe('Pagination on multiple pages on Personal Files', () => {
|
||||
|
||||
it('Items per page values - [C280078]', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
const [ first, second, third ] = [1, 2, 3]
|
||||
.map(async nth => await pagination.menu.getNthItem(nth).getText());
|
||||
expect(first).toBe('25');
|
||||
expect(second).toBe('50');
|
||||
expect(third).toBe('100');
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
expect(await pagination.menu.getNthItem(3).getText()).toBe('100');
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
@@ -93,7 +92,7 @@ describe('Pagination on multiple pages on Personal Files', () => {
|
||||
expect(await pagination.getMaxItems()).toContain('25');
|
||||
expect(await pagination.getTotalPages()).toContain('of 5');
|
||||
await pagination.openCurrentPageMenu();
|
||||
expect(pagination.menu.getItemsCount()).toBe(5);
|
||||
expect(await pagination.menu.getItemsCount()).toBe(5);
|
||||
await pagination.menu.closeMenu();
|
||||
|
||||
await pagination.openMaxItemsMenu();
|
||||
@@ -101,7 +100,7 @@ describe('Pagination on multiple pages on Personal Files', () => {
|
||||
expect(await pagination.getMaxItems()).toContain('50');
|
||||
expect(await pagination.getTotalPages()).toContain('of 3');
|
||||
await pagination.openCurrentPageMenu();
|
||||
expect(pagination.menu.getItemsCount()).toBe(3);
|
||||
expect(await pagination.menu.getItemsCount()).toBe(3);
|
||||
await pagination.menu.closeMenu();
|
||||
|
||||
await pagination.openMaxItemsMenu();
|
||||
|
||||
@@ -79,11 +79,9 @@ describe('Pagination on multiple pages on Recent Files', () => {
|
||||
|
||||
it('Items per page values - [C280105]', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
const [ first, second, third ] = [1, 2, 3]
|
||||
.map(async nth => await pagination.menu.getNthItem(nth).getText());
|
||||
expect(first).toBe('25');
|
||||
expect(second).toBe('50');
|
||||
expect(third).toBe('100');
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
expect(await pagination.menu.getNthItem(3).getText()).toBe('100');
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
@@ -140,8 +138,8 @@ describe('Pagination on multiple pages on Recent Files', () => {
|
||||
await dataTable.waitForHeader();
|
||||
await pagination.clickPrevious();
|
||||
await dataTable.waitForHeader();
|
||||
expect(pagination.getRange()).toContain('1-25 of 101');
|
||||
expect(dataTable.isItemPresent('file-88')).toBe(true, 'File not found on page');
|
||||
expect(await pagination.getRange()).toContain('1-25 of 101');
|
||||
expect(await dataTable.isItemPresent('file-88')).toBe(true, 'File not found on page');
|
||||
|
||||
await pagination.resetToDefaultPageNumber();
|
||||
});
|
||||
|
||||
@@ -81,11 +81,9 @@ describe('Pagination on multiple pages on Search Results', () => {
|
||||
|
||||
it('Items per page values - [C290126]', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
const [ first, second, third ] = [1, 2, 3]
|
||||
.map(async nth => await pagination.menu.getNthItem(nth).getText());
|
||||
expect(first).toBe('25');
|
||||
expect(second).toBe('50');
|
||||
expect(third).toBe('100');
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
expect(await pagination.menu.getNthItem(3).getText()).toBe('100');
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
@@ -140,7 +138,7 @@ describe('Pagination on multiple pages on Search Results', () => {
|
||||
await dataTable.waitForBody();
|
||||
await pagination.clickPrevious();
|
||||
await dataTable.waitForBody();
|
||||
expect(pagination.getRange()).toContain('1-25 of 101');
|
||||
expect(await pagination.getRange()).toContain('1-25 of 101');
|
||||
|
||||
await pagination.resetToDefaultPageNumber();
|
||||
});
|
||||
|
||||
@@ -82,12 +82,9 @@ describe('Pagination on multiple pages on Shared Files', () => {
|
||||
|
||||
it('Items per page values - [C280096]', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
const [ first, second, third ] = [1, 2, 3]
|
||||
.map(async nth => await pagination.menu.getNthItem(nth).getText());
|
||||
expect(first).toBe('25');
|
||||
expect(second).toBe('50');
|
||||
expect(third).toBe('100');
|
||||
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
expect(await pagination.menu.getNthItem(3).getText()).toBe('100');
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
|
||||
@@ -78,11 +78,9 @@ describe('Pagination on multiple pages on Trash', () => {
|
||||
|
||||
it('Items per page values - [C280123]', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
const [ first, second, third ] = [1, 2, 3]
|
||||
.map(async nth => await pagination.menu.getNthItem(nth).getText());
|
||||
expect(first).toBe('25');
|
||||
expect(second).toBe('50');
|
||||
expect(third).toBe('100');
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
expect(await pagination.menu.getNthItem(3).getText()).toBe('100');
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
@@ -130,8 +128,8 @@ describe('Pagination on multiple pages on Trash', () => {
|
||||
it('navigate to next and previous pages - [C280128]', async () => {
|
||||
await pagination.clickNext();
|
||||
await dataTable.waitForHeader();
|
||||
expect(pagination.getRange()).toContain('26-50 of 101');
|
||||
expect(dataTable.isItemPresent('file-70')).toBe(true, 'File not found on page');
|
||||
expect(await pagination.getRange()).toContain('26-50 of 101');
|
||||
expect(await dataTable.isItemPresent('file-70')).toBe(true, 'File not found on page');
|
||||
await pagination.resetToDefaultPageNumber();
|
||||
|
||||
await pagination.openCurrentPageMenu();
|
||||
|
||||
Reference in New Issue
Block a user