Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create automation for 'As a user I would like to be able to export a graph as a PNG #224' #313

Open
mwalker-scottlogic opened this issue Aug 20, 2024 · 0 comments

Comments

@mwalker-scottlogic
Copy link
Collaborator

The feature implemented in As a user I would like to be able to export a graph as a PNG requires automation tests to check that the download functionality does not regress

A branch has been started here with a method to capture the downloaded image (see test 'Verify AQI graph can be downloaded as a PNG' in city_page.spec.ts).

Ideally, there will be a test for each chart. Still to be established - how to check it is correct, can playwright open the download and then do a snapshot test against a manually verified golden image? Or can we do a check that makes sure the download was successful / not corrupted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant