from __future__ import annotations

from pathlib import Path


def test_wesp_ui_parity_files_exist():
    root = Path(__file__).resolve().parents[2] / "web" / "public" / "static"
    required = [
        "recipes.html",
        "components.html",
        "feed_dispensers.html",
        "consumption.html",
        "reports.html",
        "admin.html",
        "js/wesp-orchestrator-boot.js",
        "js/wesp-orchestrator-auth-bridge.js",
        "js/pages/recipes-data-controller.js",
        "js/pages/multiserver-panel.js",
        "css/wesp-zootech-shell.css",
    ]
    for rel in required:
        assert (root / rel).is_file(), f"missing {rel}"
