diff --git a/autotests/src/inlinenote_test.cpp b/autotests/src/inlinenote_test.cpp --- a/autotests/src/inlinenote_test.cpp +++ b/autotests/src/inlinenote_test.cpp @@ -139,6 +139,9 @@ KTextEditor::ViewPrivate view(&doc, nullptr); view.show(); + + QTest::qWait(100); + view.setCursorPosition({ 0, 5 }); QCOMPARE(view.cursorPosition(), Cursor(0, 5)); @@ -159,7 +162,7 @@ QCOMPARE(noteProvider.inlineNotes(1), QVector()); iface->registerInlineNoteProvider(¬eProvider); - QTest::qWait(1000); + QTest::qWait(100); const auto newCoordCol04 = view.cursorToCoordinate({ 0, 4 }); const auto newCoordCol05 = view.cursorToCoordinate({ 0, 5 });