test(e2e): close the Telex word before Return

Telex commits on a word boundary, not on Return, so the final syllable was
still composing when Return fired and committed into the following line.
No two repetitions agreed. The other three engines commit on Return.

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-08-01 21:47:24 -07:00
co-authored by Orca
parent 3c93328c9c
commit d3b697a7d7
@@ -119,9 +119,13 @@ export const nativeIbusEngineInputProfiles: Record<string, NativeIbusEngineInput
scenarios: [
{
title: 'commits Telex diacritics without leaked keystroke Latin',
expectedText: 'tiếng việt',
expectedText: 'tiếng việt ',
// Telex closes a word on a boundary, not on Return: hangul, anthy and libpinyin
// all commit their preedit when Return arrives, and this engine does not. Without
// the trailing space the final syllable is still composing when Return fires, so
// it commits into the *next* line and no two repetitions agree.
drive: ({ key, typeClearingModifiers }) => {
typeClearingModifiers('tieengs vieejt')
typeClearingModifiers('tieengs vieejt ')
key('Return')
}
}