webapp-testing
Webanwendungen mit Playwright-Automatisierung testen
Auch verfügbar von: 7Spade,DYAI2025,davila7,ArtemisAI,7Spade,Azeem-2,anthropics,ComposioHQ,Cam10001110101,AutumnsGrove
Lokale Webanwendungstests erfordern zuverlässige Browser-Automatisierung ohne manuelle Einrichtung. Dieses Toolkit bietet Playwright-Skripte und Server-Verwaltungsdienste zur Optimierung von Frontend-Test-Workflows.
Die Skill-ZIP herunterladen
In Claude hochladen
Gehe zu Einstellungen → Fähigkeiten → Skills → Skill hochladen
Einschalten und loslegen
Teste es
Verwendung von "webapp-testing". Discover all interactive elements on localhost:5173
Erwartetes Ergebnis:
- Found 12 buttons: [0] Submit, [1] Cancel, [2] Login...
- Found 8 links: - Dashboard -> /dashboard, - Profile -> /profile...
- Found 5 input fields: - email (email), - password (password)...
- Screenshot saved to /tmp/page_discovery.png
Verwendung von "webapp-testing". Capture console logs during user flow
Erwartetes Ergebnis:
- Console: [log] App initialized
- Console: [warning] Deprecated API usage
- Console: [error] Failed to load resource: net::ERR_CONNECTION_REFUSED
- Captured 15 console messages. Logs saved to outputs/console.log
Sicherheitsaudit
Niedriges RisikoStatic analysis flagged 38 patterns, but manual review confirms all HIGH-severity findings are false positives. The 'weak cryptographic algorithm' detections are scanner errors on argparse code. Shell backtick findings are Markdown documentation formatting. Subprocess usage in with_server.py is intentional server management functionality requiring explicit CLI invocation. Hardcoded localhost URLs and temp file writes are expected for local testing toolkit.
Probleme mit niedrigem Risiko (1)
Risikofaktoren
⚙️ Externe Befehle (2)
📁 Dateisystemzugriff (2)
Qualitätsbewertung
Was du bauen kannst
Frontend-Regressionstests
Automatisierte Verifizierung von UI-Komponenten nach Codeänderungen, um Breaking Changes vor dem Deployment zu erkennen.
Entwicklungsserver-Validierung
Backend- und Frontend-Server automatisch starten, Integrationstests ausführen und anschließend Ressourcen bereinigen.
Konsolen-Log-Debugging
Browser-Konsolenausgaben erfassen und analysieren, um JavaScript-Fehler und Warnungen während Nutzer-Flows zu identifizieren.
Probiere diese Prompts
Navigate to my local React app at localhost:3000, wait for the page to fully load, and take a screenshot of the homepage.
Visit my web application and list all buttons, links, and form inputs on the current page with their text content and attributes.
Run my automation script while capturing all browser console messages. Save the logs to a file and report any errors or warnings found.
Start my backend server on port 8000 and frontend on port 5173, then run my Playwright test script that logs in, navigates to the dashboard, and verifies key elements are present. Clean up servers after tests complete.
Bewährte Verfahren
- Immer auf networkidle-Zustand warten, bevor mit dynamischen Seiten interagiert wird, um sicherzustellen, dass JavaScript vollständig ausgeführt wurde
- Das with_server.py-Helfer-Skript zur Verwaltung des Server-Lebenszyklus verwenden, anstatt Server manuell zu starten und zu stoppen
- Skripte zunächst mit dem --help-Flag ausführen, um verfügbare Optionen zu verstehen, bevor die Automatisierungslogik angepasst wird
Vermeiden
- Nicht das DOM inspizieren oder Screenshots machen, bevor bei dynamischen Anwendungen auf networkidle gewartet wurde
- Vermeiden, Skript-Quellcode in das Kontextfenster zu lesen – --help-Dokumentation verwenden und als Black-Box-Tools aufrufen
- Keine festen Timeouts wie wait_for_timeout verwenden, wenn spezifische Selektoren mit wait_for_selector abgewartet werden können