This repository contains end-to-end tests for Bistro Delivery, implemented using Cypress.
Prerequisites: Node.js 20+ (with npm)
-
Clone the repository:
git clone git@github.com:Hypersequent/bistro-e2e-cypress.git cd bistro-e2e-cypress -
Install dependencies:
npm install
npm test # Run tests in Chrome
npm run test:open # Open Cypress interactive modeQA 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.
-
Add your QA Sphere credentials to
.envor.qasphereclifile: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 cypress/reports/junit/results-*.xmlUseful 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.)
Different browsers:
npm run chrome # Run tests in Chrome
npm run firefox # Run tests in Firefox
npm run edge # Run tests in EdgeCode quality:
npm run lint # Check formatting and linting
npm run format # Auto-format codeThis project is licensed under the 0BSD License - see the LICENSE file for details.
Maintained by Hypersequent