mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
2e3b6b6850
* Separated generalized E2E docs from that of core … and rewrote some minor things to be more concise for faster reads. * Added plugins E2E document
909 B
909 B
End-to-End Tests for plugins
Be sure that you've read the generalized E2E document.
Commands
yarn test:e2e
will run Grafana's E2E utility against an already running Grafana server.yarn test:e2e:update
will runtest:e2e
but instead of asserting that screenshots match their expected fixtures, they'll be replaced with new ones.
Your running Grafana instance can be targeted by setting the CYPRESS_BASE_URL
, CYPRESS_USERNAME
and CYPRESS_PASSWORD
environment variableS:
CYPRESS_BASE_URL=https://localhost:3000 CYPRESS_USERNAME=admin CYPRESS_PASSWORD=admin yarn test:e2e
Test suites
All tests are located at <repo-root>/cypress/integration by default.
Things to test
- Add data source (if applicable)
- Add panel
- Edit panel
- Annotations (if applicable)
- Aliases (if applicable)
- Template variables
- "Explore" view