mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
* Chore: Adds neccessary packages * Wip: Initial dummy test in place * Feature: Downloads Chromium if needed * Fix: Adds global config object * Refactor: Adds basic e2eScenario * Build: Adds end to end tests to config * Build: Changes end to end job * Build: Adds browsers to image * Build: Adds failing test * Refactor: Adds first e2e-test scenario * Fix: Ignores test output in gitignore * Refactor: Adds compare screenshots ability * Refactor: Removes unnecessary code * Build: Removes jest-puppeteer * Fix: Replaces test snapshots * Refactor: Creates output dir if missing * Refactor: Changes aria-labels to be more consistent * Docs: Adds section about end to end tests * Fix: Fixes snapshots * Docs: Adds information about ENV variables
60 lines
975 B
Plaintext
60 lines
975 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Render should render component 1`] = `
|
|
<div
|
|
className="gf-form-button-row"
|
|
>
|
|
<button
|
|
className="btn btn-success"
|
|
onClick={[MockFunction]}
|
|
type="submit"
|
|
>
|
|
Test
|
|
</button>
|
|
<button
|
|
className="btn btn-danger"
|
|
disabled={true}
|
|
onClick={[MockFunction]}
|
|
type="submit"
|
|
>
|
|
Delete
|
|
</button>
|
|
<a
|
|
className="btn btn-inverse"
|
|
href="/datasources"
|
|
>
|
|
Back
|
|
</a>
|
|
</div>
|
|
`;
|
|
|
|
exports[`Render should render with buttons enabled 1`] = `
|
|
<div
|
|
className="gf-form-button-row"
|
|
>
|
|
<button
|
|
aria-label="Save and Test button"
|
|
className="btn btn-primary"
|
|
disabled={false}
|
|
onClick={[Function]}
|
|
type="submit"
|
|
>
|
|
Save & Test
|
|
</button>
|
|
<button
|
|
className="btn btn-danger"
|
|
disabled={false}
|
|
onClick={[MockFunction]}
|
|
type="submit"
|
|
>
|
|
Delete
|
|
</button>
|
|
<a
|
|
className="btn btn-inverse"
|
|
href="/datasources"
|
|
>
|
|
Back
|
|
</a>
|
|
</div>
|
|
`;
|