diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp index 91c8a0866e..d00342ae0c 100644 --- a/tests/gui/TestGui.cpp +++ b/tests/gui/TestGui.cpp @@ -1030,7 +1030,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