stale-park-86404
07/22/2022, 9:17 AMbest-glass-25152
07/23/2022, 11:58 PMshy-refrigerator-28608
07/24/2022, 6:38 AMgorgeous-pillow-31498
07/25/2022, 5:11 AMmysterious-motherboard-13344
07/25/2022, 6:26 AMfresh-doctor-14925
07/25/2022, 8:09 AMworried-pilot-52378
07/25/2022, 10:03 AMnpm notice Run `npm install -g npm@8.15.0` to update!
npm notice
npm ERR! code 1
npm ERR! path /app/node_modules/cypress
npm ERR! command failed
npm ERR! command sh -c node index.js --exec install
npm ERR! Cypress cannot write to the cache directory due to file permissions
npm ERR!
npm ERR! See discussion and possible solutions at
npm ERR! https://github.com/cypress-io/cypress/issues/1281
npm ERR!
npm ERR! ----------
npm ERR!
npm ERR! Failed to access /root/.cache/Cypress:
npm ERR!
npm ERR! EACCES: permission denied, mkdir '/root/.cache/Cypress'
npm ERR!
npm ERR! ----------
npm ERR!
npm ERR! Platform: linux-x64 (Debian - 11.4)
npm ERR! Cypress Version: 9.1.1
and in my .yml file I got the following:
- name: "npm ci"
run: >
docker run --rm -v ~/.npm-docker:/root/.npm -v $(pwd):/app -w /app repo/tag npm ci
any help would be very appreciatedacceptable-hamburger-48790
07/25/2022, 10:05 AMworried-pilot-52378
07/25/2022, 10:09 AMacceptable-hamburger-48790
07/25/2022, 10:09 AMacceptable-hamburger-48790
07/25/2022, 10:11 AMnutritious-lamp-42644
07/25/2022, 1:06 PMnutritious-lamp-42644
07/25/2022, 1:07 PMloud-city-40050
07/25/2022, 1:22 PMloud-city-40050
07/25/2022, 7:41 PMabundant-eve-90571
07/26/2022, 7:59 AMfresh-doctor-14925
07/26/2022, 8:07 AMpackage.json
2) You haven't run npm install
abundant-eve-90571
07/26/2022, 8:11 AMabundant-eve-90571
07/26/2022, 8:11 AMgreen-book-63455
07/26/2022, 10:50 AMgray-kilobyte-89541
07/26/2022, 12:04 PMwindow
object? Because if you do cy.visit
after that, the new window
object will be created, losing your auth token. You probably want to use onBeforeLoad
to set the authToken, see https://on.cypress.io/visit optionsmicroscopic-soccer-23646
07/26/2022, 1:31 PMwhite-lizard-79706
07/26/2022, 3:23 PMcy.intercept
and cy.wait
, however i can't make it work. On my local environment when i launch my frontend and backend servers, my test passes as the API call is made. However, the call is not silenced and the cy.wait('@apiCall')
does not work. Also my test does not work in Github Actions, i have this error : AxiosError: The following error originated from your application code, not from Cypress. It was caused by an unhandled promise rejection.
. I have the impression that github actions need a special ci environment file but i don't know where to tell cypress to look into those env variables when in continous integration.
Anyone had the same issue or knows about cypress X axios X github actions combined ?
Some of my code :
test.cy.js
cy.intercept('GET', '/coaches/coach-informations/30283', {
data: {
email: 'hello@hello.com',
},
}).as('getCoach')
cy.visit('/hello?coach=30283')
cy.wait('@getCoach')
acceptable-hamburger-48790
07/26/2022, 5:51 PMmysterious-kitchen-59722
07/26/2022, 8:38 PMearly-dentist-91255
07/27/2022, 6:57 AMloud-city-40050
07/27/2022, 9:12 AMbrief-midnight-25297
07/27/2022, 10:10 AMwide-hospital-71307
07/27/2022, 10:31 AMwide-hospital-71307
07/27/2022, 10:32 AM