CypressTestingStudy / cyr

Example Cypress
MIT License
2 stars 0 forks source link

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


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