Merge pull request #26522 from woocommerce/tweak/e2e-tests-suite

Tweaks to e2e tests suite README
This commit is contained in:
Ron Rennick 2020-05-21 13:15:04 -03:00 committed by GitHub
commit 47aab8c56b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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' );
@ -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:
@ -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.