mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Testing generated html pages with webdriver.io?

Open michael-kerscher opened this issue 11 months ago • 0 comments

Problem

The comprehensive-rust repository is using mdBook and to ensure that we can safely modify code and update dependencies and not break anything in the process we now use tests based on webdriver.io (wdio). This is a powerful test framework running in a browser (headless) with a lot of interesting features like mocking APIs (e.g. for playground interaction).

Some months ago I did not see any tests in this repo and originally I wanted to ask you and get your opinion if you would consider writing some tests with wdio but it seems that you committed to another framework already. While digging through this repository I noticed that you also started testing the GUI.

Is this a fixed choice or would you consider wdio? I could offer to support setting this up and support writing tests for the generated html. But I also understand if you want to stick with what you already have and this might suit you.

Overall I'm already happy to see that you are working on testing the GUI! :)

Proposed Solution

No response

Notes

No response

michael-kerscher avatar Mar 07 '25 14:03 michael-kerscher