From 0e77e3598cfe6b6f9c416a9ff1eff46b62430b6f Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Mon, 20 Jul 2020 17:58:43 +0200 Subject: [PATCH] fix flakiness --- x-pack/test/functional/apps/graph/graph.ts | 7 +++++-- x-pack/test/functional/page_objects/graph_page.ts | 7 ------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/x-pack/test/functional/apps/graph/graph.ts b/x-pack/test/functional/apps/graph/graph.ts index 820656aa94c2..f6702b20e592 100644 --- a/x-pack/test/functional/apps/graph/graph.ts +++ b/x-pack/test/functional/apps/graph/graph.ts @@ -134,12 +134,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.graph.isolateEdge('test', '/test/wp-admin/'); + await this.stopLayout(); + await PageObjects.common.sleep(1000); const testTestWpAdminBlogEdge = edges.find( ({ sourceNode, targetNode }) => targetNode.label === '/test/wp-admin/' && sourceNode.label === 'test' )!; - - await PageObjects.graph.clickEdge(testTestWpAdminBlogEdge); + await testTestWpAdminBlogEdge.element.click(); + await PageObjects.common.sleep(1000); + await this.startLayout(); const vennTerm1 = await PageObjects.graph.getVennTerm1(); log.debug('vennTerm1 = ' + vennTerm1); diff --git a/x-pack/test/functional/page_objects/graph_page.ts b/x-pack/test/functional/page_objects/graph_page.ts index 7e7ed0e511a4..fe049327fe38 100644 --- a/x-pack/test/functional/page_objects/graph_page.ts +++ b/x-pack/test/functional/page_objects/graph_page.ts @@ -106,13 +106,6 @@ export function GraphPageProvider({ getService, getPageObjects }: FtrProviderCon await testSubjects.click('graphRemoveSelection'); } - async clickEdge(edge: Edge) { - await this.stopLayout(); - await PageObjects.common.sleep(1000); - await edge.element.click(); - await this.startLayout(); - } - async stopLayout() { if (await testSubjects.exists('graphPauseLayout')) { await testSubjects.click('graphPauseLayout');