diff --git a/docker-compose.yml b/docker-compose.yml index 660b242..dd5cb34 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ services: environment: - CYPRESS_baseUrl=http://web command: npx cypress run + # network_mode: host # uncomment for running Cypress GUI # mount the host directory e2e/cypress and the file e2e/cypress.config.js as # volumes within the container # this means that: @@ -34,3 +35,4 @@ services: volumes: - ./e2e/cypress:/app/cypress - ./e2e/cypress.config.js:/app/cypress.config.js + # - ~/.Xauthority:/root/.Xauthority:rw # uncomment for running Cypress GUI diff --git a/e2e/Dockerfile b/e2e/Dockerfile index 66b0510..acc981b 100644 --- a/e2e/Dockerfile +++ b/e2e/Dockerfile @@ -1,4 +1,7 @@ FROM cypress/base:16 +# For using Cypress GUI in linux use the following +# FROM cypress/browsers:chrome69 as e2eBuild +# RUN apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth WORKDIR /app # dependencies will be installed only if the package files change