From 794c0c4885131bb86b9ef75c7f6bbe55e640d818 Mon Sep 17 00:00:00 2001 From: helena <48861601+helenanull@users.noreply.github.com> Date: Wed, 3 Mar 2021 22:08:13 +0200 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index a21dc08..a1a44e1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,20 @@ cypress __headless mode__ (cypress run): `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__