mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[Dashboard] Keeping refresh frequency value in Dashboard (#5741)
* Keeping refresh frequency value in Dashboard * fix eslint * Fix arrow function * Update ut * start refresh when load dashboard
This commit is contained in:
@@ -24,6 +24,7 @@ import RefreshIntervalModal from '../../../../src/dashboard/components/RefreshIn
|
||||
describe('RefreshIntervalModal', () => {
|
||||
const mockedProps = {
|
||||
triggerNode: <i className="fa fa-edit" />,
|
||||
refreshFrequency: 10,
|
||||
};
|
||||
it('is valid', () => {
|
||||
expect(
|
||||
@@ -34,4 +35,8 @@ describe('RefreshIntervalModal', () => {
|
||||
const wrapper = mount(<RefreshIntervalModal {...mockedProps} />);
|
||||
expect(wrapper.find('.fa-edit')).toHaveLength(1);
|
||||
});
|
||||
it('should render a interval seconds', () => {
|
||||
const wrapper = mount(<RefreshIntervalModal {...mockedProps} />);
|
||||
expect(wrapper.prop('refreshFrequency')).toEqual(10);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user