have cypress running locally - the tests still fail

This commit is contained in:
Ulf Gebhardt 2021-04-09 23:01:21 +02:00
parent 3baabc6e8f
commit e3e03415e1
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
6 changed files with 401 additions and 267 deletions

View File

@ -24,6 +24,8 @@ module.exports = (on, config) => {
config.env.NEO4J_USERNAME = parsed.NEO4J_USERNAME config.env.NEO4J_USERNAME = parsed.NEO4J_USERNAME
config.env.NEO4J_PASSWORD = parsed.NEO4J_PASSWORD config.env.NEO4J_PASSWORD = parsed.NEO4J_PASSWORD
config.env.JWT_SECRET = parsed.JWT_SECRET config.env.JWT_SECRET = parsed.JWT_SECRET
// config.baseUrl = 'http://localhost:3000'
// config.chromeWebSecurity = false
on('file:preprocessor', cucumber()) on('file:preprocessor', cucumber())
return config return config
} }

View File

@ -19,7 +19,7 @@ import './commands'
import './factories' import './factories'
// intermittent failing tests // intermittent failing tests
import 'cypress-plugin-retries' // import 'cypress-plugin-retries'
// Alternatively you can use CommonJS syntax: // Alternatively you can use CommonJS syntax:
// require('./commands') // require('./commands')

View File

@ -30,6 +30,17 @@ services:
######################################################## ########################################################
neo4j: neo4j:
image: ocelotsocialnetwork/neo4j:community image: ocelotsocialnetwork/neo4j:community
#environment:
# - NEO4J_dbms_connector_bolt_enabled=true
# - NEO4J_dbms_connector_bolt_tls__level=OPTIONAL
# - NEO4J_dbms_connector_bolt_listen__address=0.0.0.0:7687
# - NEO4J_auth=none
# - NEO4J_dbms_connectors_default__listen__address=0.0.0.0
# - NEO4J_dbms_connector_http_listen__address=0.0.0.0:7474
# - NEO4J_dbms_connector_https_listen__address=0.0.0.0:7473
networks:
# So we can access the neo4j query browser from our host machine
- external-net
######################################################## ########################################################
# MAINTENANCE ########################################## # MAINTENANCE ##########################################

View File

@ -19,8 +19,8 @@
"cypress:backend": "cd backend && yarn run dev", "cypress:backend": "cd backend && yarn run dev",
"cypress:webapp": "cd webapp && yarn run dev", "cypress:webapp": "cd webapp && yarn run dev",
"cypress:setup": "run-p cypress:backend cypress:webapp", "cypress:setup": "run-p cypress:backend cypress:webapp",
"cypress:run": "cross-env cypress run --browser firefox", "cypress:run": "cross-env cypress run --browser electron",
"cypress:open": "cross-env cypress open --browser firefox", "cypress:open": "cross-env cypress open --browser electron",
"cucumber:setup": "cd backend && yarn run dev", "cucumber:setup": "cd backend && yarn run dev",
"cucumber": "wait-on tcp:4000 && cucumber-js --require-module @babel/register --exit", "cucumber": "wait-on tcp:4000 && cucumber-js --require-module @babel/register --exit",
"release": "yarn version --no-git-tag-version --no-commit-hooks --no-commit && auto-changelog --latest-version $(node -p -e \"require('./package.json').version\") && cd backend && yarn version --no-git-tag-version --no-commit-hooks --no-commit --new-version $(node -p -e \"require('./../package.json').version\") && cd ../webapp && yarn version --no-git-tag-version --no-commit-hooks --no-commit --new-version $(node -p -e \"require('./../package.json').version\")" "release": "yarn version --no-git-tag-version --no-commit-hooks --no-commit && auto-changelog --latest-version $(node -p -e \"require('./package.json').version\") && cd backend && yarn version --no-git-tag-version --no-commit-hooks --no-commit --new-version $(node -p -e \"require('./../package.json').version\") && cd ../webapp && yarn version --no-git-tag-version --no-commit-hooks --no-commit --new-version $(node -p -e \"require('./../package.json').version\")"
@ -34,10 +34,9 @@
"codecov": "^3.7.1", "codecov": "^3.7.1",
"cross-env": "^7.0.2", "cross-env": "^7.0.2",
"cucumber": "^6.0.5", "cucumber": "^6.0.5",
"cypress": "^4.2.0", "cypress": "^7.0.1",
"cypress-cucumber-preprocessor": "^2.2.1", "cypress-cucumber-preprocessor": "^2.2.1",
"cypress-file-upload": "^3.5.3", "cypress-file-upload": "^3.5.3",
"cypress-plugin-retries": "^1.5.2",
"date-fns": "^2.12.0", "date-fns": "^2.12.0",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"expect": "^25.3.0", "expect": "^25.3.0",

View File

@ -17,7 +17,7 @@ const environment = {
const server = { const server = {
GRAPHQL_URI: process.env.GRAPHQL_URI || 'http://localhost:4000', GRAPHQL_URI: process.env.GRAPHQL_URI || 'http://localhost:4000',
BACKEND_TOKEN: process.env.BACKEND_TOKEN || 'NULL', BACKEND_TOKEN: process.env.BACKEND_TOKEN || 'NULL',
WEBSOCKETS_URI: process.env.WEBSOCKETS_URI || 'ws://localhost:4000/graphql', WEBSOCKETS_URI: process.env.WEBSOCKETS_URI || 'ws://localhost:3000/api/graphql',
} }
const sentry = { const sentry = {

644
yarn.lock

File diff suppressed because it is too large Load Diff