Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

markdown-cjk.spec.ts

13 lines553 Bytes

1import { expect, test } from '@playwright/test'
2​
3test.describe('markdown CJK bold rendering', () => {
4 test('CJK bold renders as <strong> without any plugin', async ({ page }) => {
5 await page.goto('/markdown-cjk')
6 const section = page.getByTestId('cjk-bold')
7 // The literal "**" should be consumed by the bold parser.
8 await expect(section).not.toContainText('**')
9 const strong = section.locator('strong')
10 await expect(strong).toHaveCount(1)
11 await expect(strong).toHaveText('この文は太字になりません。')
12 })
13})