Automated tests using Cypress and Cucumber to test the application's functionalities.
Example: --> tests > loginTest
- loginTest.cy.js: login verification tests
- loginTest.feature: Definitions of test steps in Cucumber.
--> pages > loginPage
- loginPage.cy.js: login page component methods
- element.js: elements related to the login page (html attributes)
- Node.js 18.x, 20.x, 22.x and above
- npm
-
Clone the repository:
git clone https://github.com/JheannyC/sauce-automation
-
Install dependencies at the root of the project:
npm install
-
create a
.env
file at the root and add variables according to the project:BASE_URL="project_URL" USERNAME="username" USERNAME_LOCKED="username" PASSWORD="password"
-
cypress interactive mode:
npx cypress open
or using the scriptnpm run cy:open
-
Cypress headless mode:
npx cypress run
or using the scriptnpm run cy:test