This repository contains end-to-end tests for the Parking Calculator and Booking application using Cypress. The tests cover various scenarios to ensure the application functions correctly,including form submissions, button clicks, and validation messages.
Before running the tests, ensure you have the following installed on your machine:
- Node.js (version 12 or higher)
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/joeyzhaozhao/parking-calculator-e2e.git
- Navigate to the project directory:
cd parking-calculator-e2e
- Install the dependencies:
npm install
To open the Cypress Test Runner and run tests interactively:
npx cypress open
This command will launch the Cypress Test Runner, where you can select and run individual tests.
To run all tests in headless mode (useful for CI/CD pipelines):
npx cypress run
The tests are organized as follows:
cypress/e2e
: Contains all the end to end test files.cypress/fixtures
: Contains test data (if any).cypress/support
: Contains custom commands and support utilities.