9 lines
398 B
Bash
9 lines
398 B
Bash
|
|
#!/bin/bash
|
||
|
|
export AGENT_BROWSER_SOCKET_DIR=/tmp/ab-sock
|
||
|
|
for path in dashboard orders quotes customers pricelist repairs; do
|
||
|
|
echo "=== $path ==="
|
||
|
|
agent-browser open "http://localhost:4001/$path?cb=$(date +%s)" 2>&1 | head -1
|
||
|
|
agent-browser wait --load networkidle > /dev/null 2>&1
|
||
|
|
agent-browser screenshot ".tmp/mobile-pass/after/$path.png" 2>&1 | head -1
|
||
|
|
done
|
||
|
|
ls -la .tmp/mobile-pass/after/
|