- Technology Used : JavaScript
- Framework Used: Cypress
- Firstly, clone the project with ssh to the local repo
- Then install all dependencies
npm install
- Copy config sample and configure as you need
cp cypress.config.sample.js cypress.config.js
- Run
npm run cy:open
: Open the Cypress Test Runner - Run
npm run cy:run
: Run Cypress tests to completion - Run
npm run cy:run:login
: Run Cypress with login feature
npm install cypress
npm install @faker-js/faker
npm install cypress-file-upload
npm install base-64
-
Includes test cases of features. Feature files are under the
cypress/e2e/{featureFolder}
and called as{featureName}.cy.js
Exp;
cypress/e2e/analytics/loyalty/userActivity.cy.js
//TO DO
//TO DO
//TO DO
- Command file is under the
cypress/support
folder and the file has global commands
“data-test-id”
is the first preference
Cypress.SelectorPlayground.defaults({
selectorPriority: ['data-test-id', 'id', 'class']
})