import { describe, expect, it } from "vitest"; import { DELIVERY_SET_BUCKET_LABELS } from "../../services/deliverySetViews"; describe("LogisticsReadinessBoard", () => { it("renders all delivery-set bucket labels from the model", () => { const bucketKeys = Object.keys(DELIVERY_SET_BUCKET_LABELS); expect(bucketKeys).toContain("approaching"); expect(bucketKeys).toContain("ready_to_launch"); expect(bucketKeys).toContain("awaiting_client"); expect(bucketKeys).toContain("manual_work"); expect(bucketKeys).toContain("agreed"); expect(bucketKeys).toContain("completed"); expect(bucketKeys).toHaveLength(6); }); it("renders bucket labels in Russian", () => { expect(DELIVERY_SET_BUCKET_LABELS.approaching).toBe("На подходе"); expect(DELIVERY_SET_BUCKET_LABELS.ready_to_launch).toBe("Готово к запуску"); expect(DELIVERY_SET_BUCKET_LABELS.awaiting_client).toBe("Ожидает клиента"); expect(DELIVERY_SET_BUCKET_LABELS.manual_work).toBe("Нужна ручная работа"); expect(DELIVERY_SET_BUCKET_LABELS.agreed).toBe("Согласовано"); expect(DELIVERY_SET_BUCKET_LABELS.completed).toBe("Завершено"); }); });