test: change old test to work with new grapheme split mechanism
This commit is contained in:
@@ -8,9 +8,9 @@ test.describe('preview text', () => {
|
|||||||
await comparison.pickPair('Inter', 'Roboto');
|
await comparison.pickPair('Inter', 'Roboto');
|
||||||
await comparison.setPreviewText('Sphinx');
|
await comparison.setPreviewText('Sphinx');
|
||||||
|
|
||||||
// Each grapheme renders as a `.char-wrap` cell in the slider once
|
// Window chars render as `.char-wrap` cells for crossfade.
|
||||||
// both fonts are loaded. Six glyphs → six cells.
|
// With WINDOW_SIZE=5, "Sphinx" (6 chars) fits 5 in the window.
|
||||||
await expect(comparison.slider.locator('.char-wrap')).toHaveCount(6);
|
await expect(comparison.slider.locator('.char-wrap')).toHaveCount(5);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('preserves the typed value in the input', async ({ comparison }) => {
|
test('preserves the typed value in the input', async ({ comparison }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user