From 1b7faa354f14d5e0c66f36b4fb0fd3f0e436cf34 Mon Sep 17 00:00:00 2001 From: Peppa Date: Tue, 17 Nov 2026 18:37:49 +0500 Subject: [PATCH] =?UTF-8?q?QLFW-44:=20=D1=82=D0=B5=D1=81=D1=82=D1=8B=20?= =?UTF-8?q?=D1=81=D1=81=D1=8B=D0=BB=D0=BE=D0=BA=20Marwin=20=D0=B8=20Flip.k?= =?UTF-8?q?z?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- src/components/book-where.test.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/book-where.test.ts b/src/components/book-where.test.ts index 10f44c0..afb3bc7 100644 --- a/src/components/book-where.test.ts +++ b/src/components/book-where.test.ts @@ -2,7 +2,6 @@ import { createElement } from 'react' import { renderToStaticMarkup } from 'react-dom/server' import { describe, expect, it } from 'vitest' import { getDict } from '@/i18n' -import { bookUrl } from '@/lib/home-model' import { BookWhere } from './BookWhere' const render = (l: 'ru' | 'kk' | 'en') => { @@ -11,21 +10,20 @@ const render = (l: 'ru' | 'kk' | 'en') => { } describe('Сценарий: где купить книгу', () => { - it('русский текст целиком, Flip.kz — ссылка в новой вкладке, Marwin без адреса — просто текст', () => { + it('русский текст целиком, площадки списком без ссылок', () => { const html = render('ru') expect(html).toContain('Где купить книгу') expect(html).toContain('можно приобрести онлайн на платформах:') - expect(html).toContain('
  • Marwin
  • ') - expect(html).toContain(`Flip.kz`) + expect(html).toContain('
  • Marwin
  • Flip.kz
  • ') expect(html).toContain('

    Наличие и стоимость книги уточняйте непосредственно у продавцов.

    ') + expect(html).not.toContain(' { const html = render(l) - expect(html).toContain('
  • Marwin
  • ') - expect(html).toContain('target="_blank"') - expect(html).toContain('>Flip.kz') + expect(html).toContain('
  • Marwin
  • Flip.kz
  • ') expect(html).toContain('Эрудит') expect(html).toContain('Книжный мир') expect(html).not.toContain(getDict(l).tbc) + expect(html).not.toContain('