Unexclude due the timeout (#1805)

* change base method to wait

* fix import

* reduce log

* fix

* data placeholder

* fix

* fix

* fix

* fix style

* change visibility with common method

* fix

* use common get value method

* remove unused import

* fix a few incorrect api calls

* - use separate variables

* correctly wait for items after they have been created

* use browseraction click

* Exclude failing tests

* increase timeout and some fix

* check env before execute test

* simplify conf

* exclude

* rerun

* logs

* refactor pagination tests to use only 51 items
take out pagination tests into a separate stage

* fix check

* remove hardcoded total items. other shared files might already exist

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
Co-authored-by: iuliaib <iulia.burca@ness.com>
This commit is contained in:
Eugenio Romano
2020-11-19 16:07:57 +00:00
committed by GitHub
parent 509c6b6f75
commit 8308573f3c
82 changed files with 815 additions and 750 deletions

View File

@@ -37,7 +37,7 @@ describe('Pagination on multiple pages : ', () => {
const parent = `parent-${random}`;
let parentId: string;
const files = Array(101)
const files = Array(51)
.fill('my-file')
.map((name, index): string => `${name}-${index + 1}-${random}.txt`);
let filesIds: string[];
@@ -61,7 +61,7 @@ describe('Pagination on multiple pages : ', () => {
initialFavoritesTotalItems = await userApi.favorites.getFavoritesTotalItems();
await userApi.shared.shareFilesByIds(filesIds);
await userApi.favorites.addFavoritesByIds('file', filesIds);
}, 150000);
}, 300000);
afterAll(async () => {
await userApi.nodes.deleteNodeById(parentId);
@@ -73,29 +73,29 @@ describe('Pagination on multiple pages : ', () => {
describe('on Recent Files', () => {
beforeAll(async () => {
await userApi.search.waitForApi(username, { expect: initialSearchTotalItems + 101 });
}, 120000);
await userApi.search.waitForApi(username, { expect: initialSearchTotalItems + 51 });
}, 300000);
recentFilesTests(username);
});
describe('on Search Results', () => {
beforeAll(async () => {
await userApi.search.waitForApi(username, { expect: initialSearchTotalItems + 101 });
}, 120000);
await userApi.search.waitForApi(username, { expect: initialSearchTotalItems + 51 });
}, 300000);
searchResultsTests(username);
});
describe('on Shared Files', () => {
beforeAll(async () => {
await userApi.shared.waitForApi({ expect: initialSharedTotalItems + 101 });
}, 120000);
await userApi.shared.waitForApi({ expect: initialSharedTotalItems + 51 });
}, 300000);
sharedFilesTests(username);
});
describe('on Favorites', () => {
beforeAll(async () => {
await userApi.favorites.waitForApi({ expect: initialFavoritesTotalItems + 101 });
}, 120000);
await userApi.favorites.waitForApi({ expect: initialFavoritesTotalItems + 51 });
}, 300000);
favoritesTests(username);
});
});