The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Wait for metadata to load before waiting for query" (#62477)
Fraser034eed55291c
diff --git a/e2e/support/helpers/e2e-misc-helpers.js b/e2e/support/helpers/e2e-misc-helpers.jsindex 461cf41b47e..c89d1868682 100644--- a/e2e/support/helpers/e2e-misc-helpers.js+++ b/e2e/support/helpers/e2e-misc-helpers.js@@ -112,12 +112,15 @@ export function visitQuestion(questionIdOrAlias) {function visitQuestionById(id) {// In case we use this function multiple times in a test, make sure aliases are unique for each questionconst alias = "cardQuery" + id;+ const metadataAlias = `${alias}-queryMetadata`;// We need to use the wildcard because endpoint for pivot tables has the following format: `/api/card/pivot/${id}/query`cy.intercept("POST", `/api/card/**/${id}/query`).as(alias);+ cy.intercept("GET", `/api/card/**/${id}/query_metadata`).as(metadataAlias);cy.visit(`/question/${id}`);+ cy.wait("@" + metadataAlias);cy.wait("@" + alias);}