Skip to content

Commit

Permalink
Update editmode.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley committed Apr 7, 2023
1 parent 2e07b6f commit c4c9605
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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', () => {
Expand Down Expand Up @@ -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
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ describe('Visualization > Treemap', () => {
number_format: '.3s',
};

const level0 = '.chart-container rect[style="fill: rgb(255, 90, 95);"]';
const level1 = '.chart-container rect[style="fill: rgb(123, 0, 81);"]';
const level2 = '.chart-container rect[style="fill: rgb(0, 122, 135);"]';
const level0 = '.chart-container rect[style="fill: rgb(255, 56, 92);"]';
const level1 = '.chart-container rect[style="fill: rgb(146, 23, 77);"]';
const level2 = '.chart-container rect[style="fill: rgb(70, 4, 121);"]';

function verify(formData) {
cy.visitChartByParams(formData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c4c9605

Please sign in to comment.