autogpt_platform/frontend/TESTING.md
autogpt_platform: docker compose --profile local up deps_backend -ddocker compose up -d[email protected] with library agents):
autogpt_platform/backend: poetry run python test/e2e_test_data.pyautogpt_platform/frontend: pnpm test or pnpm test-uifrontend/playwright.config.ts with a global setup step.frontend/.auth/user-pool.json.getTestUser() (from src/tests/utils/auth.ts) which pulls a random user from that pool.
User pool (basic users)
Created automatically by the Playwright global setup through /signup.
Used by getTestUser() in src/tests/utils/auth.ts.
Rich user with library agents
Created by backend/test/e2e_test_data.py.
Accessed via getTestUserWithLibraryAgents() in src/tests/credentials/index.ts.
Use the rich user when a test needs existing library agents (e.g. library.spec.ts).
If you reset the Docker DB and logins start failing:
frontend/.auth/user-pool.json so the pool is regenerated.poetry run python test/e2e_test_data.pyflowchart TD
A[Start Docker stack] --> B[Run e2e_test_data.py]
B --> C[Run Playwright tests]
C --> D[Global setup creates user pool]
D --> E{Test needs rich data?}
E -->|No| F[getTestUser from user pool]
E -->|Yes| G[getTestUserWithLibraryAgents]
pnpm storybook β Run Storybook locallypnpm build-storybook β Build a static Storybookpnpm test-storybooksrc/components, update or add stories and verify in Storybook/Chromatic.