Testing an SVG chart using Cypress.io test runner
See cypress/integration/spec.js
Application is in index.html and app.js.
Tests in cypress/integration folder show:
- first-spec.js shows initial chart load test
- tooltip-spec.js tests how a tooltip appears and disappears
- seasons-spec.js tests that each bar has a label in tooltip
- labels-spec.js shows how to share the list of labels between the application and the test
- visual-diff-spec.js uses Applitools Cypress plugin to visually check the chart during the test