Fix cypress test run in docker

This commit is contained in:
Thilina Pituwala
2020-05-24 01:29:36 +02:00
parent c366248434
commit b68401efeb
50 changed files with 4359 additions and 1872 deletions

View File

@@ -19,6 +19,21 @@ services:
dockerfile: Dockerfile-testing
ports:
- 8090:8090
logging:
driver: none
# Cypress container
cypress:
# the Docker image to use from https://github.com/cypress-io/cypress-docker-images
image: "cypress/included:3.2.0"
depends_on:
- icehrm-testing
environment:
# pass base url to test pointing at the web application
- CYPRESS_baseUrl=http://icehrm-testing:8090
# share the current folder as volume to avoid copying
working_dir: /e2e
volumes:
- ./test/frontend:/e2e
volumes:
db_data: