mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
chore: E2E tests for Drill to Detail supported Charts (#21681)
This commit is contained in:
@@ -19,6 +19,11 @@
|
||||
import { QueryFormData } from '@superset-ui/core';
|
||||
|
||||
describe('Visualization > Histogram', () => {
|
||||
beforeEach(() => {
|
||||
cy.preserveLogin();
|
||||
cy.intercept('POST', '/superset/explore_json/**').as('getJson');
|
||||
});
|
||||
|
||||
const HISTOGRAM_FORM_DATA: QueryFormData = {
|
||||
datasource: '3__table',
|
||||
viz_type: 'histogram',
|
||||
@@ -43,11 +48,6 @@ describe('Visualization > Histogram', () => {
|
||||
cy.verifySliceSuccess({ waitAlias: '@getJson', chartSelector: 'svg' });
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
cy.login();
|
||||
cy.intercept('POST', '/superset/explore_json/**').as('getJson');
|
||||
});
|
||||
|
||||
it('should work without groupby', () => {
|
||||
verify(HISTOGRAM_FORM_DATA);
|
||||
cy.get('.chart-container svg .vx-bar').should(
|
||||
@@ -86,6 +86,8 @@ describe('Visualization > Histogram', () => {
|
||||
});
|
||||
|
||||
it('should allow type to search color schemes and apply the scheme', () => {
|
||||
verify(HISTOGRAM_FORM_DATA);
|
||||
|
||||
cy.get('#controlSections-tab-display').click();
|
||||
cy.get('.Control[data-test="color_scheme"]').scrollIntoView();
|
||||
cy.get('.Control[data-test="color_scheme"] input[type="search"]')
|
||||
|
||||
Reference in New Issue
Block a user