Fix GUI tests.

This commit is contained in:
Felix Geyer 2015-07-22 17:32:49 +02:00
parent 9e05f41747
commit a71e25a8ba

View File

@ -436,8 +436,8 @@ void TestGui::testDatabaseLocking()
triggerAction("actionLockDatabases");
QCOMPARE(m_tabWidget->tabText(0), QString("Save [locked]"));
QCOMPARE(m_tabWidget->tabText(1), QString("basic [New database]*"));
QCOMPARE(m_tabWidget->tabText(0), QString("&Save [locked]"));
QCOMPARE(m_tabWidget->tabText(1), QString("&basic [New database]*"));
QWidget* dbWidget = m_tabWidget->currentDatabaseWidget();
QWidget* unlockDatabaseWidget = dbWidget->findChild<QWidget*>("unlockDatabaseWidget");
@ -447,7 +447,7 @@ void TestGui::testDatabaseLocking()
QTest::keyClicks(editPassword, "masterpw");
QTest::keyClick(editPassword, Qt::Key_Enter);
QCOMPARE(m_tabWidget->tabText(m_tabWidget->currentIndex()), QString("basic [New database]*"));
QCOMPARE(m_tabWidget->tabText(m_tabWidget->currentIndex()), QString("&basic [New database]*"));
}
void TestGui::cleanupTestCase()