Template for cypress with AWS CodeBuild and S3 integration
- Node.js v12+
- For development: by default base url (
CYPRESS_BASE_URL) takes fromcypres.jsonfile. (yarn cy:devoryarn cy:dev:debug) - For CI:
runCi.shscript is used, that overrideCYPRESS_BASE_URLfromcypres.jsonfile. (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 chromeinrunCi.shfile 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
reportfolder 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