From 8a06a9d2a21f5ca14ee1cefefb1f7ae36c37d60d Mon Sep 17 00:00:00 2001 From: Lily Kuang Date: Thu, 27 Aug 2020 10:54:55 -0700 Subject: [PATCH] get card view on chart list and dashboard list --- .../cypress/integration/chart_list/card_view.test.ts | 1 + .../cypress-base/cypress/integration/chart_list/filter.test.ts | 1 + .../cypress/integration/dashboard_list/card_view.test.ts | 1 + .../cypress/integration/dashboard_list/filter.test.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/superset-frontend/cypress-base/cypress/integration/chart_list/card_view.test.ts b/superset-frontend/cypress-base/cypress/integration/chart_list/card_view.test.ts index eda296f956a13..7674acbc1872f 100644 --- a/superset-frontend/cypress-base/cypress/integration/chart_list/card_view.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/chart_list/card_view.test.ts @@ -23,6 +23,7 @@ describe('chart card view', () => { cy.login(); cy.server(); cy.visit(CHART_LIST); + cy.get('[data-test="card-view"]').click(); }); it('should load cards', () => { diff --git a/superset-frontend/cypress-base/cypress/integration/chart_list/filter.test.ts b/superset-frontend/cypress-base/cypress/integration/chart_list/filter.test.ts index 39dafc1a44ce3..b4b57c312fbd9 100644 --- a/superset-frontend/cypress-base/cypress/integration/chart_list/filter.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/chart_list/filter.test.ts @@ -23,6 +23,7 @@ describe('chart filters', () => { cy.login(); cy.server(); cy.visit(CHART_LIST); + cy.get('[data-test="card-view"]').click(); }); it('should filter by owners correctly', () => { diff --git a/superset-frontend/cypress-base/cypress/integration/dashboard_list/card_view.test.ts b/superset-frontend/cypress-base/cypress/integration/dashboard_list/card_view.test.ts index 11a45e2d100d7..42f790f34b7e1 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard_list/card_view.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/dashboard_list/card_view.test.ts @@ -23,6 +23,7 @@ describe('Dashboard card view', () => { cy.login(); cy.server(); cy.visit(DASHBOARD_LIST); + cy.get('[data-test="card-view"]').click(); }); it('should load cards', () => { diff --git a/superset-frontend/cypress-base/cypress/integration/dashboard_list/filter.test.ts b/superset-frontend/cypress-base/cypress/integration/dashboard_list/filter.test.ts index 0a932d40f6a7e..f272c3804ae3d 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard_list/filter.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/dashboard_list/filter.test.ts @@ -23,6 +23,7 @@ describe('dashboard filters', () => { cy.login(); cy.server(); cy.visit(DASHBOARD_LIST); + cy.get('[data-test="card-view"]').click(); }); it('should filter by owners correctly', () => {