Skip to content

Commit

Permalink
set up new test config
Browse files Browse the repository at this point in the history
  • Loading branch information
adelavega committed Jun 30, 2023
1 parent 6755bb4 commit 5d2b377
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions neuroscout/frontend/cypress.config.ts.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineConfig } from 'cypress'

export default defineConfig({
projectId: 'jfpnqv',
retries: {
runMode: 1,
openMode: 1,
},
defaultCommandTimeout: 30000,
pageLoadTimeout: 180000,
requestTimeout: 30000,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:4000',
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
},
})
2 changes: 1 addition & 1 deletion setup_frontend_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ python manage.py setup_test_db
cd ../
gunicorn -b :4000 neuroscout.core:app --log-level debug --timeout 120 &
cd neuroscout/frontend
cp cypress-test.json cypress.json
cp cypress.config.ts.tests cypress.config.ts
cp src/config.ts.example src/config.ts
echo "Starting web server"
yarn start&

0 comments on commit 5d2b377

Please sign in to comment.