Files
nocodb/tests/playwright/startPlayWrightServer.sh
Pranav C 4c0e429b76 test: playwright test correction
Signed-off-by: Pranav C <pranavxc@gmail.com>
2023-09-27 16:32:54 +05:30

12 lines
351 B
Bash
Executable File

# Run server if its not running
if ! curl --output /dev/null --silent --head --fail http://localhost:31000
then
echo "Starting PlayWright Server"
PWDEBUG=console pnpm exec playwright run-server --port 31000 &
# Wait for server to start
while ! curl --output /dev/null --silent --head --fail http://localhost:31000; do
sleep 0.2
done
fi