Rebalance suites conf to be less error prone (#1819)

* rebalance suites conf to be less error prone

* shared api - wait for specific files instead of totalItems

* remove unused

* - make search api wait calls more stable on parallel runs
- remove not needed workaround from closeMoreMenu

* reorganize test suites
a few more test stabilisations

* improve copy tests for parallel running

* more changes to consider parallel running

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
This commit is contained in:
Eugenio Romano
2020-12-04 12:39:39 +00:00
committed by GitHub
parent 321bcb1247
commit ad58be3d05
65 changed files with 745 additions and 1206 deletions

View File

@@ -45,7 +45,6 @@ describe('Pagination on multiple pages : ', () => {
const userApi = new RepoClient(username, username);
const adminApiActions = new AdminActions();
let initialSharedTotalItems: number;
let initialFavoritesTotalItems: number;
let initialSearchTotalItems: number;
@@ -57,7 +56,6 @@ describe('Pagination on multiple pages : ', () => {
parentId = (await userApi.nodes.createFolder(parent)).entry.id;
filesIds = (await userApi.nodes.createFiles(files, parent)).list.entries.map((entries: any) => entries.entry.id);
initialSharedTotalItems = await userApi.shared.getSharedLinksTotalItems();
initialFavoritesTotalItems = await userApi.favorites.getFavoritesTotalItems();
await userApi.shared.shareFilesByIds(filesIds);
await userApi.favorites.addFavoritesByIds('file', filesIds);
@@ -87,7 +85,7 @@ describe('Pagination on multiple pages : ', () => {
describe('on Shared Files', () => {
beforeAll(async () => {
await userApi.shared.waitForApi({ expect: initialSharedTotalItems + 51 });
await userApi.shared.waitForFilesToBeShared(filesIds);
});
sharedFilesTests(username);
});