question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Screenshot Testing - golden screenshots should be in repo

See original GitHub issue

Screenshot Testing - golden screenshots should be in repo according to docs but *.golden.png is in .gitignore:

https://github.com/material-components/material-components-web-react/blob/master/.gitignore#L9

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bonniezhoucommented, Jul 16, 2018

The golden.png files are stored in Google Cloud Storage and visible publicly via this URL:

https://storage.googleapis.com/screenshot-uploads/<path>/<to>/<file>.html/<golden-screenshot-hash>.golden.png

where <golden-screenshot-hash> is found in the golden.json file, and <path>/<to>/<file> is the path to the HTML file relative to the /test/screenshot folder.

Check out the newly updated screenshot tests doc for more details!

0reactions
moog16commented, Jul 9, 2018

@schliflo I think we can actually make the images publicly available for download. Then you and others will be able to download the images and run tests against them. You just wouldn’t be able to upload images. But we could do that when/if there are changes that require that step.

Also we noticed that some of the verbiage in the https://github.com/material-components/material-components-web-react/tree/master/test/screenshot/README.md is not accurate. We will update!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Screenshot testing 101 - Medium
Screenshot testing is the process of rendering a UI component using precomputed or static data and capturing a screenshot of it in isolation....
Read more >
Open-Source Screenshot Testing and Reviews - Screenshotbot
A screenshot is just an image, usually a PNG, with associated metadata such as its name and ... You can consider it the...
Read more >
Capture screenshots of flaky end-to-end tests - CircleCI
If a test fails, take a screenshot of the webpage and store it somewhere - that way, you can look into the failure...
Read more >
screenshot - Take a snapshot of program after every test
Create a repo item of the application (using Ranorex Spy). Drag n Drop the repo item in a recording. Select the "Capture Screenshot"...
Read more >
Visual regression testing with Playwright - Qxperts
Comparing screenshots · It checks if there is a golden file (base screenshot to compare against) · It takes a new screenshot ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found