feat(report): add/edit modal improvements (#12183)

* alert/report modal improvements

* update spec for alert report modal
This commit is contained in:
Lily Kuang
2021-01-04 09:15:55 -08:00
committed by GitHub
parent a3bbbf8ea3
commit ff0fe434e4
3 changed files with 47 additions and 11 deletions

View File

@@ -27,6 +27,7 @@ import { AsyncSelect } from 'src/components/Select';
import { Radio } from 'src/common/components/Radio';
import { GraySelect as Select } from 'src/common/components/Select';
import { Switch } from 'src/common/components/Switch';
import TextAreaControl from 'src/explore/components/controls/TextAreaControl';
import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
import { styledMount as mount } from 'spec/helpers/theming';
@@ -169,8 +170,8 @@ describe('AlertReportModal', () => {
const addWrapper = await mountAndWait(props);
expect(wrapper.find('textarea[name="sql"]')).toHaveLength(0);
expect(addWrapper.find('textarea[name="sql"]')).toExist();
expect(wrapper.find(TextAreaControl)).toHaveLength(0);
expect(addWrapper.find(TextAreaControl)).toExist();
});
it('renders one select element when in report mode', () => {