This repository contains end-to-end tests for Bistro Delivery, implemented using Playwright for Python with pytest.
Prerequisites: Python 3.13+
-
Clone the repository:
git clone git@github.com:Hypersequent/bistro-e2e-python.git cd bistro-e2e-python -
Create and activate a virtual environment:
python3 -m venv .venv source .venv/bin/activate -
Install dependencies:
pip install -e ".[dev]" -
Install Playwright browsers:
playwright install --with-deps
pytest --browser chromium -v # Run tests in Chromium
pytest --browser chromium -v --headed # Run tests in headed mode-
Add your QA Sphere credentials to a
.qasphereclifile or.env: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 --project-code BD --attachments junit-results/results.xml
Different browsers:
pytest --browser chromium -v # Run tests in Chromium
pytest --browser firefox -v # Run tests in Firefox
pytest --browser webkit -v # Run tests in WebKitLinting and formatting:
ruff check tests/ utils/ # Check for lint errors
ruff format tests/ utils/ # Format codeThis project is licensed under the 0BSD License - see the LICENSE file for details.
Maintained by Hypersequent