QLFW-44: Marwin ведёт на страницу книги

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Peppa 2026-11-17 19:10:36 +05:00
parent b013619585
commit b3e3d0d5bd
4 changed files with 8 additions and 3 deletions

View File

@ -0,0 +1,4 @@
## Why
ПМ прислал адрес страницы книги на Marwin; в main стояла главная страница магазина (QLFW-50).
## What
Marwin в book-links ведёт на страницу книги.

View File

@ -0,0 +1 @@
- [x] адрес, тест

View File

@ -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('Книжный мир')

View File

@ -2,7 +2,7 @@ import { bookUrl } from './home-model'
/** Адреса магазинов, где продаётся книга. Ключ — название на экране. */
export const bookShopLinks: Record<string, string | null> = {
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, // адрес не подтверждён — показываем без ссылки