DanailMinchev / cypress-docker-compose-bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reproduce Happy Path

  1. Run:
    docker-compose up --build --abort-on-container-exit --exit-code-from cypress
    
    The test should be executed successfully.

Reproduce Unhappy Path

  1. Change CYPRESS_baseUrl to http://app:5000/ in docker-compose.yml file
  2. Run:
    docker-compose up --build --abort-on-container-exit --exit-code-from cypress
    
    The test should hang (using Electron browser).
  3. If you change the Cypress version to 4.12.1 in package.json and run:
    npm install
    docker-compose up --build --abort-on-container-exit --exit-code-from cypress
    
    The test is successful again. This is different behaviour from Cypress 5.1.0 where the test hangs.

Outcome

  • When using Cypress 5.1.0 the test is hanging
  • When using Cypress 4.12.1 the test is not hanging

About


Languages

Language:Shell 61.4%Language:JavaScript 28.1%Language:Dockerfile 10.4%Language:HTML 0.1%