mirror of
https://github.com/apache/superset.git
synced 2026-04-22 09:35:23 +00:00
chore: Audit E2E tests for color schemes in Dashboard and Explore (#20807)
* Update properties tests * Update selectors * Verify charts changing colors * Test shared and label colors * Update dashboard edit test * Enhance viz tests * Remove chart ids * Update color
This commit is contained in:
@@ -107,4 +107,20 @@ describe('Visualization > Bubble', () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
it('should allow type to search color schemes and apply the scheme', () => {
|
||||
cy.get('.Control[data-test="color_scheme"]').scrollIntoView();
|
||||
cy.get('.Control[data-test="color_scheme"] input[type="search"]')
|
||||
.focus()
|
||||
.type('supersetColors{enter}');
|
||||
cy.get(
|
||||
'.Control[data-test="color_scheme"] .ant-select-selection-item ul[data-test="supersetColors"]',
|
||||
).should('exist');
|
||||
cy.get('[data-test=run-query-button]').click();
|
||||
cy.get('.bubble .nv-legend .nv-legend-symbol').should(
|
||||
'have.css',
|
||||
'fill',
|
||||
'rgb(31, 168, 201)',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user