From 52c8f16a74c0715db4ca3d2b6dba0829c92d7648 Mon Sep 17 00:00:00 2001 From: Hermes Date: Mon, 28 Sep 2026 12:28:55 +0200 Subject: [PATCH] =?UTF-8?q?test(client):=20=D0=B0=D0=BA=D1=82=D1=83=D0=B0?= =?UTF-8?q?=D0=BB=D0=B8=D0=B7=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BE=D0=B6=D0=B8=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20DeliveryChoi?= =?UTF-8?q?ceFlow=20(=D1=83=D1=81=D1=82=D0=B0=D1=80=D0=B5=D0=B2=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D1=8B)=20+=20?= =?UTF-8?q?=D0=BA=D0=B5=D0=B9=D1=81=20=D1=81=D0=B0=D0=BC=D0=BE=D0=B2=D1=8B?= =?UTF-8?q?=D0=B2=D0=BE=D0=B7=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/DeliveryChoiceFlow.test.jsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/components/client/DeliveryChoiceFlow.test.jsx b/src/components/client/DeliveryChoiceFlow.test.jsx index 98fffc5..f34e39d 100644 --- a/src/components/client/DeliveryChoiceFlow.test.jsx +++ b/src/components/client/DeliveryChoiceFlow.test.jsx @@ -19,10 +19,24 @@ describe("DeliveryChoiceFlow", () => { expect(markup).toContain("Выберите время доставки"); expect(markup).toContain("Сохранить"); - expect(markup).toContain("Ожидает ответа клиента"); + expect(markup).toContain("Согласование доставки"); expect(markup).not.toContain("Запросить новую ссылку"); }); + it("для самовывоза говорит про самовывоз", () => { + const markup = renderToStaticMarkup( + {}} + />, + ); + + expect(markup).toContain("Согласование самовывоза"); + expect(markup).toContain("Выберите время самовывоза"); + expect(markup).toContain("Доставка CD-240031"); + }); + it("renders a disabled save action when nothing is selected", () => { const markup = renderToStaticMarkup( { ); expect(markup).toContain("Состав заказа"); - expect(markup).toContain("3 поз."); + // в заголовке панели считается число счетов, а не позиций (1 счёт) + expect(markup).toContain("1 счёт"); }); it("renders nothing when there are no order items", () => {