Update snapshots

pull/12573/head
Brandon Farmer 2019-03-12 15:18:33 -07:00
parent e7614458cb
commit 44417b146c
2 changed files with 1 additions and 86 deletions

View File

@ -4,7 +4,6 @@ import {shallow} from 'enzyme'
// Components
import SaveAsButton from 'src/dataExplorer/components/SaveAsButton'
import SaveAsCellForm from 'src/dataExplorer/components/SaveAsCellForm'
const setup = () => {
const wrapper = shallow(<SaveAsButton />)
@ -20,12 +19,4 @@ describe('SaveAsButton', () => {
expect(wrapper).toMatchSnapshot()
})
})
describe('save as cell form', () => {
it('defaults to save as cell form', () => {
const saveAsCellForm = wrapper.find(SaveAsCellForm)
expect(saveAsCellForm.exists()).toBe(true)
})
})
})

View File

@ -1,79 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`SaveAsButton rendering renders 1`] = `
<Fragment>
<t
active={false}
color="primary"
icon="export"
onClick={[Function]}
shape="none"
size="sm"
status="default"
testID="button"
text="Save As"
titleText="Save your query as a Dashboard Cell or a Task"
type="button"
/>
<Overlay
visible={false}
>
<OverlayContainer
maxWidth={600}
>
<OverlayHeading
onDismiss={[Function]}
title="Save As"
/>
<OverlayBody>
<div
className="save-as--options"
>
<Radio
color="primary"
shape="none"
size="sm"
>
<RadioButton
active={true}
data-testid="cell-radio-button"
disabled={false}
disabledTitleText="This option is disabled"
onClick={[Function]}
testID="radio-button"
value="dashboard"
>
Dashboard Cell
</RadioButton>
<RadioButton
active={false}
data-testid="task-radio-button"
disabled={false}
disabledTitleText="This option is disabled"
onClick={[Function]}
testID="radio-button"
value="task"
>
Task
</RadioButton>
<RadioButton
active={false}
data-testid="variable-radio-button"
disabled={false}
disabledTitleText="This option is disabled"
onClick={[Function]}
testID="radio-button"
value="variable"
>
Variable
</RadioButton>
</Radio>
</div>
<Connect(SaveAsCellForm)
dismiss={[Function]}
/>
</OverlayBody>
</OverlayContainer>
</Overlay>
</Fragment>
`;
exports[`SaveAsButton rendering renders 1`] = `<SaveAsButton />`;