jquery.terminal icon indicating copy to clipboard operation
jquery.terminal copied to clipboard

Add Visual Tests as GitHub Action

Open jcubic opened this issue 3 years ago • 2 comments

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

jcubic avatar Dec 14 '21 22:12 jcubic

I think it would be better to just stick to jest and use Puppeteer with jest-image-snapshot

jcubic avatar Dec 17 '23 13:12 jcubic