Pass e2e credentials via environment variables

Remove login_user helper and LOGIN_PASSWORD constant, pass E2E_USER
and E2E_PASSWORD from the test script to playwright via env vars.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
silverwindandClaude Opus 4.6 committed 2026-02-18 03:03:15 +01:00
1 parent f76c0acf59
commit 625e46d033
3 files changed
+8 -14

No files matched your search

+2
View File
@@ -44,4 +44,6 @@ if ! curl -sf --max-time 5 "$GITEA_TEST_SERVER_URL/api/v1/users/$E2E_USER" > /de
fi
export GITEA_TEST_SERVER_URL
export E2E_USER
export E2E_PASSWORD
exec pnpm exec playwright test "$@"