Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix flaky header popover test (#62324)

Fraserf5596149929b
diff --git a/e2e/support/helpers/e2e-ad-hoc-question-helpers.js b/e2e/support/helpers/e2e-ad-hoc-question-helpers.js
index 9cc708392c2..36c07bb9b9f 100644
--- a/e2e/support/helpers/e2e-ad-hoc-question-helpers.js
+++ b/e2e/support/helpers/e2e-ad-hoc-question-helpers.js
@@ -135,6 +135,8 @@ export function visitQuestionAdhoc(
) {
const questionMode = mode === "notebook" ? "/notebook" : "";
+ cy.intercept("POST", "/api/dataset/query_metadata").as("queryMetadata");
+
const [url, alias] = getInterceptDetails(question, mode, autorun);
cy.intercept(url).as(alias);
@@ -144,6 +146,7 @@ export function visitQuestionAdhoc(
runQueryIfNeeded(question, autorun);
if (mode !== "notebook" && !skipWaiting) {
+ cy.wait("@queryMetadata");
return cy.wait("@" + alias).then((xhr) => callback && callback(xhr));
}
diff --git a/e2e/test/scenarios/visualizations-tabular/visualizations-tabular-reproductions.cy.spec.js b/e2e/test/scenarios/visualizations-tabular/visualizations-tabular-reproductions.cy.spec.js
index de51c1ec5e7..eef9ae8e294 100644
--- a/e2e/test/scenarios/visualizations-tabular/visualizations-tabular-reproductions.cy.spec.js
+++ b/e2e/test/scenarios/visualizations-tabular/visualizations-tabular-reproductions.cy.spec.js
@@ -1467,7 +1467,7 @@ WHERE NOT (
});
});
-describe("issue 55673", { tags: "@flaky" }, () => {
+describe("issue 55673", () => {
beforeEach(() => {
H.restore();
cy.signInAsNormalUser();