Test the /sample/test1.jl interactive notebook with Puppeteer
#867 opened on Jan 21, 2021
Description
Introduction
This is a newcomer-friendly issue. Most of Pluto's functionality is documented in this notebook that exists as part of the codebase. We use it whenever we change something to our frontend code, to check that things are still working.
Right now we run this notebook manually, and perform the checks by hand. This issue is about running and testing the reactivity and the features of pluto automatically with the Puppeteer framework.
Puppeteer is a Chromium browser with an API, that we already use to run some simple tests.
What needs to be done
- create a new branch
- create a new .js file in
/test/frontend/__tests__ - add code that will perform actions that a user would do. In puppeteer we usually do that waiting for selectors to show up in the DOM and then executing some browser code.
- make sure that the action had the correct result and nothing exploded
You can take a look at the existing tests, though this one is more advanced. Eventually, we would like all tests from this notebook to run automatically, but small steps are also welcome!
If you're interested in doing that and have more questions, feel free to ask here or in zulip