diff --git a/e2e/preview-text.test.ts b/e2e/preview-text.test.ts index f138363..c3e60f5 100644 --- a/e2e/preview-text.test.ts +++ b/e2e/preview-text.test.ts @@ -8,9 +8,9 @@ test.describe('preview text', () => { await comparison.pickPair('Inter', 'Roboto'); await comparison.setPreviewText('Sphinx'); - // Each grapheme renders as a `.char-wrap` cell in the slider once - // both fonts are loaded. Six glyphs → six cells. - await expect(comparison.slider.locator('.char-wrap')).toHaveCount(6); + // Window chars render as `.char-wrap` cells for crossfade. + // With WINDOW_SIZE=5, "Sphinx" (6 chars) fits 5 in the window. + await expect(comparison.slider.locator('.char-wrap')).toHaveCount(5); }); test('preserves the typed value in the input', async ({ comparison }) => {