Category : cypress

I’m attempting to get cypress working with rails in a single docker container. I’m using the Simplest possible Rails 6 + docker-compose project (at https://github.com/bdavidxyz/simplest-rails-docker), with cypress/included:3.8.1 (at https://github.com/cypress-io/cypress-docker-images/tree/master/included), based on the End-to-End Testing Web Apps: The Painless Way blog (at https://mtlynch.io/painless-web-app-testing/). After building, I run docker-compose up and cypress tries to start. Then the ..

Read more

I have a docker compose file that holds my cypress container: version: ‘3’ services: # Cypress container cypress: # the Docker image to use from https://github.com/cypress-io/cypress-docker-images image: "cypress/included:4.0.2" depends_on: – web environment: # pass base url to test pointing at the web application – CYPRESS_baseUrl=http://web:8000/ # share the current folder as volume to avoid copying ..

Read more

I’m trying to run cypress tests inside a docker container. It works when my test spec files are located inside ./cypress folder as cypress looks for default folder(cypress/integration) but it could not find spec files when i use different test spec files path( trying to override default folder); I’m using below docker command ; docker ..

Read more

I’m executing cypress tests in mounted directory and I want to clean up after myself by deleting the node_modules: npm uninstall rm -rf node_modules However, from time to time I’m getting errors: rm: cannot remove ‘node_modules/.rxjs.DELETE/src/internal/scheduled’: Directory not empty All files in the volume have the owner nobody:nogroup, so my current user should be able ..

Read more

I’m getting below error when I run the cypress tests in Jenkins pipeline, but works fine locally. Should I set the appData in Dockerfile ? Is election missing write access ? + cypress run –browser chrome [1m[47m[31mA JavaScript error occurred in the main process [30mUncaught Exception: **Error: Failed to get ‘appData’ path** at App.c._setDefaultAppPaths (electron/js2c/browser_init.js:5:1300) ..

Read more