Skip to content

Commit

Permalink
tests: updated Playwright test instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Oct 24, 2024
1 parent 29d8265 commit 9e98252
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,19 @@ To run tests with HTML/JS, run the following command:
openfl test html5
```

To run tests headless in Chromium, WebKit and Firefox, run the following commands:
You can also run tests headless in Chromium, WebKit and Firefox.

First, run the following commands one time to install dependencies:

```sh
npm ci
npx playwright install
npx playwright install-deps
```

Then, run the following commmands to run the tests:

```sh
haxelib run openfl build html5 -final -Dheadless_html5
node playwright-runner.js
```
```

0 comments on commit 9e98252

Please sign in to comment.