Skip to content

Commit

Permalink
Add info to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarkelov committed Mar 1, 2020
1 parent 33e4d00 commit 0bed99a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,32 @@ module.exports = {
}
```

From version **0.0.12** you can run you tests for multiple devices.

```javascript
module.exports = {
devices: ["iPhone 6", "Pixel 2"],
...
}
```

It will run your tests depending on you playwright package.

- If you are using specific playwright package, it will run test for this specific browser
- With installed **playwright** package you can define browsers with config:

```javascript
module.exports = {
browsers: ["chromium", "firefox"],
devices: ["iPhone 6", "Pixel 2"],
...
}
```

If there is no defined browsers in config it will run tests for chromium browser.

[More details](https://github.com/mmarkelov/jest-playwright/pull/54#issuecomment-592514337)

- You must run your tests with **jest-playwright**

```json
Expand Down

0 comments on commit 0bed99a

Please sign in to comment.