Is there an (easy|simple|sane) [pick one from 3] way to automate animation tests that include User Interaction?<p>I ask because earlier this evening I deployed an update/NPM version bump of my Canvas library, after spending much of the day reviewing all the demo tests in various browsers on various devices. Only to watch as the new version broke the library's associated website's build tools. A stupid bug (2 chars) which meant having to fix it, test essential demos in various browsers etc before doing another release on GitHub and publishing the new version on NPM.<p>I know this process can be easier. But the thing that holds me back from automating the heck out of my test/release process is that I'm clueless about how to test the library's functionality. It's a library to make working with 2D Canvas elements "more fun", so I test manually because I need to *see* that things - in particular animations - are working as I expect them to work.<p>The test suite is here: https://scrawl-v8.rikweb.org.uk/demo/index.html<p>Any advice is really welcome!
Link to given test suite pages of library functionality/unit test provides nice overview of what library does.<p><pre><code> simplified automation example : https://glebbahmutov.com/blog/canvas-testing/
</code></pre>
a few ideas from search engine terms "<canvas> test runner"<p><pre><code> Testing an HTML canvas with Cypress : https://www.valentinog.com/blog/canvas/
automated cross browswer testing : https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Automated_testing
Introduction to Sikuli GUI Automation Tool (Automate Anything You See on Screen) : https://www.softwaretestinghelp.com/sikuli-tutorial-part-1/
class project write-up : https://web.mit.edu/6.031/www/sp22/projects/starb/testing.html</code></pre>