From 6efd2fa34521145ad2df2565b4af82901d6b34af Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Tue, 14 Jan 2020 13:15:49 +0100 Subject: [PATCH] Fix: Cypress Neo4j authentication without Docker - It's a bit of a pain to need to run Docker just to run the cypress tests, and while it would be nice to use the same .env, we have an issue with relative paths, dotenv, and cypress playing nice together. --- cypress.env.template.json | 5 +++++ cypress/README.md | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 cypress.env.template.json diff --git a/cypress.env.template.json b/cypress.env.template.json new file mode 100644 index 000000000..59cf04ab6 --- /dev/null +++ b/cypress.env.template.json @@ -0,0 +1,5 @@ +{ + "NEO4J_URI": "bolt://localhost:7687", + "NEO4J_USERNAME": "neo4j", + "NEO4J_PASSWORD": "letmein" +} diff --git a/cypress/README.md b/cypress/README.md index 662d0b51c..a98b6f514 100644 --- a/cypress/README.md +++ b/cypress/README.md @@ -16,6 +16,12 @@ First, you have to tell cypress how to connect to your local neo4j database among other things. You can copy our template configuration and change the new file according to your needs. +Make sure you are at the root level of the project. Then: +```bash +# in the top level folder Human-Connection/ +$ cp cypress.env.template.json cypress.env.json +``` + To start the services that are required for cypress testing, run: ```bash