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", () => {