Update snapshots
parent
e7614458cb
commit
44417b146c
|
@ -4,7 +4,6 @@ import {shallow} from 'enzyme'
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
import SaveAsButton from 'src/dataExplorer/components/SaveAsButton'
|
import SaveAsButton from 'src/dataExplorer/components/SaveAsButton'
|
||||||
import SaveAsCellForm from 'src/dataExplorer/components/SaveAsCellForm'
|
|
||||||
|
|
||||||
const setup = () => {
|
const setup = () => {
|
||||||
const wrapper = shallow(<SaveAsButton />)
|
const wrapper = shallow(<SaveAsButton />)
|
||||||
|
@ -20,12 +19,4 @@ describe('SaveAsButton', () => {
|
||||||
expect(wrapper).toMatchSnapshot()
|
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)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,79 +1,3 @@
|
||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
exports[`SaveAsButton rendering renders 1`] = `
|
exports[`SaveAsButton rendering renders 1`] = `<SaveAsButton />`;
|
||||||
<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>
|
|
||||||
`;
|
|
||||||
|
|
Loading…
Reference in New Issue