Skip to content

Commit

Permalink
[Testing] Fixed an issue in the path to the WebDriver (RoboFile.php) (#…
Browse files Browse the repository at this point in the history
…20035)

* Fixed an path issue when you run the tests

* Fixed an path issue when you run the tests
  • Loading branch information
yvesh authored and rdeutz committed Mar 31, 2018
1 parent ad3cdcb commit 4d67e61
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,18 @@ public function createTestingSite($useHtaccess = false)
}
}

$exclude = ['tests', 'tests-phpunit', '.run', '.github', '.git', 'test-install', 'libraries/vendor/codeception', 'libraries/vendor/behat', 'libraries/vendor/joomla-projects'];
$exclude = [
'tests',
'tests-phpunit',
'.run',
'.github',
'.git',
'test-install',
'libraries/vendor/codeception',
'libraries/vendor/behat',
'libraries/vendor/joomla-projects',
'libraries/vendor/consolidation'
];

$this->copyJoomla($this->cmsPath, $exclude);

Expand Down Expand Up @@ -254,7 +265,7 @@ public function runTests($opts = ['use-htaccess' => false, 'env' => 'desktop'])

$this->createTestingSite($opts['use-htaccess']);

$this->taskRunSelenium('libraries/vendor/joomla-projects/selenium-server-standalone', $this->getWebdriver())->run();
$this->taskRunSelenium(__DIR__ . '/libraries/vendor/joomla-projects/selenium-server-standalone', $this->getWebdriver())->run();

sleep(3);

Expand Down Expand Up @@ -456,7 +467,7 @@ private function getSuiteConfig($suite = 'acceptance')
{
if (!$this->suiteConfig)
{
$this->suiteConfig = Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/' . $suite . '.suite.yml'));
$this->suiteConfig = Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/libraries/vendor/joomla/test-system/src/' . $suite . '.suite.yml'));
}

return $this->suiteConfig;
Expand Down

0 comments on commit 4d67e61

Please sign in to comment.