mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[explore] raise attention to row_limit being reached (#6252)
* [explore] raise attention to row_limit being reached * fix test
This commit is contained in:
committed by
GitHub
parent
fb13218472
commit
08cdb09714
@@ -20,12 +20,12 @@ describe('RowCountLabel', () => {
|
||||
expect(wrapper.find(Label)).toHaveLength(1);
|
||||
expect(wrapper.find(TooltipWrapper)).toHaveLength(1);
|
||||
});
|
||||
it('renders a warning when limit is reached', () => {
|
||||
it('renders a danger when limit is reached', () => {
|
||||
const props = {
|
||||
rowcount: 100,
|
||||
limit: 100,
|
||||
};
|
||||
const wrapper = shallow(<RowCountLabel {...props} />);
|
||||
expect(wrapper.find(Label).first().props().bsStyle).toBe('warning');
|
||||
expect(wrapper.find(Label).first().props().bsStyle).toBe('danger');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user