From 0036233fa62487e2593248024c181c1b10b71906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Thu, 24 Feb 2022 11:34:49 +0100 Subject: [PATCH] Chore: fix flaky e2e (#45822) --- .../templating-dashboard-links-and-variables.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/dashboards-suite/templating-dashboard-links-and-variables.spec.ts b/e2e/dashboards-suite/templating-dashboard-links-and-variables.spec.ts index a2b6a252631..c2eb79f780c 100644 --- a/e2e/dashboards-suite/templating-dashboard-links-and-variables.spec.ts +++ b/e2e/dashboards-suite/templating-dashboard-links-and-variables.spec.ts @@ -7,7 +7,6 @@ e2e.scenario({ addScenarioDashBoard: false, skipScenario: false, scenario: () => { - e2e.flows.openDashboard({ uid: 'yBCC3aKGk' }); e2e() .intercept({ method: 'GET', @@ -21,6 +20,8 @@ e2e.scenario({ }) .as('tagsDemoSearch'); + e2e.flows.openDashboard({ uid: 'yBCC3aKGk' }); + // waiting for network requests first e2e().wait(['@tagsTemplatingSearch', '@tagsDemoSearch']); // and then waiting for links to render