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, // адрес не подтверждён — показываем без ссылки