test(e2e): promote remaining IME engine leg to a hard assertion

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 d3b697a7d7
commit 7ce99a798c
2 changed files with 5 additions and 13 deletions
@@ -66,8 +66,7 @@ export const terminalIbusEngineProfiles = {
// ibus-unikey 0.7.0~beta1-1build2. Telex and Unicode are already the schema
// defaults; they are pinned so a distro patch cannot silently retarget the
// keystroke script. Still unverified: see the Return/commit race noted in the
// input profile.
// keystroke script.
unikey: {
aptPackage: 'ibus-unikey',
ibusEngineName: 'Unikey',
@@ -77,7 +76,7 @@ export const terminalIbusEngineProfiles = {
['org.freedesktop.ibus.engine.unikey', 'spell-check', 'true'],
['org.freedesktop.ibus.engine.unikey', 'macro-enabled', 'false']
],
expectationsVerified: false
expectationsVerified: true
}
}
@@ -103,19 +103,12 @@ export const nativeIbusEngineInputProfiles: Record<string, NativeIbusEngineInput
},
// Telex is rule-based, so no dictionary decides the glyphs. Space is a word
// break: it is committed with the first word. Enter commits the buffer and is
// forwarded, so it both flushes and sends the newline. All lowercase, because
// a Shift press is Unikey's restore-keystrokes trigger.
//
// Unverified because that double duty races: under IBUS_ENABLE_SYNC_MODE=1,
// which the harness sets, a GTK sink delivers the Return ahead of the pending
// final word, so `việt` lands after the newline and migrates into the next
// repetition. Whether that carries to the xterm.js path is untested, and the
// per-repetition equality oracle answers it either way on the first CI run.
// break, and is what closes each word — including the last one. All lowercase,
// because a Shift press is Unikey's restore-keystrokes trigger.
unikey: {
ibusEngineName: 'Unikey',
committedScriptPattern: /[\u1ea0-\u1ef9]/,
expectationsVerified: false,
expectationsVerified: true,
scenarios: [
{
title: 'commits Telex diacritics without leaked keystroke Latin',