mirror of
https://github.com/apache/superset.git
synced 2026-06-05 15:49:27 +00:00
fix(explore): DndColumnSelect not handling controls with "multi: false" (#14737)
* fix(explore): DndColumnSelect not handling controls with multi={false}
* Implement translations for singular and plural cases
* Fix test
This commit is contained in:
committed by
GitHub
parent
6d33432b58
commit
d03c608ce1
@@ -31,5 +31,10 @@ const defaultProps = {
|
||||
|
||||
test('renders with default props', () => {
|
||||
render(<DndMetricSelect {...defaultProps} />, { useDnd: true });
|
||||
expect(screen.getByText('Drop column or metric')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('renders with default props and multi = true', () => {
|
||||
render(<DndMetricSelect {...defaultProps} multi />, { useDnd: true });
|
||||
expect(screen.getByText('Drop columns or metrics')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user