diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp index f65c42940..49bc88250 100644 --- a/tests/gui/TestGui.cpp +++ b/tests/gui/TestGui.cpp @@ -922,7 +922,7 @@ void TestGui::testTotp() auto* totpDialog = m_dbWidget->findChild("TotpDialog"); auto* totpLabel = totpDialog->findChild("totpLabel"); - QCOMPARE(totpLabel->text().replace(" ", ""), entry->totp()); + QTRY_COMPARE(totpLabel->text().replace(" ", ""), entry->totp()); QTest::keyClick(totpDialog, Qt::Key_Escape); // Test the QR code