// // Copyright (c) 2016, Scientific Toolworks, Inc. // // This software is licensed under the MIT License. The LICENSE.md file // describes the conditions under which this software may be distributed. // // Author: Shane Gramlich // #include "Test.h" #include "dialogs/CloneDialog.h" #include "dialogs/StartDialog.h" #include "ui/Footer.h" #include "ui/MainWindow.h" #include "ui/RepoView.h" #include #include using namespace Test; using namespace QTest; class TestBareRepo : public QObject { Q_OBJECT private slots: void initTestCase(); void checkDir(); void cleanupTestCase(); private: MainWindow *mWindow = nullptr; }; void TestBareRepo::initTestCase() { StartDialog *dialog = StartDialog::openSharedInstance(); QVERIFY(qWaitForWindowExposed(dialog)); // Find the first button in the first footer. Footer *footer = dialog->findChild