From 8d8ae878994a1d8821d54e215446115b96a21091 Mon Sep 17 00:00:00 2001
From: Kamil Mielnik <kamil@kamilmielnik.com>
Date: Fri, 8 Nov 2024 16:52:19 +0700
Subject: [PATCH] Fix flaky native query drill test (#49745)

* Try to fix flake

* See if timeout is necessary

* Revert "See if timeout is necessary"

This reverts commit 181f3c5e63ae4e86d12d3c214c7f97b7261f3f51.

* Revert change for coordinates filter
---
 e2e/test/scenarios/question/native-query-drill.cy.spec.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/e2e/test/scenarios/question/native-query-drill.cy.spec.ts b/e2e/test/scenarios/question/native-query-drill.cy.spec.ts
index ae169d541ed..4c3e69a3b3d 100644
--- a/e2e/test/scenarios/question/native-query-drill.cy.spec.ts
+++ b/e2e/test/scenarios/question/native-query-drill.cy.spec.ts
@@ -7,6 +7,7 @@ import {
   createNativeQuestion,
   createNativeQuestionAndDashboard,
   echartsContainer,
+  ensureEchartsContainerHasSvg,
   getDashboardCard,
   modal,
   popover,
@@ -451,6 +452,7 @@ describe("scenarios > question > native query drill", () => {
 });
 
 function applyBrushFilter({ left, right }: { left: number; right: number }) {
+  ensureEchartsContainerHasSvg();
   cy.wait(100); // wait to avoid grabbing the svg before the chart redraws
 
   echartsContainer()
-- 
GitLab