From 4a0a879a92fd4bef2f59cc7405502450536aafcd Mon Sep 17 00:00:00 2001 From: "Michael S. molina" Date: Thu, 6 Apr 2023 17:17:18 -0300 Subject: [PATCH] fix: Error on Cypress test --- .../cypress/integration/dashboard/editmode.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts b/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts index 50fd153146e8e..d4e51046bc4d2 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts @@ -725,6 +725,7 @@ describe('Dashboard edit', () => { it('should filter charts', () => { interceptCharts(); + cy.get('[role="checkbox"]').click(); cy.getBySel('dashboard-charts-filter-search-input').type('Unicode'); cy.wait('@filtering'); cy.getBySel('chart-card') @@ -734,6 +735,7 @@ describe('Dashboard edit', () => { }); it('should disable the Save button when undoing', () => { + cy.get('[role="checkbox"]').click(); dragComponent('Unicode Cloud', 'card-title', false); cy.getBySel('header-save-button').should('be.enabled'); discardChanges(); @@ -747,11 +749,13 @@ describe('Dashboard edit', () => { }); it('should add charts', () => { + cy.get('[role="checkbox"]').click(); dragComponent(); cy.getBySel('dashboard-component-chart-holder').should('have.length', 1); }); it('should remove added charts', () => { + cy.get('[role="checkbox"]').click(); dragComponent('Unicode Cloud'); cy.getBySel('dashboard-component-chart-holder').should('have.length', 1); cy.getBySel('dashboard-delete-component-button').click(); @@ -793,6 +797,7 @@ describe('Dashboard edit', () => { }); it('should save', () => { + cy.get('[role="checkbox"]').click(); dragComponent(); cy.getBySel('header-save-button').should('be.enabled'); saveChanges();