From 87f6e824a7eadf3004de12d75e07fe756611bd7f Mon Sep 17 00:00:00 2001 From: Peppa Date: Wed, 18 Nov 2026 17:19:47 +0500 Subject: [PATCH] =?UTF-8?q?QLFW-74:=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BA=D0=B0=20=D1=84=D1=80=D0=B0=D0=B7=D1=8B=20=D1=81=D0=BE?= =?UTF-8?q?=D0=B3=D0=BB=D0=B0=D1=81=D0=B8=D1=8F=20=D0=BD=D0=B0=20=D0=B0?= =?UTF-8?q?=D0=BD=D0=B3=D0=BB=D0=B8=D0=B9=D1=81=D0=BA=D0=BE=D0=BC=20=D0=B8?= =?UTF-8?q?=20=D1=81=D1=81=D1=8B=D0=BB=D0=BE=D0=BA=20=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D0=B8=D1=82=D0=B8=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- .peppa/memory.md | 1 + src/components/contact-form-consent.test.ts | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/.peppa/memory.md b/.peppa/memory.md index 74a0e6b..1cb9f95 100644 --- a/.peppa/memory.md +++ b/.peppa/memory.md @@ -50,3 +50,4 @@ - QLFW-48: мобильный вид проверять скриншотом headless Chrome через iframe width=375 (сам headless не уже ~500px); dev-сервер переписывает importMap.js, payload-types.ts и memory — перед коммитом git checkout этих файлов. - QLFW-41: текущий язык в Header — плашка bg-burgundy/text-paper/font-bold, остальные text-graphite; скриншоты — headless Chrome (--screenshot), Playwright в проекте нет. Общая рабочая копия переключается другими сессиями — использовать git worktree. - QLFW-39: Next dev и next build в одном worktree конфликтуют через .next/types; запускать последовательно. ContactForm хранит ввод в state для сохранения после ошибок; openedAt записывается в hidden input при фокусе. +- QLFW-74: дубль QLFW-38/46/65 (фраза согласия kk/en уже верна); добавлена регрессия en и ссылок /kk,/en/privacy в contact-form-consent.test.ts. Если git fetch даёт 530 — сервер недоступен, worktree делать от уже полученного origin/main. diff --git a/src/components/contact-form-consent.test.ts b/src/components/contact-form-consent.test.ts index 9d47017..b9a00ce 100644 --- a/src/components/contact-form-consent.test.ts +++ b/src/components/contact-form-consent.test.ts @@ -51,3 +51,15 @@ describe('QLFW-38: согласие на казахском', () => { expect(html).toContain(`href="/${locale}/privacy"`) }) }) + +describe('QLFW-74: согласие на английском', () => { + it('Политика опубликована: фраза от первого лица со ссылкой на /en/privacy', () => { + const html = render('en', true) + expect(visibleText(html)).toContain('I agree to the processing of my personal data in accordance with the Privacy Policy.') + expect(html).toContain('href="/en/privacy"') + expect(visibleText(html)).not.toMatch(/you agree|Я согласен/i) + }) + it('Казахский: ссылка ведёт на /kk/privacy', () => { + expect(render('kk', true)).toContain('href="/kk/privacy"') + }) +}) -- 2.45.2