mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
fix: rm grace period field for reports modal (#12800)
* add rc4 changelog entries
(cherry picked from commit 5719fefdd4)
* only show grace period for alerts + fix dropdown styling
* fix lint
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
This commit is contained in:
@@ -212,7 +212,15 @@ describe('AlertReportModal', () => {
|
||||
expect(wrapper.find('input[name="working_timeout"]')).toExist();
|
||||
});
|
||||
|
||||
it('renders input element for grace period', () => {
|
||||
expect(wrapper.find('input[name="grace_period"]')).toExist();
|
||||
it('renders input element for grace period for alert only', async () => {
|
||||
const props = {
|
||||
...mockedProps,
|
||||
isReport: false,
|
||||
};
|
||||
|
||||
const addWrapper = await mountAndWait(props);
|
||||
|
||||
expect(addWrapper.find('input[name="grace_period"]')).toExist();
|
||||
expect(wrapper.find('input[name="grace_period"]')).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user