Skip to content

Commit

Permalink
Merge pull request woocommerce#26522 from woocommerce/tweak/e2e-tests…
Browse files Browse the repository at this point in the history
…-suite

Tweaks to e2e tests suite README
  • Loading branch information
rrennick authored May 21, 2020
2 parents 4750a2d + f34e73d commit 47aab8c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/e2e/env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The `@woocommerce/e2e-environment` package exports configuration objects that ca

### Babel Config

Extend your project's Babel config to contain the expected presets for E2E testing.
Make sure you `npm install @babel/preset-env --save` if you have not already done so. Afterwards, extend your project's `babel.config.js` to contain the expected presets for E2E testing.

```js
const { babelConfig: e2eBabelConfig } = require( '@woocommerce/e2e-environment' );
Expand Down Expand Up @@ -109,7 +109,7 @@ module.exports = {
The E2E environment will look for a `docker-compose.yaml` file in your project root. This will be combined with the base Docker config in the package. This is where you'll map your local project files into the Docker container(s).

```yaml
version: '3.7'
version: '3.3'

services:

Expand Down Expand Up @@ -185,3 +185,7 @@ Stop Docker
```bash
npm explore @woocommerce/e2e-environment -- npm run docker:down
```

## Additional information

Refer to [`tests/e2e/specs`](https://github.com/woocommerce/woocommerce/tree/master/tests/e2e/specs) for some test examples, and [`tests/e2e`](https://github.com/woocommerce/woocommerce/tree/master/tests/e2e) for general information on e2e tests.

0 comments on commit 47aab8c

Please sign in to comment.