From da6b9b098046c0d3c841d6f5e900fdfccff4d6e2 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 13 Sep 2025 15:48:33 +0200 Subject: [PATCH] Add more comments --- tests/test_gui/test_gui_doceditor.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_gui/test_gui_doceditor.py b/tests/test_gui/test_gui_doceditor.py index 08fbef0b..4e240295 100644 --- a/tests/test_gui/test_gui_doceditor.py +++ b/tests/test_gui/test_gui_doceditor.py @@ -1942,18 +1942,18 @@ def testGuiEditor_Completer(qtbot, nwGUI, projPath, mockRnd): "%Note.Consistency: \n" ) - # CJK completer reposition (#2267) + # CJK completer reposition (#2267 and #2517) qtbot.keyClick(docEditor, "%", delay=KEY_DELAY) assert completer.isVisible() is True completer.move(0, 0) - assert completer.pos().x() == 0 - assert completer.pos().y() == 0 + assert completer.pos().x() == 0 # Completer menu at 0 + assert completer.pos().y() == 0 # Completer menu at 0 event = QInputMethodEvent() - event.setCommitString("Ping") + event.setCommitString("Text") docEditor.inputMethodEvent(event) - assert completer.pos().x() > 0 # Should have moved - assert completer.pos().y() > 0 # Should have moved + assert completer.pos().x() > 0 # Completer should have moved + assert completer.pos().y() > 0 # Completer should have moved # qtbot.stop()