Template for cypress with AWS CodeBuild and S3 integration
- Node.js v12+
- For development: by default base url (
CYPRESS_BASE_URL
) takes fromcypres.json
file. (yarn cy:dev
oryarn cy:dev:debug
) - For CI:
runCi.sh
script is used, that overrideCYPRESS_BASE_URL
fromcypres.json
file. (yarn cy:ci
) - If you need to override base url you can use
Cypress.config("baseUrl", cyEnv.baseUrl)
.
Docs: https://docs.cypress.io/guides/guides/environment-variables.html#Option-2-cypress-env-json
- Change
--browser chrome
inrunCi.sh
file to another flag value, that available here: https://docs.cypress.io/guides/guides/launching-browsers.html#Firefox-Browsers-beta - As the result you will have
report
folder in the root of project, with: 1) html report 2) video records 3) screenshots
- Added and configured eslint / .eslintrc.json with cypress-related plugins
- Added husky to run auto-fix on pre-commit hooks