Test improve (#6146)

* fix

* fix datatable wait method

* slow down isEmpty check

* fix

* fix

* fix
This commit is contained in:
Eugenio Romano
2020-09-23 13:32:27 +01:00
committed by GitHub
parent 98742e898e
commit 3f1a9f4853
12 changed files with 89 additions and 29 deletions

View File

@@ -17,7 +17,6 @@
import {
ApiService,
BrowserActions,
LocalStorageUtil,
LoginPage,
StringUtil,
@@ -83,7 +82,10 @@ describe('Search Checklist Component', () => {
beforeEach(async () => {
await navigationBarPage.clickContentServicesButton();
await BrowserActions.getUrl(`${browser.baseUrl}/search;q=${randomName}`);
await searchBarPage.checkSearchIconIsVisible();
await searchBarPage.clickOnSearchIcon();
await searchBarPage.enterTextAndPressEnter(randomName);
await searchResults.dataTable.waitTillContentLoaded();
});
afterAll(async () => {