Skip to content

Commit

Permalink
TestGui: testTotp: use QTRY_COMPARE
Browse files Browse the repository at this point in the history
  • Loading branch information
c4rlo authored and droidmonkey committed Jun 14, 2024
1 parent 647272e commit af2ba79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/gui/TestGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ void TestGui::testTotp()
auto* totpDialog = m_dbWidget->findChild<TotpDialog*>("TotpDialog");
auto* totpLabel = totpDialog->findChild<QLabel*>("totpLabel");

QCOMPARE(totpLabel->text().replace(" ", ""), entry->totp());
QTRY_COMPARE(totpLabel->text().replace(" ", ""), entry->totp());
QTest::keyClick(totpDialog, Qt::Key_Escape);

// Test the QR code
Expand Down

0 comments on commit af2ba79

Please sign in to comment.