Playwright is installed and browser is downloading automatically.
You need your platform running first!
Terminal 1 - Backend:
cd /Users/ahmedmustafa/Desktop/Workspace/Cypersecurity/brain
source ../.venv/bin/activate
python -m uvicorn cyper_brain.main:app --reloadTerminal 2 - Frontend:
cd /Users/ahmedmustafa/Desktop/Workspace/Cypersecurity/dashboard
npm startEasy Way (Use the script):
cd /Users/ahmedmustafa/Desktop/Workspace/Cypersecurity
./run_e2e_tests.shManual Way:
cd /Users/ahmedmustafa/Desktop/Workspace/Cypersecurity
source .venv/bin/activate
pytest e2e_tests/ -vWatch tests run (see the browser):
pytest e2e_tests/ --headedYou'll see output like:
✓ test_signup_and_verification PASSED
✓ test_onboarding_wizard PASSED
✓ test_create_and_run_nmap_scan PASSED
✓ test_generate_pdf_report PASSED
========== 10 passed in 45.2s ==========
Your E2E tests automatically:
-
🔐 User Onboarding
- Sign up new user
- Verify email
- Complete wizard
- Activate trial
-
🔍 Scanning
- Create Nmap scan
- Wait for completion
- View results
-
📄 Reports
- Generate PDF
- Download report
-
💳 Billing
- Upgrade to Pro
- Enter payment
- Activate subscription
-
🔗 Integrations
- Set up Slack
- Create webhooks
-
👥 Team
- Invite members
See what's happening:
pytest e2e_tests/ --headed --slowmo 1000Stop on failure:
pytest e2e_tests/ --headed --pause-on-failureRun one test:
pytest e2e_tests/test_platform.py::TestUserOnboarding::test_signup -vSee docs/E2E_TESTING_GUIDE.md for complete guide with:
- All Playwright commands
- How to write new tests
- Troubleshooting tips
- Best practices
You're ready to test your platform like a real user! 🎉
./run_e2e_tests.sh