20 lines
510 B
Bash
Executable File
20 lines
510 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Ensure the panel container is up; podman compose handles networking for localhost.
|
|
podman compose -f podman-compose.dev.yml up -d canva-app-dev
|
|
|
|
# Wait for panel to be reachable
|
|
for i in $(seq 1 20); do
|
|
if curl -fsS http://localhost:8081/ >/dev/null 2>&1; then
|
|
ready=1
|
|
break
|
|
fi
|
|
sleep 1
|
|
done
|
|
|
|
# Run the headless smoke test against the panel (defaults to http://localhost:8081/).
|
|
node tests/canva-app-headless.js
|
|
|
|
echo "Canva app headless check completed."
|