From 8929f63e5437710bcca2cd75f8290a1a5b563a41 Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Tue, 30 Jan 2018 11:17:29 +0100 Subject: [PATCH] Properly wait for search list to load --- test/functional/page_objects/discover_page.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/page_objects/discover_page.js b/test/functional/page_objects/discover_page.js index ad6634b1fcb4b..6c652c03c66b4 100644 --- a/test/functional/page_objects/discover_page.js +++ b/test/functional/page_objects/discover_page.js @@ -55,6 +55,7 @@ export function DiscoverPageProvider({ getService, getPageObjects }) { async hasSavedSearch(searchName) { await this.clickLoadSavedSearchButton(); + await PageObjects.header.waitUntilLoadingHasFinished(); const searchLink = await find.byPartialLinkText(searchName); return searchLink.isDisplayed(); }