mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 00:39:43 -05:00
TestAutoType: Restore AutoTypeEntryTitleMatch before every test.
This commit is contained in:
parent
e98c30f633
commit
862941abf6
@ -38,7 +38,6 @@ void TestAutoType::initTestCase()
|
|||||||
QVERIFY(Crypto::init());
|
QVERIFY(Crypto::init());
|
||||||
Config::createTempFileInstance();
|
Config::createTempFileInstance();
|
||||||
AutoType::createTestInstance();
|
AutoType::createTestInstance();
|
||||||
config()->set("AutoTypeEntryTitleMatch", false);
|
|
||||||
config()->set("security/autotypeask", false);
|
config()->set("security/autotypeask", false);
|
||||||
|
|
||||||
QPluginLoader loader(filePath()->pluginPath("keepassx-autotype-test"));
|
QPluginLoader loader(filePath()->pluginPath("keepassx-autotype-test"));
|
||||||
@ -56,6 +55,7 @@ void TestAutoType::initTestCase()
|
|||||||
|
|
||||||
void TestAutoType::init()
|
void TestAutoType::init()
|
||||||
{
|
{
|
||||||
|
config()->set("AutoTypeEntryTitleMatch", false);
|
||||||
m_test->clearActions();
|
m_test->clearActions();
|
||||||
|
|
||||||
m_db = new Database();
|
m_db = new Database();
|
||||||
@ -147,8 +147,6 @@ void TestAutoType::testGlobalAutoTypeTitleMatch()
|
|||||||
|
|
||||||
void TestAutoType::testGlobalAutoTypeTitleMatchDisabled()
|
void TestAutoType::testGlobalAutoTypeTitleMatchDisabled()
|
||||||
{
|
{
|
||||||
config()->set("AutoTypeEntryTitleMatch", false);
|
|
||||||
|
|
||||||
m_test->setActiveWindowTitle("An Entry Title!");
|
m_test->setActiveWindowTitle("An Entry Title!");
|
||||||
MessageBox::setNextAnswer(QMessageBox::Ok);
|
MessageBox::setNextAnswer(QMessageBox::Ok);
|
||||||
m_autoType->performGlobalAutoType(m_dbList);
|
m_autoType->performGlobalAutoType(m_dbList);
|
||||||
|
Loading…
Reference in New Issue
Block a user