Screenshot Workflow
This workflow will run a local server in a github action, take screenshots using Playwright, upload those screenshots to imgur, and post them as a comment on an issue or pull request.
Instructions
To activate this workflow all you need to do is leave a comment in this format:
/screenshot browser path {selector}
Your comment can contain as many of these commands as you want, the workflow will post all of the screenshots in the same comment.
browser
: Represents the browser being run by playwright, try using webkit
or chromium
.
path
: Represents the path being screenshotted by playwright, this demo project only has a root path /
.
selector
: An optional flag representing a query selector of an element to screenshot instead of a whole page.
These options allow contributors and maintainers to screenshot various new features, or compare issues across browser easily by…