Files
grafana/public/app/features/datasources/settings/__snapshots__/ButtonRow.test.tsx.snap
Marcus Andersson 79ce09ddee PluginsCatalog: post installation, adding an "add datasource"-button. (#40155)
* added post installation steps.

* changes according to feedback.

* removing return union null type.

* added tests.

* changing the wording of the button to 'create a..'

* updated tests to check for the updated copy.

* changing the back to be a regular back button.

* updated snapshot
2021-10-15 13:18:39 +02:00

82 lines
1.4 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Render should render component 1`] = `
<div
className="gf-form-button-row"
>
<Button
fill="solid"
onClick={[Function]}
type="button"
variant="secondary"
>
Back
</Button>
<LinkButton
disabled={false}
fill="solid"
href="/explore"
variant="secondary"
>
Explore
</LinkButton>
<Button
aria-label="Data source settings page Delete button"
disabled={true}
onClick={[MockFunction]}
type="button"
variant="destructive"
>
Delete
</Button>
<Button
onClick={[MockFunction]}
type="submit"
variant="primary"
>
Test
</Button>
</div>
`;
exports[`Render should render with buttons enabled 1`] = `
<div
className="gf-form-button-row"
>
<Button
fill="solid"
onClick={[Function]}
type="button"
variant="secondary"
>
Back
</Button>
<LinkButton
disabled={false}
fill="solid"
href="/explore"
variant="secondary"
>
Explore
</LinkButton>
<Button
aria-label="Data source settings page Delete button"
disabled={false}
onClick={[MockFunction]}
type="button"
variant="destructive"
>
Delete
</Button>
<Button
aria-label="Data source settings page Save and Test button"
disabled={false}
onClick={[Function]}
type="submit"
variant="primary"
>
Save & test
</Button>
</div>
`;