Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 57 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,67 @@
# E2E tests for Bistro Delivery
# E2E Tests for Bistro Delivery

This repository contains E2E tests for [Bistro Delivery](https://github.com/hypersequent/bistro) example, written using Playwright.
This repository contains end-to-end tests for [Bistro Delivery](https://github.com/hypersequent/bistro), implemented using [Playwright](https://playwright.dev/).

## Running
## Prerequisites

1. Create .env file with
- Node.js 20.x or higher
- npm 10.x or higher

```
DEMO_BASE_URL = 'https://hypersequent.github.io/bistro/'
```
## Getting Started

1. Clone the repository:

```bash
git clone https://github.com/Hypersequent/bistro-e2e.git
cd bistro-e2e
```

2. Install dependencies:

```bash
npm install
```

3. Create `.env` file in the project root:

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

See `.env.example` for reference.

(see .env.example)
4. Install Playwright browsers and dependencies:
```bash
npx playwright install --with-deps
```

2. Install Playwright and deps:
## Running Tests

### Basic Test Execution

```bash
npm run test # Run tests in Chromium
npm run test-head # Run tests in headed mode
```
npx playwright install --with-deps

### Browser-Specific Tests

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

3. npm run test
### Test Report

```bash
npm run play-report # Open Playwright HTML report
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

Maintained by [Hypersequent](https://github.com/Hypersequent)
Loading