Skip to content

CypressTestingStudy/cyr

Repository files navigation

CYR Learning

CypressLearn

Chrome headless

SetUp

  1. Configure a cypress.json file based on cypress.sample.json

  2. Run

npm ci

Running

Using cypress UI mode

npx cypress open

Using Headless mode

npx cypress run

Run specific test in Headless mode

npx cypress run --testFile.js

Run Headless mode with Dashboard Analysis

npx cypress run --record --key 49bfa993-ad20-464c-b7ab-d9d27ae262c0

Generate With Reports:

npx cypress run --reporter mochawesome

Combine the reports:

npx mochawesome-merge "cypress/results/*.json" > mochawesome.json

Generate the HTML Report:

npx merge mochawesome.json

Project Structure

  • All in English
  • All in CamelCase

Variables Names: Button: btn Click: clk Screen: scr Source: src List: List Dropdown list: ddl


Constrains: The first letter should will not go in UpperCase (class, methods, variables, etc) It does not use VAR type, hyphen, and underlines. Pointers must go in variables.


Nomination: Integration cartFuncionality cartBuynow buyNow.spect.js cartKeepbuying keepBuying.spect.js

About

Example Cypress

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 9