What problem does it solve?
Playwright's built-in screenshot option does not work with Electron apps, making it hard to see what the UI looked like when an E2E test fails. This Skill guides you through manually adding screenshot capture to failing tests so you can visually inspect application state.
Core Features & Use Cases
- Manual Screenshot Injection: Adds
page.screenshot() calls at key points in a test to capture full-page or element-level images.
- Electron-Aware Workflow: Retrieves the page via
electronApp.firstWindow() or the po PageObject fixture, working around Playwright's Electron limitations.
- Iterative Debugging Loop: Runs the test with retries disabled, reads the captured PNGs, checks Playwright traces, and cleans up debug artifacts afterward.
- Use Case: A test in
e2e-tests/main.spec.ts fails intermittently. Use this Skill to insert screenshots before and after the failing step, run the test, and view the images to discover a hidden error dialog.
Quick Start
Debug the failing E2E test in e2e-tests/main.spec.ts by adding screenshots at key points and showing me what the UI looks like when it fails.