From cdf49ec715f57786a8e8a46ddeda9ea31f10a8a6 Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Fri, 7 Apr 2023 12:27:39 +1200 Subject: [PATCH] Update editmode.test.ts --- .../cypress/integration/dashboard/editmode.test.ts | 8 ++++---- .../integration/explore/visualizations/dist_bar.test.js | 2 +- .../integration/explore/visualizations/line.test.ts | 2 +- .../integration/explore/visualizations/treemap.test.js | 4 ++-- .../plugins/legacy-plugin-chart-map-box/Stories.tsx | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) 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 d4e51046bc4d2..3d4e65bdec291 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts @@ -515,7 +515,7 @@ describe('Dashboard edit', () => { // label Anthony cy.get('[data-test-chart-name="Trends"] .line .nv-legend-symbol') .eq(2) - .should('have.css', 'fill', 'rgb(0, 122, 135)'); + .should('have.css', 'fill', 'rgb(70, 4, 121)'); // open main tab and nested tab openTab(0, 0); @@ -526,7 +526,7 @@ describe('Dashboard edit', () => { '[data-test-chart-name="Top 10 California Names Timeseries"] .line .nv-legend-symbol', ) .first() - .should('have.css', 'fill', 'rgb(0, 122, 135)'); + .should('have.css', 'fill', 'rgb(70, 4, 121)'); }); it('should apply the color scheme across main tabs', () => { @@ -560,7 +560,7 @@ describe('Dashboard edit', () => { cy.get('.treemap #rect-sum__SP_POP_TOTL').should( 'have.css', 'fill', - 'rgb(255, 90, 95)', + 'rgb(255, 56, 92)', ); // go to second tab @@ -569,7 +569,7 @@ describe('Dashboard edit', () => { cy.get('[data-test-chart-name="Trends"] .line .nv-legend-symbol') .first() - .should('have.css', 'fill', 'rgb(255, 90, 95)'); + .should('have.css', 'fill', 'rgb(255, 56, 92)'); // go back to first tab openTab(0, 0); diff --git a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/dist_bar.test.js b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/dist_bar.test.js index 770e1e1c04d38..5659d47c6dc74 100644 --- a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/dist_bar.test.js +++ b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/dist_bar.test.js @@ -89,6 +89,6 @@ describe('Visualization > Distribution bar chart', () => { ).should('exist'); cy.get('.dist_bar .nv-legend .nv-legend-symbol') .first() - .should('have.css', 'fill', 'rgb(255, 90, 95)'); + .should('have.css', 'fill', 'rgb(255, 56, 92)'); }); }); diff --git a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/line.test.ts b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/line.test.ts index 5cc398c7f3ef7..317bfe4b6e363 100644 --- a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/line.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/line.test.ts @@ -85,7 +85,7 @@ describe('Visualization > Line', () => { ).should('exist'); cy.get('.line .nv-legend .nv-legend-symbol') .first() - .should('have.css', 'fill', 'rgb(255, 90, 95)'); + .should('have.css', 'fill', 'rgb(255, 56, 92)'); }); it('should work with adhoc metric', () => { diff --git a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/treemap.test.js b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/treemap.test.js index 158aa7b39b15e..b543166756eb6 100644 --- a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/treemap.test.js +++ b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/treemap.test.js @@ -37,9 +37,9 @@ describe('Visualization > Treemap', () => { number_format: '.3s', }; - const level0 = '.chart-container rect[style="fill: rgb(255, 90, 95);"]'; + const level0 = '.chart-container rect[style="fill: rgb(255, 56, 92);"]'; const level1 = '.chart-container rect[style="fill: rgb(123, 0, 81);"]'; - const level2 = '.chart-container rect[style="fill: rgb(0, 122, 135);"]'; + const level2 = '.chart-container rect[style="fill: rgb(70, 4, 121);"]'; function verify(formData) { cy.visitChartByParams(formData); diff --git a/superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-map-box/Stories.tsx b/superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-map-box/Stories.tsx index 6cdca623a1c82..ff70ad7d1c659 100644 --- a/superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-map-box/Stories.tsx +++ b/superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-map-box/Stories.tsx @@ -42,7 +42,7 @@ export const Basic = () => { allColumnsY: 'LAT', clusteringRadius: '60', globalOpacity: 1, - mapboxColor: 'rgb(0, 122, 135)', + mapboxColor: 'rgb(70, 4, 121)', mapboxLabel: [], mapboxStyle: 'mapbox://styles/mapbox/light-v9', pandasAggfunc: 'sum',