Skip to content

Hypersequent/bistro-e2e

Repository files navigation

E2E Tests for Bistro Delivery

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

Prerequisites: Node.js 20+ (with npm)

Getting Started

  1. Clone the repository:

    git clone [email protected]:Hypersequent/bistro-e2e.git
    cd bistro-e2e
  2. Install dependencies:

    npm install
  3. Create .env file in the project root:

    DEMO_BASE_URL='https://hypersequent.github.io/bistro/'

    See .env.example for reference.

  4. Install Playwright browsers and dependencies:

    npx playwright install --with-deps

Running Tests

Basic Test Execution

npm run test               # Run tests in Chromium
npm run test-head         # Run tests in headed mode

Upload testing results to QA Sphere

  1. Add your QA Sphere credentials to the .env 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
  1. Upload results:
npx qas-cli junit-upload --attachments junit-results/results.xml

Additional Commands

Different browsers:

npm run chromium          # Run tests in Chromium
npm run firefox           # Run tests in Firefox
npm run webkit           # Run tests in WebKit

Playwright report:

npm run play-report      # Open Playwright HTML report

License

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


Maintained by Hypersequent

About

e2e test cases example for Hypersequent/bistro

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •