mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
feat(explore): Remove default for time range filter and Metrics (#14661)
* feat(explore): Remove default for time range filter and Metrics * Merge errors with same messages * Fix e2e test * Rename a variable * Bump packages * Fix unit tests
This commit is contained in:
committed by
GitHub
parent
add35f9fe4
commit
63dc035d6a
@@ -29,7 +29,7 @@ describe('Visualization > Line', () => {
|
||||
it('should show validator error when no metric', () => {
|
||||
const formData = { ...LINE_CHART_DEFAULTS, metrics: [] };
|
||||
cy.visitChartByParams(JSON.stringify(formData));
|
||||
cy.get('.ant-alert-warning').contains(`"Metrics" cannot be empty`);
|
||||
cy.get('.ant-alert-warning').contains(`Metrics: cannot be empty`);
|
||||
});
|
||||
|
||||
it('should preload mathjs', () => {
|
||||
@@ -43,7 +43,7 @@ describe('Visualization > Line', () => {
|
||||
it('should not show validator error when metric added', () => {
|
||||
const formData = { ...LINE_CHART_DEFAULTS, metrics: [] };
|
||||
cy.visitChartByParams(JSON.stringify(formData));
|
||||
cy.get('.ant-alert-warning').contains(`"Metrics" cannot be empty`);
|
||||
cy.get('.ant-alert-warning').contains(`Metrics: cannot be empty`);
|
||||
cy.get('.text-danger').contains('Metrics');
|
||||
|
||||
cy.get('[data-test=metrics]')
|
||||
@@ -62,6 +62,8 @@ describe('Visualization > Line', () => {
|
||||
});
|
||||
|
||||
it('should allow negative values in Y bounds', () => {
|
||||
const formData = { ...LINE_CHART_DEFAULTS, metrics: [NUM_METRIC] };
|
||||
cy.visitChartByParams(JSON.stringify(formData));
|
||||
cy.get('#controlSections-tab-display').click();
|
||||
cy.get('span').contains('Y Axis Bounds').scrollIntoView();
|
||||
cy.get('input[placeholder="Min"]').type('-0.1', { delay: 100 });
|
||||
|
||||
Reference in New Issue
Block a user