This project is a Cypress test suite for testing the functionalities of the telnyx.com website. It includes various test cases to ensure the reliability and performance of the site's features across different browsers and screen resolutions.
Make sure you have the following installed on your machine:
- Clone the repository:
git clone https://github.com/gadiim/23.09.24_cypress_project.git
- Navigate into the project directory:
cd 23.09.24_cypress_project
- Install the required dependencies:
npm install
You can run tests in various ways:
- To open the Cypress Test Runner:
npm run cypress:open
- To run all tests in headless mode:
npm run cypress:run
- To run tests in specific browsers:
npm run cypress:run:chrome npm run cypress:run:firefox
- To run tests for specific test files:
npm run test:footer npm run test:header npm run test:shop npm run test:header-nfs
The tests are organized in the following structure:
cypress/
├── e2e/
│ ├── test_footer_full_screen_spec.js
│ ├── test_header_full_screen_spec.js
│ ├── test_header_non_full_screen_spec.js
│ └── test_shop_full_screen_spec.js
└── fixtures/
Each test file contains specific test cases that validate various functionalities of the website.
The Cypress configuration is located in cypress.config.js.
module.exports = defineConfig({
e2e: {
specPattern: 'cypress/e2e/**/*.js',
viewportWidth: 1920,
viewportHeight: 1080,
video: false,
retries: 1,
screenshotOnRunFailure: true,
},
});
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create your feature branch (git checkout -b feature/YourFeature).
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature/YourFeature).
- Open a pull request.
No license yet.