mirror of
https://github.com/apache/superset.git
synced 2026-04-12 04:37:49 +00:00
fix(explore): fix y-axis lower bound 0 value (#15091)
This commit is contained in:
@@ -51,3 +51,12 @@ test('calls onChange with correct values', async () => {
|
||||
expect(defaultProps.onChange).toHaveBeenLastCalledWith([1, 2]),
|
||||
);
|
||||
});
|
||||
|
||||
test('receives 0 value', async () => {
|
||||
render(<BoundsControl {...defaultProps} />);
|
||||
const minInput = screen.getAllByRole('spinbutton')[0];
|
||||
userEvent.type(minInput, '0');
|
||||
await waitFor(() =>
|
||||
expect(defaultProps.onChange).toHaveBeenLastCalledWith([0, null]),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user