Playwright Docs Creator
It its a very POC and it is not ready for anything really.
Its something simple that came up during a conversation with @Dueen "what if your e2e tests generated step by step docs so that your user docs are always up to date.
The more I think about this, I dont think it a very good idea, but It can definitely be a good place to start writing docs for End users.
All this is is a custom reporter that generates a markdown file with the steps that the test took.
See here for the test, but in simple words it a test to test how to create a repo on Github.
The test output is here
- Clone the repo
- Run
npm install
- Run
npm run test
-
Ideally the test will have no screenshot, and we inject the screenshot methods and rerun the test ourselves
-
...