jquery.terminal
jquery.terminal copied to clipboard
Add Visual Tests as GitHub Action
I have an idea for a new feature for jQuery Terminal
After creating a Cypress PoC it would be nice to finally test visuals. The code should check the CSS, maybe height, padding and margins of the output.
To Test:
- [ ] spacing below different background (found recently) ervy demo
- [ ] Few ANSI ART (also spacing)
- [ ] Prism with JavaScript syntax
- [ ] Images
- [ ] Spacing of multiple Images
- [ ] Error Image SVG
- [ ] Less rendering
- [ ] Larger content
- [ ] Smaller Content
- [ ] Images
- [ ] Error Images
It seems that you can't test box model in Cypress. But you can Add Screenshot Testing with Cypress to Your Project
I think it would be better to just stick to jest and use Puppeteer with jest-image-snapshot