From 8dac3fbd630207d436be2744922f248fe21caaac Mon Sep 17 00:00:00 2001 From: LeeDr Date: Thu, 23 Aug 2018 20:20:12 -0500 Subject: [PATCH] Wait to find a gear in the visualization after clicking Edit --- test/functional/page_objects/dashboard_page.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/functional/page_objects/dashboard_page.js b/test/functional/page_objects/dashboard_page.js index 7f05ed950c72a3..7c1235206e9951 100644 --- a/test/functional/page_objects/dashboard_page.js +++ b/test/functional/page_objects/dashboard_page.js @@ -179,9 +179,7 @@ export function DashboardPageProvider({ getService, getPageObjects }) { await retry.waitFor('not in view mode', async () => ( !await this.getIsInViewMode() )); - // Lee.Dr the above code still isn't fixing the failure that comes after this - // Adding 1s sleep until we understand how to check when switching to edit mode is complete. - await PageObjects.common.sleep(1011); + await find.byCssSelector('#gear-a'); } async getIsInViewMode() {