Skip to content

Commit 1aba357

Browse files
committed
mention playwright robottest browser setup
1 parent 8dd933b commit 1aba357

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/contributing/core/index.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,17 @@ It takes 5-10 minutes to run the full unit test suite.
248248
If you run acceptance tests with the `--all` option, it will run tests in a real browser.
249249
This takes 30-40 minutes to run.
250250
This may repeatedly launch and close browser windows that gain focus, disrupting you from doing any other work.
251-
If this happens, you can install the `chromedriver` OS package.
252-
See https://developer.chrome.com/docs/chromedriver.
253-
Then run `export ROBOT_BROWSER="headlesschrome"` and again run `bin/test --all`.
251+
If this happens, you can use `headlesschrome` as testbrowser by setting an environment variable `export ROBOT_BROWSER="headlesschrome"` and again run `bin/test --all`.
252+
253+
Since we use [Playwright](https://playwright.dev/) for our robottests you have to install it first.
254+
`plone.app.robotframework` provides a script for that:
255+
256+
```shell
257+
# Install playwright browsers
258+
./bin/rfbrowser init
259+
```
260+
261+
After the browser resources are downloaded and initalized you can run the tests.
254262

255263
```shell
256264
# Run acceptance tests

0 commit comments

Comments
 (0)