diff --git a/README.md b/README.md index cac4ab1a5..765cd1770 100644 --- a/README.md +++ b/README.md @@ -71,3 +71,18 @@ You can configure the `DEFAULT_SYNC_SERVER` environment variable to set the defa ``` DEFAULT_SYNC_SERVER=https://sync.myserver ``` + +## Running E2E tests + +In order to run a stable server environment for E2E tests that will is up to date with what we have on production please checkout locally the [e2e repository](https://github.com/standardnotes/e2e). + +To start the server type in the e2e repository: +``` +yarn install --immutable +yarn test:stable-server +``` + +Then once the whole server infra is up and ready for your tests you can run the e2e suite in the local browser by typing (make sure you have built all the packages beforehand): +``` +yarn start:server:e2e +``` diff --git a/package.json b/package.json index 2fdeadfb6..7bc002b52 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "build:snjs": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/snjs --exclude @standardnotes/components-meta run build", "start:server:web": "lerna run start --scope=@standardnotes/web-server", "start:server:web:localhost": "lerna run start:no-binding --scope=@standardnotes/web-server", + "start:server:e2e": "lerna run start:test-server --scope=@standardnotes/snjs", "prepare": "husky install", "reset": "find . -type dir -name node_modules | xargs rm -rf && rm -rf yarn.lock && yarn install", "release:prod": "lerna version --conventional-commits --yes -m \"chore(release): publish\"",