Generating screenshot manuals from E2E tests of user scenarios
The author tested whether E2E tests[1] of user scenarios could be reused for user manuals, using a sample Todo app. The scenario steps are written in natural language, and the e2e tool runs them in a browser the way a user would; when the expected result appears, the test takes a screenshot.
A guide is built from the instruction text and the images, and it is updated only when the tests, images and link checks pass. If a run fails, the previous guide is kept, and the test and the page share an ID such as TC-001. Site building is handled by Blume[2], a tool that turns Markdown into a documentation site with a table of contents and search, and the pages are written in MDX[3].
In the demo, the task "buy milk" is marked complete: before the click there is 1 incomplete task, and after it there are 0, and the test checks this before taking the screenshot. The author notes that only guide generation on the sample app was checked, and the time saved in real work was not measured.
Repository Blume github.com
Open-source docs framework that turns Markdown into a documentation site with a table of contents and search.
Sources
-
JPZenn JA
【e2e】ユーザーシナリオでE2Eテストを回し、スクショ付き手順書を自動作成してみた







