Skip to content

ahwelgemoed/playwright_doc_gen

Repository files navigation

Playwright Docs Creator

This script is used to generate the docs from Playwright e2e test

It its a very POC and it is not ready for anything really.

Philosophy

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.

Tech

All this is is a custom reporter that generates a markdown file with the steps that the test took.

Example:

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

How to use

  • Clone the repo
  • Run npm install
  • Run npm run test

Some Notes

  • Ideally the test will have no screenshot, and we inject the screenshot methods and rerun the test ourselves

  • ...

About

POC : User facing docs from E2E.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published