chore: Enhance documentation for E2E testing:
- Added clarity and structure to README files, including recent updates and getting started sections. - Improved manual verification documentation for CrowdSec authentication, emphasizing expected outputs and success criteria. - Updated debugging guide with detailed output examples and automatic trace capture information. - Refined best practices for E2E tests, focusing on efficient polling, locator strategies, and state management. - Documented triage report for DNS Provider feature tests, highlighting issues fixed and test results before and after improvements. - Revised E2E test writing guide to include when to use specific helper functions and patterns for better test reliability. - Enhanced troubleshooting documentation with clear resolutions for common issues, including timeout and token configuration problems. - Updated tests README to provide quick links and best practices for writing robust tests.
This commit is contained in:
@@ -25,11 +25,13 @@ The CrowdSec "Ban IP" and "Unban IP" modals were identified as lacking standard
|
||||
Verification was performed using the Playwright E2E test suite running against a Dockerized environment.
|
||||
|
||||
### Test Environment
|
||||
|
||||
- **Container**: `charon-e2e`
|
||||
- **Base URL**: `http://localhost:8080`
|
||||
- **Browser**: Firefox
|
||||
|
||||
### Test Execution
|
||||
|
||||
**Command**: `npx playwright test tests/security/crowdsec-decisions.spec.ts -g "should open ban modal"`
|
||||
|
||||
**Result**: ✅ **PASSED**
|
||||
@@ -49,6 +51,7 @@ A broader run of `tests/security/crowdsec-decisions.spec.ts` was also executed,
|
||||
## 4. Code Snippets
|
||||
|
||||
### Ban Modal
|
||||
|
||||
```tsx
|
||||
<div
|
||||
className="fixed inset-0 z-50 flex items-center justify-center"
|
||||
|
||||
Reference in New Issue
Block a user