File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -248,12 +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 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.
254
272
255
273
``` shell
256
- # Run acceptance tests
257
274
./bin/test --all
258
275
```
259
276
You can’t perform that action at this time.
0 commit comments