Skip to content

Commit 8c4bf0d

Browse files
committed
Merge pull request #75 from yvesh/develop
Added check if repo has ending slash
2 parents b0056ff + 9ec9261 commit 8c4bf0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/JoomlaBrowser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ public function installExtensionFromFolder($path, $type = 'Extension')
326326
$I->waitForText('Extensions: Install','30', ['css' => 'H1']);
327327
$I->click(['link' => 'Install from Folder']);
328328
$this->debug('I enter the Path');
329+
330+
//Make sure path has an ending slash
331+
$path = rtrim($path, "/") . "/";
332+
329333
$I->fillField(['id' => 'install_directory'], $path);
330334
// @todo: we need to find a better locator for the following Install button
331335
$I->click(['xpath' => "//button[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button

0 commit comments

Comments
 (0)