From 1b4454994e7413b1ab9f0780dfbcdbf5b1296647 Mon Sep 17 00:00:00 2001 From: Sandeep Bist Date: Wed, 28 Oct 2026 03:10:44 +0530 Subject: [PATCH] test(notes): select pin action before keyboard activation --- tests/notes-popup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/notes-popup.py b/tests/notes-popup.py index e6a9882..2494f6d 100644 --- a/tests/notes-popup.py +++ b/tests/notes-popup.py @@ -122,7 +122,10 @@ check(Notes.read("popup-fixture").note.status === "active", "Pointer Trash restore ignored"); child("notesActions").forceActiveFocus(); driver.keyClick(Qt.Key_Space); driver.tryVerify(() => menu().opened, 1000, "Keyboard did not open menu"); - driver.keyClick(Qt.Key_Down); driver.keyClick(Qt.Key_Return); settle(); + for (let i = 0; i < menu().count && !action("Pin note").highlighted; i++) + driver.keyClick(menu().currentIndex < 0 ? Qt.Key_Down : Qt.Key_Up); + check(action("Pin note").highlighted, "Keyboard did not select Pin note"); + driver.keyClick(Qt.Key_Return); settle(); check(Notes.read("popup-fixture").note.pinned, "Keyboard pin ignored"); open(); driver.keyClick(Qt.Key_Escape); driver.tryVerify(() => !menu().visible, 1000, "Escape failed to close dropdown");