e2e fix random failing test (#586)

This commit is contained in:
Suzana Dirla
2018-08-29 08:17:05 +01:00
committed by Denys Vuika
parent 823e80d8ed
commit 5759ea1b62
2 changed files with 14 additions and 3 deletions
+5 -3
View File
@@ -167,9 +167,11 @@ describe('Page titles', () => {
});
it('Search Results page - [C280413]', async () => {
await header.searchButton.click();
await page.dataTable.waitForHeader();
await header.searchForText(file);
await header.waitForSearchButton();
await header.searchButton.click();
await page.dataTable.waitForHeader();
await header.waitForSearchBar();
await header.searchForText(file);
expect(await browser.getTitle()).toContain(PAGE_TITLES.SEARCH);
});
});