Skip to content

Commit

Permalink
Bumps version and switches package name to our match npm org
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Pohl committed Jan 3, 2020
1 parent f628adc commit 6210f6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ Inside the `Resources/app/<environment>/test/e2e` folder, please run `npm init -
Now install this package using the following command:

```bash
npm install --save github:shopware/e2e-testsuite-platform#master
npm install --save @shopware-ag/e2e-testsuite-platform
```

Next up, please create a new file `e2e/cypress/plugins/index.js` with the following content:

```js
module.exports = require('@shopware/e2e-testsuite-platform/cypress/plugins');
module.exports = require('@shopware-ag/e2e-testsuite-platform/cypress/plugins');
```

Last but not least, create a new file `e2e/cypress/support/index.js` with the following content:

```js
// Require test suite commons
require('@shopware/e2e-testsuite-platform/cypress/support');
require('@shopware-ag/e2e-testsuite-platform/cypress/support');
```

## Writing tests
Expand Down Expand Up @@ -109,7 +109,7 @@ In the following configuration, a new job called `.E2E` was created as a templat
- chown -R 1000:1000 .
- docker run --name cypress -d -t --add-host="docker.vm:$(hostname -I)" -e CYPRESS_baseUrl=http://docker.vm:8000 -v $(pwd)/custom/plugins/$PLUGINAME/src/Resources/app/$MODULE/test/e2e:/e2e -v $(pwd):/app cypress/browsers:node10.11.0-chrome75
- docker exec cypress npm clean-install --prefix /e2e
- forever start custom/plugins/$PLUGINAME/src/Resources/app/$MODULE/test/e2e/node_modules/@shopware/e2e-testsuite/routes/cypress.js
- forever start custom/plugins/$PLUGINAME/src/Resources/app/$MODULE/test/e2e/node_modules/@shopware-ag/e2e-testsuite/routes/cypress.js
- docker exec cypress npx cypress run --project /e2e --browser chrome --config baseUrl=http://docker.vm:8000 --config numTestsKeptInMemory=0 --spec e2e/cypress/integration/**/*
- docker rm -f cypress

Expand Down Expand Up @@ -323,5 +323,5 @@ npm link
# custom/plugins/customized-product/src/Resources/app/storefront/test/e2e

npm uninstall # removes the remote copy of the package from github
npm link @shopware/e2e-testsuite-platform
npm link @shopware-ag/e2e-testsuite-platform
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopware/e2e-testsuite-platform",
"version": "1.1.0",
"name": "@shopware-ag/e2e-testsuite-platform",
"version": "1.1.1",
"description": "E2E Testsuite for Shopware 6 using Cypress.js",
"bin": {
"cypress": "node_modules/.bin/cypress"
Expand Down

0 comments on commit 6210f6d

Please sign in to comment.