BuildingXwithJS / proposals

Place for proposals on things to build, talk and review during livestreams
MIT License
20 stars 1 forks source link

Automation with Puppeteer and Chrome headless #12

Closed yamalight closed 6 years ago

yamalight commented 6 years ago

As discussed on twitter. Need to come up with a nice use case for that.

FDiskas commented 6 years ago

You can make a css #13 regression tests with this one. For example

  1. make a simple webpage with some testable elements
  2. Take a screenshot and crop it so only that element would be visible and save it
  3. Add some assertion for testing
  4. Compare saved image with modified element
  5. Show the difference
yamalight commented 6 years ago

@FDiskas hm, that's a pretty good option. Thanks for suggestion!

FDiskas commented 6 years ago

Here is an old example https://github.com/nfq-eta/css-regression-test-example

yamalight commented 6 years ago

Code is available at: https://github.com/BuildingXwithJS/puppeteer-examples

yamalight commented 6 years ago

Stream VoD is here: https://www.youtube.com/watch?v=TSPVa_PsAEY

yamalight commented 6 years ago

Summary video is here: https://youtu.be/OMJGHOw2iog