mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
snaps
This commit is contained in:
parent
21cfc11009
commit
da856187d8
@ -1,42 +0,0 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
||||||
|
|
||||||
exports[`Render should render component 1`] = `
|
|
||||||
<div
|
|
||||||
className="page-action-bar"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="gf-form gf-form--grow"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
className="gf-form--has-input-icon"
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
className="gf-form-input width-20"
|
|
||||||
onChange={[Function]}
|
|
||||||
placeholder="Filter by name or type"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
<i
|
|
||||||
className="gf-form-input-icon fa fa-search"
|
|
||||||
/>
|
|
||||||
</label>
|
|
||||||
<LayoutSelector
|
|
||||||
mode="grid"
|
|
||||||
onLayoutModeChanged={[Function]}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="page-action-bar__spacer"
|
|
||||||
/>
|
|
||||||
<a
|
|
||||||
className="page-header__cta btn btn-success"
|
|
||||||
href="datasources/new"
|
|
||||||
>
|
|
||||||
<i
|
|
||||||
className="fa fa-plus"
|
|
||||||
/>
|
|
||||||
Add data source
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
`;
|
|
@ -8,8 +8,17 @@ exports[`Render should render action bar and datasources 1`] = `
|
|||||||
<div
|
<div
|
||||||
className="page-container page-body"
|
className="page-container page-body"
|
||||||
>
|
>
|
||||||
<Connect(DataSourcesActionBar)
|
<OrgActionBar
|
||||||
key="action-bar"
|
key="action-bar"
|
||||||
|
layoutMode="grid"
|
||||||
|
linkButton={
|
||||||
|
Object {
|
||||||
|
"href": "datasources/new",
|
||||||
|
"title": "Add data source",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
setLayoutMode={[Function]}
|
||||||
|
setSearchQuery={[Function]}
|
||||||
/>
|
/>
|
||||||
<DataSourcesList
|
<DataSourcesList
|
||||||
dataSources={
|
dataSources={
|
||||||
|
@ -8,6 +8,9 @@ const setup = (propOverrides?: object) => {
|
|||||||
const props: Props = {
|
const props: Props = {
|
||||||
navModel: {} as NavModel,
|
navModel: {} as NavModel,
|
||||||
plugins: [] as Plugin[],
|
plugins: [] as Plugin[],
|
||||||
|
searchQuery: '',
|
||||||
|
setPluginsSearchQuery: jest.fn(),
|
||||||
|
setPluginsLayoutMoode: jest.fn(),
|
||||||
layoutMode: LayoutModes.Grid,
|
layoutMode: LayoutModes.Grid,
|
||||||
loadPlugins: jest.fn(),
|
loadPlugins: jest.fn(),
|
||||||
};
|
};
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
||||||
|
|
||||||
exports[`Render should render component 1`] = `
|
|
||||||
<div
|
|
||||||
className="page-action-bar"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="gf-form gf-form--grow"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
className="gf-form--has-input-icon"
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
className="gf-form-input width-20"
|
|
||||||
onChange={[Function]}
|
|
||||||
placeholder="Filter by name or type"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
<i
|
|
||||||
className="gf-form-input-icon fa fa-search"
|
|
||||||
/>
|
|
||||||
</label>
|
|
||||||
<LayoutSelector
|
|
||||||
mode="grid"
|
|
||||||
onLayoutModeChanged={[Function]}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="page-action-bar__spacer"
|
|
||||||
/>
|
|
||||||
<a
|
|
||||||
className="btn btn-success"
|
|
||||||
href="https://grafana.com/plugins?utm_source=grafana_plugin_list"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Find more plugins on Grafana.com
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
`;
|
|
@ -8,7 +8,18 @@ exports[`Render should render component 1`] = `
|
|||||||
<div
|
<div
|
||||||
className="page-container page-body"
|
className="page-container page-body"
|
||||||
>
|
>
|
||||||
<Connect(PluginActionBar) />
|
<OrgActionBar
|
||||||
|
layoutMode="grid"
|
||||||
|
linkButton={
|
||||||
|
Object {
|
||||||
|
"href": "https://grafana.com/plugins?utm_source=grafana_plugin_list",
|
||||||
|
"title": "Find more plugins on Grafana.com",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
searchQuery=""
|
||||||
|
setLayoutMode={[Function]}
|
||||||
|
setSearchQuery={[Function]}
|
||||||
|
/>
|
||||||
<PluginList
|
<PluginList
|
||||||
layoutMode="grid"
|
layoutMode="grid"
|
||||||
plugins={Array []}
|
plugins={Array []}
|
||||||
|
Loading…
Reference in New Issue
Block a user