Skip to content
Back to skills

E2e Testing

ASecurity

Playwright E2E test patterns for SPA market pages

  • 225 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 4, 2026
testingpythonshellbashtestingapifrontend

Works with

  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill e2e-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of E2e Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for E2e Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-e2e-testing/badge)](https://www.skillsdirectory.com/skills/neversight-e2e-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: e2e-testing
description: Playwright E2E test patterns for SPA market pages
---
## E2E Testing Patterns

### Project Structure
```
pw_test/                          # Playwright test scripts (standalone)
  test_market_ui_smoke.py         # Market page smoke tests
  test_frontend_interaction_smoke.py  # Full UI interaction tests
tests/e2e/                        # pytest wrappers
  test_market_ui_smoke.py         # Pytest entry for market tests
  test_frontend_interaction_smoke.py
```

### Running E2E Tests
```bash
# Run all E2E
.venv\Scripts\python.exe -m pytest tests/e2e/ --no-cov -v

# Run standalone (no pytest)
.venv\Scripts\python.exe pw_test/test_market_ui_smoke.py
```

### Test Pattern
1. Static server serves `web/` directory on port 8768/8769
2. Mock API routes with `page.route("**/*", handler)`
3. Seed context with `add_init_script()` (user, WebSocket mock, localStorage)
4. Navigate, wait, assert, cleanup

### Key Patterns
- Use `wait_for_function()` for dynamic content
- Use `wait_for_timeout(2000)` as fallback (not as primary wait)
- Mock WebSocket with stub class (real WS needs server)
- Use `page.evaluate()` to call JS functions directly
- Each test gets fresh browser context (no state leakage)

### Windows Notes
- Playwright must be installed: `python -m playwright install chromium`
- Use `powershell -Command` for running tests
- CRLF warnings are normal

Files in this skill

  • SKILL.md1.4 KB
  • description_ar.txt80 B
  • description_cn.txt48 B
  • description_de.txt47 B
  • description_en.txt50 B
  • description_es.txt67 B
  • description_fr.txt62 B
  • description_it.txt66 B
  • description_ja.txt71 B
  • description_ko.txt62 B
  • description_ru.txt84 B
  • description_tw.txt48 B
  • stats.json68 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.