From b3e3d0d5bd1dbbe84a80d5c3d9fa007166446e7a Mon Sep 17 00:00:00 2001 From: Peppa Date: Tue, 17 Nov 2026 19:10:36 +0500 Subject: [PATCH] =?UTF-8?q?QLFW-44:=20Marwin=20=D0=B2=D0=B5=D0=B4=D1=91?= =?UTF-8?q?=D1=82=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=86=D1=83=20=D0=BA=D0=BD=D0=B8=D0=B3=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- openspec/changes/qlfw-44-marwin-product-link/proposal.md | 4 ++++ openspec/changes/qlfw-44-marwin-product-link/tasks.md | 1 + src/components/book-where.test.ts | 4 ++-- src/lib/book-links.ts | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 openspec/changes/qlfw-44-marwin-product-link/proposal.md create mode 100644 openspec/changes/qlfw-44-marwin-product-link/tasks.md diff --git a/openspec/changes/qlfw-44-marwin-product-link/proposal.md b/openspec/changes/qlfw-44-marwin-product-link/proposal.md new file mode 100644 index 0000000..be39524 --- /dev/null +++ b/openspec/changes/qlfw-44-marwin-product-link/proposal.md @@ -0,0 +1,4 @@ +## Why +ПМ прислал адрес страницы книги на Marwin; в main стояла главная страница магазина (QLFW-50). +## What +Marwin в book-links ведёт на страницу книги. diff --git a/openspec/changes/qlfw-44-marwin-product-link/tasks.md b/openspec/changes/qlfw-44-marwin-product-link/tasks.md new file mode 100644 index 0000000..d7a0741 --- /dev/null +++ b/openspec/changes/qlfw-44-marwin-product-link/tasks.md @@ -0,0 +1 @@ +- [x] адрес, тест diff --git a/src/components/book-where.test.ts b/src/components/book-where.test.ts index 216950b..bfe5126 100644 --- a/src/components/book-where.test.ts +++ b/src/components/book-where.test.ts @@ -14,7 +14,7 @@ describe('Сценарий: где купить книгу', () => { const html = render('ru') expect(html).toContain('Где купить книгу') expect(html).toContain('можно приобрести онлайн на платформах:') - expect(html).toContain('href="https://www.marwin.kz/"') + expect(html).toContain('href="https://www.marwin.kz/product/serkebaeva-i-ermek-serkebaev-i-zhizn-i-molodost-i-schaste-220988"') expect(html).toContain('href="https://www.flip.kz/catalog?prod=6364653') expect(html).toContain('href="https://erudit.kz/"') expect(html).toContain('Книжный мир') @@ -22,7 +22,7 @@ describe('Сценарий: где купить книгу', () => { }) it.each(['kk', 'en'] as const)('язык %s: те же магазины, без пометок', (l) => { const html = render(l) - expect(html).toContain('href="https://www.marwin.kz/"') + expect(html).toContain('href="https://www.marwin.kz/product/serkebaeva-i-ermek-serkebaev-i-zhizn-i-molodost-i-schaste-220988"') expect(html).toContain('href="https://www.flip.kz/catalog?prod=6364653') expect(html).toContain('Эрудит') expect(html).toContain('Книжный мир') diff --git a/src/lib/book-links.ts b/src/lib/book-links.ts index adb13c9..55d511e 100644 --- a/src/lib/book-links.ts +++ b/src/lib/book-links.ts @@ -2,7 +2,7 @@ import { bookUrl } from './home-model' /** Адреса магазинов, где продаётся книга. Ключ — название на экране. */ export const bookShopLinks: Record = { - Marwin: 'https://www.marwin.kz/', + Marwin: 'https://www.marwin.kz/product/serkebaeva-i-ermek-serkebaev-i-zhizn-i-molodost-i-schaste-220988', 'Flip.kz': bookUrl, 'Эрудит': 'https://erudit.kz/', 'Книжный мир': null, // адрес не подтверждён — показываем без ссылки