I do a bit of DevOps

Recording Laravel Dusk browser tests using ffmpeg and x11grab

Working with Laravel apps I've had the displeasure of debugging Dusk browser tests. In my experience, even the smallest change to the codebase or environment they run in can cause them to start acting up. Sometimes it's useful to see what's actually going on inside the browser when the tests are being executed. In this post I'll show you how to quickly record a video of a running test.