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 focus in the drill popover before Escape in chart drill e2e (#84641)
Nemanja Glumac0f4d76cce008
diff --git a/e2e/test/scenarios/visualizations/drillthroughs/chart_drill.cy.spec.js b/e2e/test/scenarios/visualizations/drillthroughs/chart_drill.cy.spec.jsindex acc1941ada8..f7a0cbfefc9 100644--- a/e2e/test/scenarios/visualizations/drillthroughs/chart_drill.cy.spec.js+++ b/e2e/test/scenarios/visualizations/drillthroughs/chart_drill.cy.spec.js@@ -64,6 +64,8 @@ describe("scenarios > visualizations > drillthroughs > chart drill", () => {cy.findByText("Month").should("be.visible");});+ // The popover closes on Escape only when the focus is in it+ H.popover().find(":focus").should("exist");cy.realPress("Escape");H.popover({ skipVisibilityCheck: true }).should("not.exist");H.echartsTriggerBlur();@@ -846,6 +848,8 @@ function assertSeriesDrills({ cardIndex, color, underlyingRecords }) {cy.findByText("See this year by quarter").should("be.visible");cy.findByText(underlyingRecords).should("be.visible");});+ // The popover closes on Escape only when the focus is in it+ H.popover().find(":focus").should("exist");cy.realPress("Escape");H.popover({ skipVisibilityCheck: true }).should("not.exist");}