- clone the repo
npm install
npm run cy:open
to open Cypress locally- enter
username
andaccess_key
inbrowserstack.json
npm run bs:run
to run tests in BrowserStack
Locally:
- All specs pass
Browserstack:
name.spec.ts
fails because BrowserStack cannot recognizeCYPRESS_
environment variables
Env vars can be set using the CYPRESS_
prefix as mentioned in this doc : https://docs.cypress.io/guides/guides/environment-variables#Option-3-CYPRESS_