mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
Improve visualize modal test coverage (#2811)
add unit tests for VisualizeModal component
This commit is contained in:
@@ -22,3 +22,10 @@ export const TIME_OPTIONS = [
|
||||
'90 days ago',
|
||||
'1 year ago',
|
||||
];
|
||||
|
||||
export const VISUALIZE_VALIDATION_ERRORS = {
|
||||
REQUIRE_CHART_TYPE: 'Pick a chart type!',
|
||||
REQUIRE_TIME: 'To use this chart type you need at least one column flagged as a date',
|
||||
REQUIRE_DIMENSION: 'To use this chart type you need at least one dimension',
|
||||
REQUIRE_AGGREGATION_FUNCTION: 'To use this chart type you need at least one aggregation function',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user