Skip to content

joeyzhaozhao/parking-calculator-e2e

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parking Calculator and Booking Application - End-to-End Tests

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.

Prerequisites

Before running the tests, ensure you have the following installed on your machine:

  • Node.js (version 12 or higher)
  • npm (Node Package Manager)

Setup

  1. Clone the repository:
    git clone https://github.com/joeyzhaozhao/parking-calculator-e2e.git
  2. Navigate to the project directory:
    cd parking-calculator-e2e
  3. Install the dependencies:
    npm install

Running Tests

Running Tests in the Cypress Test Runner

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.

Running Tests in Headless Mode

To run all tests in headless mode (useful for CI/CD pipelines):

npx cypress run

Test Structure

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.

Example Test Scenarios

1. User able to book and pay for valet parking

2. User able to book and pay for short term parking

3. User able to book and pay for long term garage parking

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published