fix acceptance tests

This commit is contained in:
Elio Bischof
2025-08-05 16:36:28 +02:00
parent 3ae58de738
commit df2ac9b189
41 changed files with 97 additions and 191 deletions

View File

@@ -9,13 +9,16 @@ echo
echo
echo -e "THANKS FOR CONTRIBUTING TO ZITADEL 🚀"
echo
nohup bash -c "pnpm playwright show-report --host 0.0.0.0 &"
echo "View the Playwright report at http://localhost:9323"
echo
echo "Your dev container is configured for fixing login acceptance tests."
echo "The login is running in a separate container with the same configuration."
echo "It calls a local zitadel container with a fully implemented gRPC API."
echo
echo "Also the test suite is configured correctly."
echo "For example, run a single test file:"
echo "pnpm playwright test --spec acceptance/tests/admin.spec.ts"
echo "For example, rerun only failed tests:"
echo "pnpm playwright test --last-failed"
echo
echo "You can also run the test interactively."
echo "However, this is only possible from outside the dev container."

View File

@@ -11,7 +11,7 @@ pnpm install --frozen-lockfile \
--filter @zitadel/proto \
--filter zitadel-monorepo
pnpm exec playwright install --with-deps
pnpm test:acceptance:login
PLAYWRIGHT_HTML_OPEN=never pnpm test:acceptance:login
if [ "$FAIL_COMMANDS_ON_ERRORS" != "true" ]; then
exit 0

View File

@@ -12,7 +12,7 @@
"forwardPorts": [
3000, // Login Dev
8080, // Zitadel API Dev
9323, // Playwright Report
9323 // Playwright Report
],
"remoteEnv": {
"FAIL_COMMANDS_ON_ERRORS": "${localEnv:FAIL_COMMANDS_ON_ERRORS}",

View File

@@ -16,6 +16,7 @@ services:
# Zitadel Configuration
ZITADEL_DATABASE_POSTGRES_HOST: db-acceptance
network_mode: service:zitadel
ipc: host
depends_on:
login-acceptance:
condition: service_healthy
@@ -49,8 +50,9 @@ services:
db-acceptance:
condition: "service_healthy"
ports:
- "8080:8080"
- "3000:3000"
- "8080:8080" # Zitadel API
- "3000:3000" # Login
- "9323:9323" # Playwright Report
login-acceptance:
container_name: login