From ab4a384444e7f47b03e7f1dde6cb3e6c6265b4e7 Mon Sep 17 00:00:00 2001 From: Dmitry Degtyarev Date: Fri, 10 Jun 2022 16:32:52 +0400 Subject: [PATCH] fix test for string other edit --- tests/admc_test_string_other_edit.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/admc_test_string_other_edit.cpp b/tests/admc_test_string_other_edit.cpp index 5a2ba391..25751b24 100644 --- a/tests/admc_test_string_other_edit.cpp +++ b/tests/admc_test_string_other_edit.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -155,10 +156,10 @@ void ADMCTestStringOtherEdit::add_new_other_value() { auto string_attribute_dialog = list_attribute_dialog->findChild(); QVERIFY(string_attribute_dialog); - auto string_attribute_dialog_line_edit = string_attribute_dialog->findChild(); + auto string_attribute_dialog_line_edit = string_attribute_dialog->findChild(); QVERIFY(string_attribute_dialog_line_edit); - string_attribute_dialog_line_edit->setText(new_value); + string_attribute_dialog_line_edit->setPlainText(new_value); string_attribute_dialog->accept();