1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/frontend/src/component/feature/__tests__/__snapshots__/view-component-test.jsx.snap
Ivar Conradi Østhus dd9c4bd1ab fix: Update feature toggle description. (#198)
* fix: Update feature toggle description.

Currently it is always in edit mode which can be a bit confusing.
Usually one do not want to edit a toggle descirption and if one
do it should be OK to enter edit mode.

Now it alos stores changes in local state on the component so any
updates from the server should not affect the local value currently
beeing edited by the user.

fixes #168

* fix: Don't show strategy description during configure
2019-10-27 19:40:41 +01:00

144 lines
2.7 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly with one feature 1`] = `
<react-mdl-Card
className="fullwidth"
shadow={0}
style={
Object {
"overflow": "visible",
}
}
>
<react-mdl-CardTitle
style={
Object {
"paddingBottom": 0,
"wordBreak": "break-all",
}
}
>
Another
</react-mdl-CardTitle>
<react-mdl-CardText>
another's description
 
<a
href="#edit"
onClick={[Function]}
>
edit
</a>
</react-mdl-CardText>
<react-mdl-CardActions
border={true}
style={
Object {
"alignItems": "center",
"display": "flex",
"justifyContent": "space-between",
}
}
>
<span
style={
Object {
"paddingRight": "24px",
}
}
>
<react-mdl-Switch
checked={false}
disabled={false}
onChange={[Function]}
ripple={true}
>
Disabled
</react-mdl-Switch>
</span>
<react-mdl-Button
disabled={false}
onClick={[Function]}
style={
Object {
"flexShrink": 0,
}
}
>
Archive
</react-mdl-Button>
</react-mdl-CardActions>
<hr />
<react-mdl-Tabs
activeTab={0}
className="mdl-color--grey-100"
ripple={true}
tabBarProps={
Object {
"style": Object {
"width": "100%",
},
}
}
>
<react-mdl-Tab
onClick={[Function]}
>
Strategies
</react-mdl-Tab>
<react-mdl-Tab
onClick={[Function]}
>
Metrics
</react-mdl-Tab>
<react-mdl-Tab
onClick={[Function]}
>
Variants
</react-mdl-Tab>
<react-mdl-Tab
onClick={[Function]}
>
History
</react-mdl-Tab>
</react-mdl-Tabs>
<UpdateFeatureToggleComponent
featureToggle={
Object {
"createdAt": "2018-02-04T20:27:52.127Z",
"description": "another's description",
"enabled": false,
"name": "Another",
"strategies": Array [
Object {
"name": "gradualRolloutRandom",
"parameters": Object {
"percentage": 50,
},
},
],
}
}
features={
Array [
Object {
"createdAt": "2018-02-04T20:27:52.127Z",
"description": "another's description",
"enabled": false,
"name": "Another",
"strategies": Array [
Object {
"name": "gradualRolloutRandom",
"parameters": Object {
"percentage": 50,
},
},
],
},
]
}
history={Object {}}
/>
</react-mdl-Card>
`;