You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2023/04/06 21:27:56 UTC

[superset] branch master updated: fix: Error on Cypress test (#23617)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 8ef49a5789 fix: Error on Cypress test (#23617)
8ef49a5789 is described below

commit 8ef49a578980dfc166a61f944f3c336fed17f466
Author: Michael S. Molina <70...@users.noreply.github.com>
AuthorDate: Thu Apr 6 18:27:48 2023 -0300

    fix: Error on Cypress test (#23617)
---
 .../cypress-base/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 50fd153146..d4e51046bc 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();