Release key in sticky key test

Otherwise it's pressed the whole time, breaking subsequent tests
This commit is contained in:
Nicolas Fella 2024-07-16 16:55:13 +02:00
parent fa443bb806
commit 65405c128e

View file

@ -179,6 +179,12 @@ void StickyKeysTest::testLock()
// TODO should it be latched?
QCOMPARE(modifierSpy.first()[2], 4); // verify that Ctrl is locked
// release Ctrl, modifier should still be locked
modifierSpy.clear();
Test::keyboardKeyReleased(KEY_LEFTCTRL, ++timestamp);
QVERIFY(modifierSpy.wait());
// TODO
// press and release a letter, this does not unlock the modifier
modifierSpy.clear();
Test::keyboardKeyPressed(KEY_A, ++timestamp);