Playwright Test Report to Slack
Parses Playwright HTML and JSON test reports and posts structured summaries to Slack using the Slack Web API. Reads test results from the playwright-report directory, extracts pass/fail/flaky counts using the @playwright/test reporter API, and posts rich Block Kit messages with test suite breakdowns via chat.postMessage.
Prerequisites
Node.js
Installation
Use the upstream install or setup path that matches your environment:
- npm install -g @playwright/cli@latest
- npm i playwright
Requirements and caveats from upstream:
Basic usage or getting-started notes:
bash
Optionally install skills for richer agent integration:
playwright-cli install --skills
Extracted from upstream docs: https://raw.githubusercontent.com/microsoft/playwright/HEAD/README.md