FixMyBerlin / fixmy.frontend

FixMyBerlin - A Mobility Platform for Berlin
https://fixmyberlin.de
GNU Affero General Public License v3.0
19 stars 6 forks source link

Cypress Chrome Tests: user-data-dir setting breaks lokal e2e tests #593

Open s-pic opened 4 years ago

s-pic commented 4 years ago

Issue description

Running tests in chrome fails.

Chrome complains that the is no right access to the user defined in https://github.com/FixMyBerlin/fixmy.frontend/blob/develop/cypress/plugins/index.js#L26

Steps to reproduce the issue

Run npm start, wait till dev server is ready Run npm test:e2e

What's the expected result?

What's the actual result?

Additional details / screenshot

image

image


Timed out waiting for the browser to connect. Retrying...
Failed to connect to Chrome, retrying in 1 second (attempt 21/32)
Failed to connect to Chrome, retrying in 1 second (attempt 22/32)
Failed to connect to Chrome, retrying in 1 second (attempt 23/32)
Failed to connect to Chrome, retrying in 1 second (attempt 24/32)
Failed to connect to Chrome, retrying in 1 second (attempt 25/32)
Failed to connect to Chrome, retrying in 1 second (attempt 26/32)
Failed to connect to Chrome, retrying in 1 second (attempt 27/32)
Failed to connect to Chrome, retrying in 1 second (attempt 28/32)
Failed to connect to Chrome, retrying in 1 second (attempt 29/32)
Failed to connect to Chrome, retrying in 1 second (attempt 30/32)
Failed to connect to Chrome, retrying in 1 second (attempt 31/32)
Failed to connect to Chrome, retrying in 1 second (attempt 32/32)
undefined

undefined

    katasterKi profiles
      profile intro questions
        profile single choice question 1
          The reports landing page
            1) "before all" hook for "shows a progress bar"
          profile single choice question 2
            2) "before all" hook for "shows a progress bar"
          profile single choice question 3
TypeError: Cannot set property 'err' of undefined
    at Reporter.mergeErr (C:\Users\SaPic\AppData\Local\Cypress\Cache\3.8.2\Cypress\resources\app\packages
\server\lib\reporter.js:117:14)
    at Reporter.parseArgs (C:\Users\SaPic\AppData\Local\Cypress\Cache\3.8.2\Cypress\resources\app\package
s\server\lib\reporter.js:246:20)
    at Reporter.emit (C:\Users\SaPic\AppData\Local\Cypress\Cache\3.8.2\Cypress\resources\app\packages\ser
ver\lib\reporter.js:236:23)
    at Object.onMocha (C:\Users\SaPic\AppData\Local\Cypress\Cache\3.8.2\Cypress\resources\app\packages\se
rver\lib\project.js:359:18)
    at Socket.<anonymous> (C:\Users\SaPic\AppData\Local\Cypress\Cache\3.8.2\Cypress\resources\app\package
s\server\lib\socket.js:303:32)
    at Socket.emit (events.js:203:13)
    at C:\Users\SaPic\AppData\Local\Cypress\Cache\3.8.2\Cypress\resources\app\packages\socket\node_module
s\socket.io\lib\socket.js:528:12
    at processTicksAndRejections (internal/process/task_queues.js:75:11)
s-pic commented 4 years ago

@ciex Can you look into this?

VitorJeremias commented 4 years ago

I have the same bug. Anyone know how to fix?