cypress-io / cypress-example-recipes

Various recipes for testing common scenarios with Cypress
https://on.cypress.io/examples
3.43k stars 1.34k forks source link

CircleCI failure in `fundamentals__window-size` for PR from fork #868

Open MikeMcC399 opened 8 months ago

MikeMcC399 commented 8 months ago

Issue

https://github.com/cypress-io/cypress-example-recipes/blob/11647775546f106b8355dc088934bc2c4325eaaa/.circleci/config.yml#L446-L449

Running command: npm run test:ci:record -- --group fundamentals__window-size

> window-size@1.0.0 test:ci:record
> ../../node_modules/.bin/cypress run --record --headless --browser chrome --group fundamentals__window-size

DevTools listening on ws://127.0.0.1:42175/devtools/browser/5c649985-8256-42d8-9337-695c9c749192
Couldn't find tsconfig.json. tsconfig-paths will be skipped
You passed the --record flag but this project has not been setup to record.

This project is missing the projectId inside of: cypress.config.js

We cannot uniquely identify this project without this id.

You need to setup this project to record. This will generate a unique projectId.

Alternatively if you omit the --record flag this project will run without recording.

https://on.cypress.io/recording-project-runs

Exited with code exit status 1

https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/fundamentals__window-size/cypress.config.js contains no projectId

Since the CircleCI nightly workflow is successful it seems like the projectID is defined in a CircleCI secret which is not accessible in a Contributor fork.