From 2a1e3e93a5484ce6ccf5dcb7dddcfa471c5fa8c0 Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Fri, 21 Sep 2018 14:52:32 -0700 Subject: [PATCH] Fixed a couple of bugs. --- tools/auto-tester/src/Test.cpp | 6 +++--- tools/auto-tester/src/ui/AutoTester.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/auto-tester/src/Test.cpp b/tools/auto-tester/src/Test.cpp index 5e3dd50650..e67c5ab65a 100644 --- a/tools/auto-tester/src/Test.cpp +++ b/tools/auto-tester/src/Test.cpp @@ -489,7 +489,7 @@ bool Test::createAllFilesSetup() { parent += "/"; } - _testsRootDirectory = QFileDialog::getExistingDirectory(nullptr, "Please select the root folder for the MD files", parent, + _testsRootDirectory = QFileDialog::getExistingDirectory(nullptr, "Please select the tests root folder", parent, QFileDialog::ShowDirsOnly); // If user cancelled then restore previous selection and return @@ -569,8 +569,8 @@ bool Test::createMDFile(const QString& directory) { QString testName = testScriptLines.title; stream << "# " << testName << "\n"; - // Find the relevant part of the path to the test (i.e. from "tests" down - QString partialPath = extractPathFromTestsDown(_testDirectory); + // Find the relevant part of the path to the test (i.e. from "tests" down) + QString partialPath = extractPathFromTestsDown(_testsRootDirectory); stream << "## Run this script URL: [Manual](./test.js?raw=true) [Auto](./testAuto.js?raw=true)(from menu/Edit/Open and Run scripts from URL...)." << "\n\n"; diff --git a/tools/auto-tester/src/ui/AutoTester.cpp b/tools/auto-tester/src/ui/AutoTester.cpp index 502a447641..fcc6cea8da 100644 --- a/tools/auto-tester/src/ui/AutoTester.cpp +++ b/tools/auto-tester/src/ui/AutoTester.cpp @@ -95,7 +95,7 @@ void AutoTester::startTestsEvaluation(const bool isRunningFromCommandLine, } void AutoTester::on_tabWidget_currentChanged(int index) { - if (index == 1 || index == 2) { + if (index == 2 || index == 3) { _ui.userTextEdit->setDisabled(false); _ui.branchTextEdit->setDisabled(false); } else {