Skip to content

Hypersequent/bistro-e2e-cypress

Repository files navigation

E2E Tests for Bistro Delivery

This repository contains end-to-end tests for Bistro Delivery, implemented using Cypress.

Prerequisites: Node.js 20+ (with npm)

Getting Started

  1. Clone the repository:

    git clone git@github.com:Hypersequent/bistro-e2e-cypress.git
    cd bistro-e2e-cypress
  2. Install dependencies:

    npm install

Running Tests

Basic Test Execution

npm test                  # Run tests in Chrome
npm run test:open         # Open Cypress interactive mode

Upload testing results to QA Sphere

QA Sphere is a modern test management platform that makes organizing test cases, tracking test runs, and analyzing results a breeze. Integration is done via qas-cli.

Test names include markers (e.g., BD-023: Cart operations...) that automatically link results to QA Sphere test cases.

  1. Add your QA Sphere credentials to .env or .qaspherecli file:

    QAS_TOKEN=<QA Sphere API Token>
    # Get your token in QA Sphere -> Settings -> API Keys
    
    QAS_URL=<QA Sphere Company URL>
    # Example: https://qasdemo.eu2.qasphere.com
  2. Upload results:

    npx qas-cli junit-upload cypress/reports/junit/results-*.xml

    Useful options:

    --create-tcases              # Auto-create missing test cases in QA Sphere
    --run-name "CI Run {DD}.{MM}"  # Custom run name (supports date placeholders)
    --attachments                # Include test attachments (screenshots, etc.)

Additional Commands

Different browsers:

npm run chrome            # Run tests in Chrome
npm run firefox           # Run tests in Firefox
npm run edge              # Run tests in Edge

Code quality:

npm run lint              # Check formatting and linting
npm run format            # Auto-format code

License

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


Maintained by Hypersequent

About

Cypress E2E tests for Bistro Delivery demo application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published