---
description: Dine360 End-to-End (E2E) Integration Testing Workflow
---

# 🚀 Dine360 E2E Testing Workflow

This workflow ensures all modules (`Self-Order`, `Online Orders`, `KDS`, and `POS`) are communicating correctly.

## 1. Environment Check
Before testing, verify the services are up:
// turbo
`docker ps`
Ensure `odoo_client2` and `db` are in a 'Healthy' or 'Up' state.

## 2. Setup POS Session
1. Open your Odoo instance (usually `http://localhost:8069`).
2. Go to **Point of Sale**.
3. **Open** a new session for your main Shop/Restaurant.

## 3. Test Flow: Self-Order (Table QR)
1. Go to **Point of Sale > Configuration > Floor Plans**.
2. Select a floor and a table (e.g., "Table 1").
3. Click the **Open Front-end** button (this opens the Self-Order menu).
4. **Action**: Add 2-3 items to the cart and click **Send to Kitchen**.
5. **Verification**:
   - [ ] Go to the **Kitchen (KDS)** module.
   - [ ] Check that the items appear in the **Waiting** column.
   - [ ] Confirm the source badge shows **QR Table Order / Table 1**.

## 4. Test Flow: Online Orders (Website)
1. Navigate to the Website Shop (`/shop`).
2. **Action**: Add items to the cart, proceed to checkout, and complete the order.
3. **Internal POS Verification**:
   - [ ] Open the POS UI.
   - [ ] Click the **Online Orders** tab in the top navbar.
   - [ ] Select your order and click **Confirm & Send to Kitchen**.
4. **KDS Verification**:
   - [ ] Check the **Kitchen (KDS)** module.
   - [ ] Source badge should show **Online / eCommerce**.

## 5. Test Flow: KDS Management
1. In the **Kitchen (KDS)** dashboard:
2. **Action**: Click the **Preparing** button on one of the cards.
3. **Action**: Click the **Ready** button when finished.
4. **Verification**:
   - [ ] Confirm the item moves to the correct column.
   - [ ] If you are in the POS UI, check if any notifications appear regarding readiness (if implemented).

## 6. Verification Summary
If all checks above pass, the integration between the Frontend (Customer), Middle-end (POS), and Backend (KDS) is working perfectly.
