vector-im-hydrogen-web/scripts/test-app.sh
RMidhunSuresh 097d2296e0
Make testing more reliable
- Stop any running containers
- Start dev server from playwright so that we don't keep spawning new
  node instances
2022-10-25 17:02:17 +05:30

20 lines
463 B
Bash
Executable File

#!/bin/bash
# Make sure docker is available
if ! docker info > /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