Automated end-to-end testing for Automation Exercise using Cypress.
This project contains Cypress tests for the Automation Exercise website. The goal is to automate UI testing, ensuring key functionalities of the website perform as expected.
Make sure you have the following installed before starting:
Clone the repository and install the required dependencies:
git clone https://github.com/AgneKal/cypress-testing.git
cd your-repository-name
npm install
To run Cypress tests, execute the following command:
npm run test
This will launch the Cypress Test Runner, where you can run individual test files. Alternatively, to run tests in headless mode:
npm run test:ci
The test files are structured as follows:
📁 cypress
┣ 📁 e2e # Test files
┣ 📁 fixtures # Test data (JSON files)
┗ 📁 support # Custom commands and support utilities
Example test case:
describe('Automation Exercise', () => {
it('should load homepage', () => {
cy.visit('https://www.automationexercise.com');
cy.get('.logo').should('be.visible');
});
});
This project is licensed under the ISC License - see the LICENSE file for details.
Agne: Github