Open stevector opened 6 years ago
Initial thoughts are Behat for the admin to test inserting/configuring the block. Then run visual regression testing on the front end against known good screenshots of the result.
Sounds good. Since that'll need Behat with JavaScript let's consider https://packagist.org/packages/dmore/behat-chrome-extension
It'll allow for headless Chrome in CI and headed Chrome for a cool demo.
Do you have any interest in using Jest for unit tests the way Gutenberg itself does? https://github.com/WordPress/gutenberg/blob/master/components/form-toggle/test/index.js
The Behat Chrome Extension looks cool. I'm not against using Jest but haven't used it before so there would be a learning curve. We can discuss details if this makes it into a sprint.
@ataylorme, do you have thoughts on what a CI process would/should look like for this plugin?