Skip to content

Commit e82cda6

Browse files
committed
refactor: rewrite e2e tests for clarity and correctness
- Fix login test that fails because registration auto-authenticates - Add modular test structure with clear pass/fail reporting - Skip moderation tests in CI (detects test-key, no real OpenAI) - Actually run all test functions (some were defined but never called) - Early exit on critical failures instead of running useless tests - Clean up CI workflow env vars
1 parent b3f2922 commit e82cda6

2 files changed

Lines changed: 362 additions & 380 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ jobs:
8787
- name: Run core platform tests
8888
env:
8989
BASE_URL: http://localhost:6217
90-
ADMIN_EMAIL: admin@example.com
91-
ADMIN_PASSWORD: admin123
90+
OPENAI_API_KEY: "test-key" # Signals to skip moderation tests
9291
run: |
9392
python tests/e2e_test.py
9493

0 commit comments

Comments
 (0)