From 03886f9386cf373e5b3c75e38b81be3eef0552da Mon Sep 17 00:00:00 2001 From: geido Date: Tue, 4 Oct 2022 17:04:52 +0300 Subject: [PATCH] Enhance test --- .../integration/dashboard/drilltodetail.test.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/superset-frontend/cypress-base/cypress/integration/dashboard/drilltodetail.test.ts b/superset-frontend/cypress-base/cypress/integration/dashboard/drilltodetail.test.ts index 9dd9f9eb26779..cbd29001afea2 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard/drilltodetail.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/dashboard/drilltodetail.test.ts @@ -196,8 +196,17 @@ describe('Drill to detail modal', () => { cy.getBySel('filter-val').should('not.exist'); - // TODO(geido): opens the modal by clicking on the trendline - // proved to be flaky, requires deeper investigation + closeModal(); + + // opens the modal by clicking on the trendline + cy.get("[data-test-viz-type='big_number'] canvas").then($canvas => { + cy.wrap($canvas).scrollIntoView().click(1, 14).rightclick(1, 14); + + openModalFromChartContext('Drill to detail by 1965'); + + // checking the filter + cy.getBySel('filter-val').should('contain', '1965'); + }); }); });