Update README.md

master
helena 4 years ago committed by GitHub
parent 92b2208fee
commit 794c0c4885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,20 @@ cypress __headless mode__ (cypress run):
`npm run cypress run --env device=web` `npm run cypress run --env device=web`
# Information
Tests are located in `cypress/integration` folder
Configuration files:
1. cypress.json
2. plugins/index.js
Custom commands (shortcuts) are located in support folder (`.cmd.js` suffix)
Why mobile view is in config and not in test (like cy.viewport())?
- we can't change userAgent in the middle of the test:
https://github.com/cypress-io/cypress/issues/2100
So it seems more correct to launch the tests with the correct config (--env device=mob/web)
# __Following best practices__ # __Following best practices__

Loading…
Cancel
Save