To run the example, make sure that you have an account at https://app.currents.dev or Sorry Cypress instance. You can start a basic local instance of sorry-cypress:
docker run -p 1234:1234 --platform linux/amd64 agoldis/sorry-cypress-director
Update currents.config.js
with the projectId
, recordKey
obtained from a cloud orchestration service. Sorry Cypress users - use the director service URL as cloudServiceUrl
.
// currents.config.js
module.exports = {
projectId: "yyy", // the projectId, can be any values for sorry-cypress users
recordKey: "xxx", // the record key, can be any value for sorry-cypress users
cloudServiceUrl: "http://localhost:1234", // Sorry Cypress users - set the director service URL, Currents customer - remove this option
};
Use the following commands to run cypress tests
npm install
npx cypress-cloud --parallel --record --key your_key --ci-build-id hello-cypress-cloud
npm install
npm run build && npm run start
npx cypress-cloud --parallel --record --key your_key --component --ci-build-id hello-cypress-cloud
Take a look at ./scripts/
directory to see the examples of using run
API with different environments (CJS / TS / ESM);
Replace the recordKey
and the projectId
you've obtained from a cloud orchestration service (use arbitrary values for Sorry Cypress)
npm run cypress:script