mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
test(e2e): try to fix e2e tests
This commit is contained in:
parent
19643e781c
commit
e268076332
13 changed files with 131 additions and 22 deletions
19
scripts/wait-for-webdav.sh
Executable file
19
scripts/wait-for-webdav.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Wait for WebDAV server to be ready
|
||||
# Retries for up to 60 seconds
|
||||
# authenticates as admin:admin to ensure we get a 200/2xx response, not 401
|
||||
|
||||
echo "Waiting for WebDAV server on http://127.0.0.1:2345..."
|
||||
|
||||
for i in {1..60}; do
|
||||
if curl -u admin:admin --silent --output /dev/null --fail http://127.0.0.1:2345; then
|
||||
echo "WebDAV server is up!"
|
||||
exit 0
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo "Timeout waiting for WebDAV server."
|
||||
docker compose logs webdav
|
||||
exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue