===
navigate to test page
%require
===
plwr -S plwr-test open "http://localhost:8599/index.html"
---

===
start video recording
===
plwr -S plwr-test video-start --dir /tmp/plwr-test-video
---

===
do something while recording
===
plwr -S plwr-test reload
---

===
stop recording and save as webm
===
plwr -S plwr-test video-stop /tmp/plwr-test-recording.webm
---
Saved recording to /tmp/plwr-test-recording.webm

===
video file exists
===
test -f /tmp/plwr-test-recording.webm
---

===
video file has content
===
bash -c 'size=$(wc -c < /tmp/plwr-test-recording.webm); echo "$size"; test "$size" -gt 0'
---
