Skip to content

Commit 646b848

Browse files
Mention playwright robottest browser setup for local testing (#1772)
* mention playwright robottest browser setup * Apply suggestions from code review --------- Co-authored-by: Steve Piercy <[email protected]>
1 parent 7f75e8b commit 646b848

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

docs/contributing/core/index.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,29 @@ 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 the test browser.
252+
First set an environment variable.
253+
254+
```shell
255+
export ROBOT_BROWSER="headlesschrome"
256+
```
257+
258+
Then run all tests again.
259+
260+
```shell
261+
bin/test --all
262+
```
263+
264+
Plone uses [Playwright](https://playwright.dev/) to run robot tests.
265+
`plone.app.robotframework` provides a script to install Playwrite browsers.
266+
267+
```shell
268+
./bin/rfbrowser init
269+
```
270+
271+
After the script downloads and initalizes browser resources, you can run the acceptance tests.
254272

255273
```shell
256-
# Run acceptance tests
257274
./bin/test --all
258275
```
259276

0 commit comments

Comments
 (0)