mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Add a Async Select that fetches options from given endpoint (#1909)
* Add a Async Select that fetches options from given endpoint * update it statement
This commit is contained in:
@@ -18,14 +18,8 @@ describe('QuerySearch', () => {
|
||||
});
|
||||
const wrapper = shallow(<QuerySearch {...mockedProps} />);
|
||||
|
||||
it('should have four Select', () => {
|
||||
expect(wrapper.find(Select)).to.have.length(4);
|
||||
});
|
||||
|
||||
it('updates userId on user selects change', () => {
|
||||
wrapper.find('[name="select-user"]')
|
||||
.simulate('change', { value: 1 });
|
||||
expect(wrapper.state().userId).to.equal(1);
|
||||
it('should have three Select', () => {
|
||||
expect(wrapper.find(Select)).to.have.length(3);
|
||||
});
|
||||
|
||||
it('updates fromTime on user selects from time', () => {
|
||||
|
||||
Reference in New Issue
Block a user