Clarify command palette open-state routing test

This commit is contained in:
Lawrence Chen 2026-03-30 20:58:01 -07:00
parent 0322e78e8a
commit 208e741ddc
No known key found for this signature in database

View file

@ -2351,8 +2351,8 @@ final class AppDelegateShortcutRoutingTests: XCTestCase {
XCTFail("debugMarkCommandPaletteOpenPending is only available in DEBUG")
#endif
// Simulate a visibility sync lag/race where AppDelegate does not yet know the palette is open.
appDelegate.setCommandPaletteVisible(false, for: window)
// Model the normal open-palette state so the test reads like the user-facing scenario.
appDelegate.setCommandPaletteVisible(true, for: window)
guard let escapeEvent = makeKeyDownEvent(
key: "\u{1b}",