Skip to content

AgneKal/cypress-testing

Repository files navigation

🌐 Automation Exercise Testing with Cypress

Cypress

Automated end-to-end testing for Automation Exercise using Cypress.

📖 About

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.


🚀 Prerequisites

Make sure you have the following installed before starting:


🔧 Installation

Clone the repository and install the required dependencies:

git clone https://github.com/AgneKal/cypress-testing.git
cd your-repository-name
npm install

▶️ Running Tests

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

🧩 Test Structure

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');
    });
});

📝 License

This project is licensed under the ISC License - see the LICENSE file for details.


🔗 Useful Links


👩‍💻 Author

Agne: Github

About

Automated end-to-end testing for Automation Exercise using Cypress.

Topics

Resources

License

Stars

Watchers

Forks