You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contributing/core/index.md
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -248,20 +248,29 @@ It takes 5-10 minutes to run the full unit test suite.
248
248
If you run acceptance tests with the `--all` option, it will run tests in a real browser.
249
249
This takes 30-40 minutes to run.
250
250
This may repeatedly launch and close browser windows that gain focus, disrupting you from doing any other work.
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`.
251
+
If this happens, you can use `headlesschrome` as the test browser.
252
+
First set an environment variable.
252
253
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:
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.
255
266
256
267
```shell
257
-
# Install playwright browsers
258
268
./bin/rfbrowser init
259
269
```
260
270
261
-
After the browser resources are downloaded and initalized you can run the tests.
271
+
After the script downloads and initalizes browser resources, you can run the acceptance tests.
0 commit comments