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:
Moriah Kreeger
2021-01-28 15:17:14 -08:00
committed by GitHub
parent ef724069f3
commit fa8c492acd
3 changed files with 703 additions and 15 deletions

View File

@@ -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);
});
});