vector-im-hydrogen-web/scripts/test-app.sh

20 lines
468 B
Bash
Raw Permalink Normal View History

#!/bin/bash
# Make sure docker is available
2023-08-18 19:42:16 +02:00
if ! docker --version > /dev/null 2>&1; then
echo "You need to intall docker before you can run the tests!"
exit 1
fi
# Stop running containers
if docker stop hydrogen-synapse > /dev/null 2>&1; then
echo "Existing 'hydrogen-synapse' container stopped ✔"
fi
if docker stop hydrogen-dex > /dev/null 2>&1; then
echo "Existing 'hydrogen-dex' container stopped ✔"
fi
# Run playwright
yarn playwright test