]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Improve goActions test
authorFelix Ernst <fe.a.ernst@gmail.com>
Thu, 7 Jul 2022 13:32:28 +0000 (13:32 +0000)
committerFelix Ernst <fe.a.ernst@gmail.com>
Thu, 7 Jul 2022 13:32:28 +0000 (13:32 +0000)
This merge request fixes up a little oversight by me. I will merge this as soon as the pipeline passes.

------------------

Some lines verified that nothing is selected when navigating to a
folder that was not acted on yet. These verifications didn't test
anything meaningful because the folder in question was empty.

This commit adds a file and a folder to the test folder so that
testing if nothing is selected means something.

src/tests/dolphinmainwindowtest.cpp

index 448d5bd84b37ead4faee280b24e772a9b1a23a72..ef972ff259d032a0d470e9b2eaecce863bd96e19 100644 (file)
@@ -330,6 +330,8 @@ void DolphinMainWindowTest::testGoActions()
     QScopedPointer<TestDir> testDir{new TestDir()};
     testDir->createDir("a");
     testDir->createDir("b");
+    testDir->createDir("b/b-1");
+    testDir->createFile("b/b-2");
     testDir->createDir("c");
     QUrl childDirUrl(QDir::cleanPath(testDir->url().toString() + "/b"));
     m_mainWindow->openDirectories({ childDirUrl }, false); // Open "b" dir