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
-
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 # For JUnit XML npx qas-cli playwright-json-upload --attachments playwright-report/results.json # For Playwright JSON
Different browsers:
npm run chromium # Run tests in Chromium
npm run firefox # Run tests in Firefox
npm run webkit # Run tests in WebKitPlaywright report:
npm run play-report # Open Playwright HTML reportThis project is licensed under the 0BSD License - see the LICENSE file for details.
Maintained by Hypersequent