diff options
author | Jonathan White <support@dmapps.us> | 2020-06-04 15:16:47 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-06-04 17:03:40 +0300 |
commit | 6f5e13815c656486b8bd1fb0a0c2b3bcfb06dfd9 (patch) | |
tree | cb317956246eb502a7f56e7a5b39d3470939c3b7 /tests | |
parent | c830f85c09573a70a39e401e0c6184312e11efea (diff) |
Fix resolving resources when running from build directory
* Copy wordlists to build dir share folder
* Change resource path resolution to only test the provided directory, not finding a specific file
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gui/TestGui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp index ec65dbba1..5cfe323b6 100644 --- a/tests/gui/TestGui.cpp +++ b/tests/gui/TestGui.cpp @@ -770,6 +770,9 @@ void TestGui::testDicewareEntryEntropy() auto* spinBoxWordCount = dicewareWidget->findChild<QSpinBox*>("spinBoxWordCount"); spinBoxWordCount->setValue(6); + // Confirm a password was generated + QVERIFY(!pwGeneratorWidget->getGeneratedPassword().isEmpty()); + // Verify entropy and strength auto* entropyLabel = pwGeneratorWidget->findChild<QLabel*>("entropyLabel"); auto* strengthLabel = pwGeneratorWidget->findChild<QLabel*>("strengthLabel"); |