This repository contains end-to-end tests for Bistro Delivery, implemented using Playwright.
Prerequisites: Node.js 20+ (with npm)
-
Clone the repository:
git clone [email protected]:Hypersequent/bistro-e2e.git cd bistro-e2e
-
Install dependencies:
npm install
-
Create
.env
file in the project root:DEMO_BASE_URL='https://hypersequent.github.io/bistro/'
See
.env.example
for reference. -
Install Playwright browsers and dependencies:
npx playwright install --with-deps
npm run test # Run tests in Chromium
npm run test-head # Run tests in headed mode
- 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
- Upload results:
npx qas-cli junit-upload --attachments junit-results/results.xml
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
This project is licensed under the MIT License - see the LICENSE file for details.
Maintained by Hypersequent