Skip to content

Commit

Permalink
rename headless reseed-db volume folder
Browse files Browse the repository at this point in the history
  • Loading branch information
schiwaa committed Dec 11, 2024
1 parent c54a569 commit 17766e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,7 @@ cython_debug/
env.zip
env_passphrase

relationmapper_theory/
relationmapper_theory/

# volume bind folder for the init script in headless mode
.initdata4headless
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
- .env.test
volumes:
- ./frontend-e2e/:/app
- ./bin/init-data/stemmarest/:/app/cypress/stemmarest
- ./bin/init-data/stemmarest/:/app/cypress/.initdata4headless
entrypoint: >
/bin/bash -c "sleep 120 && # Waiting for other services to be ready
npm install -g npm@latest &&
Expand Down
4 changes: 2 additions & 2 deletions frontend-e2e/cypress/e2e/experimental.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('delete all traditions and users in the api, re-seed the db', () => {
})
})
})
// DON'T cy.reload() ==> Cannot read properties of undefined (reading 'name'). TO DO: check why
// cy.reload() // DON'T <== Cannot read properties of undefined (reading 'name'). Issue # 169
cy.log('All traditions deleted.')

cy.log('Delete all users:')
Expand Down Expand Up @@ -148,7 +148,7 @@ describe('delete all traditions and users in the api, re-seed the db', () => {
cy.log(result.stderr)
})
} else {
cy.exec('./cypress/stemmarest/init_test_data.sh', // currently from a volume, cf. docker-compose.test.yml
cy.exec('./cypress/.initdata4headless/init_test_data.sh', // currently from a volume, cf. docker-compose.test.yml
{ env: { STEMMAREST_ENDPOINT: Cypress.env('CY_STEMMAREST_ENDPOINT') } }
).then(function(result) {
cy.log(result.code)
Expand Down

0 comments on commit 17766e1

Please sign in to comment.