13 Commits
Author SHA1 Message Date
Bentlybro e82cda69e0 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
2026-02-17 10:28:25 +00:00
Bentlybro c0273b5a47 Refactor test runner output in e2e_test.py
Simplifies test output by printing progress symbols ('.', 'F', 'E') instead of verbose messages. Removes test name display and emoji, streamlining the test summary for easier reading.
2025-10-07 23:36:31 +01:00
Bentlybro ddbe21026a Remove custom logging from e2e tests
Eliminated the custom log method and all log calls from the AutoModerateE2ETest class. The test output now uses print statements only for high-level test progress and results, simplifying the code and reducing verbosity.
2025-10-07 23:33:10 +01:00
Bentlybro 8ea2157d02 Simplify and clean up e2e test logging
Removes verbose and redundant log messages from the end-to-end tests, focusing on concise error and success reporting. Sensitive response details and internal state are no longer logged, improving test output clarity and reducing noise.
2025-10-07 23:09:30 +01:00
Bentlybro 953e3fdbc2 Remove sensitive info from test logs
Updated e2e tests to avoid logging user emails and API key fragments. This improves security and prevents sensitive information from appearing in test output.
2025-10-07 22:42:10 +01:00
Bentlybro 405cf0713b Trying to fix CI
Introduces CSRF token extraction using BeautifulSoup and updates user registration, login, project creation, and API key creation flows to include CSRF tokens in form submissions. This improves test reliability and compatibility with CSRF-protected endpoints.
2025-09-22 15:25:05 +01:00
Bentlybro 04a75aee14 Refactor E2E tests to focus on core platform
Updated GitHub Actions workflow and test suite to run only core platform tests, removing OpenAI-dependent moderation tests and related environment variables. This streamlines CI validation to ensure platform deployment and basic functionality without external dependencies.
2025-09-15 15:18:05 +01:00
Bentlybro 95b02b55dc Improve E2E moderation tests and update OpenAI config
Updated the workflow to use the GPT-5 model with larger context and output token limits. Enhanced e2e_test.py with clearer test content, stricter pass/fail logic for moderation, improved error handling, and more detailed logging for both safe and suspicious content moderation cases.
2025-09-15 15:12:51 +01:00
Bentlybro 71af9d2a97 Improve e2e test suite robustness and reporting
Refactored e2e test logic to separate core infrastructure, moderation, and stats tests. Moderation tests now run only if core tests pass, and failures in moderation are reported with more context. The suite now considers core infrastructure passing as the main success criterion, improving CI reliability and diagnostics. Also added SQL_DEBUG env var to workflow.
2025-09-15 15:07:12 +01:00
Bentlybro ecebbcc53f Update e2e_test.py 2025-09-15 15:04:49 +01:00
Bentlybro 0169c2a4a0 Improve project and API key creation in E2E tests
Enhances the E2E test logic for project creation by handling redirects more robustly and extracting project IDs from both redirect URLs and HTML. Refactors API key creation to first retrieve the default key, and adds a method to create additional keys if none exist, improving reliability and error handling.
2025-09-15 15:02:49 +01:00
Bentlybro da29154240 Update endpoint URLs in e2e tests
Changed API endpoint paths in e2e_test.py to reflect updated routes, including '/auth/register', '/auth/login', and '/dashboard/projects/'. Ensures tests target the correct endpoints after backend route changes.
2025-09-15 14:59:36 +01:00
Bentlybro 302d86a36f Add E2E test workflow and improve input handling
Introduces a GitHub Actions workflow for end-to-end testing and adds a comprehensive e2e test script. Refactors input handling in API and auth routes by removing unnecessary HTML escaping, relying on validation and normalization instead.
2025-09-15 14:52:08 +01:00