mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix snapshot tests
This commit is contained in:
parent
cf0db51659
commit
b8539570d0
@ -29,7 +29,9 @@ exports[`Render should render organization and preferences 1`] = `
|
|||||||
onSubmit={[Function]}
|
onSubmit={[Function]}
|
||||||
orgName="Cool org"
|
orgName="Cool org"
|
||||||
/>
|
/>
|
||||||
<Connect(OrgPreferences) />
|
<SharedPreferences
|
||||||
|
resourceUri="org"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,136 +0,0 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
||||||
|
|
||||||
exports[`Render should render component 1`] = `
|
|
||||||
<form
|
|
||||||
className="section gf-form-group"
|
|
||||||
onSubmit={[Function]}
|
|
||||||
>
|
|
||||||
<h3
|
|
||||||
className="page-heading"
|
|
||||||
>
|
|
||||||
Preferences
|
|
||||||
</h3>
|
|
||||||
<div
|
|
||||||
className="gf-form"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
className="gf-form-label width-11"
|
|
||||||
>
|
|
||||||
UI Theme
|
|
||||||
</span>
|
|
||||||
<SimplePicker
|
|
||||||
getOptionLabel={[Function]}
|
|
||||||
getOptionValue={[Function]}
|
|
||||||
onSelected={[Function]}
|
|
||||||
options={
|
|
||||||
Array [
|
|
||||||
Object {
|
|
||||||
"text": "Default",
|
|
||||||
"value": "",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"text": "Dark",
|
|
||||||
"value": "dark",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"text": "Light",
|
|
||||||
"value": "light",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
width={20}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="gf-form"
|
|
||||||
>
|
|
||||||
<Component
|
|
||||||
tooltip="Not finding dashboard you want? Star it first, then it should appear in this select box."
|
|
||||||
width={11}
|
|
||||||
>
|
|
||||||
Home Dashboard
|
|
||||||
</Component>
|
|
||||||
<SimplePicker
|
|
||||||
defaultValue={
|
|
||||||
Object {
|
|
||||||
"id": 1,
|
|
||||||
"tags": Array [],
|
|
||||||
"title": "Standard dashboard",
|
|
||||||
"type": "",
|
|
||||||
"uid": "",
|
|
||||||
"uri": "",
|
|
||||||
"url": "",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
getOptionLabel={[Function]}
|
|
||||||
getOptionValue={[Function]}
|
|
||||||
onSelected={[Function]}
|
|
||||||
options={
|
|
||||||
Array [
|
|
||||||
Object {
|
|
||||||
"id": 0,
|
|
||||||
"tags": Array [],
|
|
||||||
"title": "Default",
|
|
||||||
"type": "",
|
|
||||||
"uid": "",
|
|
||||||
"uri": "",
|
|
||||||
"url": "",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"id": 1,
|
|
||||||
"tags": Array [],
|
|
||||||
"title": "Standard dashboard",
|
|
||||||
"type": "",
|
|
||||||
"uid": "",
|
|
||||||
"uri": "",
|
|
||||||
"url": "",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
placeholder="Chose default dashboard"
|
|
||||||
width={20}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="gf-form"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
className="gf-form-label width-11"
|
|
||||||
>
|
|
||||||
Timezone
|
|
||||||
</label>
|
|
||||||
<SimplePicker
|
|
||||||
getOptionLabel={[Function]}
|
|
||||||
getOptionValue={[Function]}
|
|
||||||
onSelected={[Function]}
|
|
||||||
options={
|
|
||||||
Array [
|
|
||||||
Object {
|
|
||||||
"text": "Default",
|
|
||||||
"value": "",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"text": "Local browser time",
|
|
||||||
"value": "browser",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"text": "UTC",
|
|
||||||
"value": "utc",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
width={20}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="gf-form-button-row"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
className="btn btn-success"
|
|
||||||
type="submit"
|
|
||||||
>
|
|
||||||
Save
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
`;
|
|
@ -44,10 +44,7 @@ exports[`Render should render settings and preferences page 1`] = `
|
|||||||
<div
|
<div
|
||||||
className="page-container page-body"
|
className="page-container page-body"
|
||||||
>
|
>
|
||||||
<div>
|
|
||||||
<Connect(TeamSettings) />
|
<Connect(TeamSettings) />
|
||||||
<Connect(TeamPreferences) />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -1,136 +0,0 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
||||||
|
|
||||||
exports[`Render should render component 1`] = `
|
|
||||||
<form
|
|
||||||
className="section gf-form-group"
|
|
||||||
onSubmit={[Function]}
|
|
||||||
>
|
|
||||||
<h3
|
|
||||||
className="page-heading"
|
|
||||||
>
|
|
||||||
Preferences
|
|
||||||
</h3>
|
|
||||||
<div
|
|
||||||
className="gf-form"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
className="gf-form-label width-11"
|
|
||||||
>
|
|
||||||
UI Theme
|
|
||||||
</span>
|
|
||||||
<SimplePicker
|
|
||||||
getOptionLabel={[Function]}
|
|
||||||
getOptionValue={[Function]}
|
|
||||||
onSelected={[Function]}
|
|
||||||
options={
|
|
||||||
Array [
|
|
||||||
Object {
|
|
||||||
"text": "Default",
|
|
||||||
"value": "",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"text": "Dark",
|
|
||||||
"value": "dark",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"text": "Light",
|
|
||||||
"value": "light",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
width={20}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="gf-form"
|
|
||||||
>
|
|
||||||
<Component
|
|
||||||
tooltip="Not finding dashboard you want? Star it first, then it should appear in this select box."
|
|
||||||
width={11}
|
|
||||||
>
|
|
||||||
Home Dashboard
|
|
||||||
</Component>
|
|
||||||
<SimplePicker
|
|
||||||
defaultValue={
|
|
||||||
Object {
|
|
||||||
"id": 1,
|
|
||||||
"tags": Array [],
|
|
||||||
"title": "Standard dashboard",
|
|
||||||
"type": "",
|
|
||||||
"uid": "",
|
|
||||||
"uri": "",
|
|
||||||
"url": "",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
getOptionLabel={[Function]}
|
|
||||||
getOptionValue={[Function]}
|
|
||||||
onSelected={[Function]}
|
|
||||||
options={
|
|
||||||
Array [
|
|
||||||
Object {
|
|
||||||
"id": 0,
|
|
||||||
"tags": Array [],
|
|
||||||
"title": "Default",
|
|
||||||
"type": "",
|
|
||||||
"uid": "",
|
|
||||||
"uri": "",
|
|
||||||
"url": "",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"id": 1,
|
|
||||||
"tags": Array [],
|
|
||||||
"title": "Standard dashboard",
|
|
||||||
"type": "",
|
|
||||||
"uid": "",
|
|
||||||
"uri": "",
|
|
||||||
"url": "",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
placeholder="Chose default dashboard"
|
|
||||||
width={20}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="gf-form"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
className="gf-form-label width-11"
|
|
||||||
>
|
|
||||||
Timezone
|
|
||||||
</label>
|
|
||||||
<SimplePicker
|
|
||||||
getOptionLabel={[Function]}
|
|
||||||
getOptionValue={[Function]}
|
|
||||||
onSelected={[Function]}
|
|
||||||
options={
|
|
||||||
Array [
|
|
||||||
Object {
|
|
||||||
"text": "Default",
|
|
||||||
"value": "",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"text": "Local browser time",
|
|
||||||
"value": "browser",
|
|
||||||
},
|
|
||||||
Object {
|
|
||||||
"text": "UTC",
|
|
||||||
"value": "utc",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
width={20}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="gf-form-button-row"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
className="btn btn-success"
|
|
||||||
type="submit"
|
|
||||||
>
|
|
||||||
Save
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
`;
|
|
@ -53,5 +53,8 @@ exports[`Render should render component 1`] = `
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
<SharedPreferences
|
||||||
|
resourceUri="teams/1"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
Loading…
Reference in New Issue
Block a user