ci(windows-smoke): control check that a hidden window can be shown (#8)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
This commit is contained in:
Lotus CI
2026-10-22 21:07:55 -04:00
co-authored by Claude Opus 5.5
parent 0a887c29c4
commit 043a44665f
+13
View File
@@ -228,6 +228,19 @@ for (const [state, put] of [
record(name, 'fail', String(e).slice(0, 200));
}
}
// Control for #8: can this machine show a hidden window at all? (A runner
// without an interactive desktop can't, and that isn't the app's fault.)
try {
await win('hide');
await new Promise((r) => setTimeout(r, 1000));
await win('show');
await new Promise((r) => setTimeout(r, 1000));
const shown = await win('is_visible');
record('control: a hidden window can be shown again', shown ? 'pass' : 'info', `visible after show(): ${shown}`);
} catch (e) {
record('control: a hidden window can be shown again', 'info', String(e).slice(0, 160));
}
// 9. System-wide voice hotkeys (#2): register PTT on F9, press and release F9
// through Windows (keybd_event, as a game in front would see it), expect a
// pressed and a released `lotus-global-hotkey`; after clearing the bindings