Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy authored Nov 13, 2024
1 parent 1aba357 commit 7465b18
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions docs/contributing/core/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,20 +248,29 @@ It takes 5-10 minutes to run the full unit test suite.
If you run acceptance tests with the `--all` option, it will run tests in a real browser.
This takes 30-40 minutes to run.
This may repeatedly launch and close browser windows that gain focus, disrupting you from doing any other work.
If this happens, you can use `headlesschrome` as testbrowser by setting an environment variable `export ROBOT_BROWSER="headlesschrome"` and again run `bin/test --all`.
If this happens, you can use `headlesschrome` as the test browser.
First set an environment variable.

Since we use [Playwright](https://playwright.dev/) for our robottests you have to install it first.
`plone.app.robotframework` provides a script for that:
```shell
export ROBOT_BROWSER="headlesschrome"
```

Then run all tests again.

```shell
bin/test --all
```

Plone uses [Playwright](https://playwright.dev/) to run robot tests.
`plone.app.robotframework` provides a script to install Playwrite browsers.

```shell
# Install playwright browsers
./bin/rfbrowser init
```

After the browser resources are downloaded and initalized you can run the tests.
After the script downloads and initalizes browser resources, you can run the acceptance tests.

```shell
# Run acceptance tests
./bin/test --all
```

Expand Down

0 comments on commit 7465b18

Please sign in to comment.