Skip to content

Commit cc77247

Browse files
committed
Merge pull request #110 from javigomez/109
Update modulePosition method fix by Javier
2 parents d11139f + be95abd commit cc77247

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/JoomlaBrowser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,9 @@ public function setModulePosition($module, $position = 'position-7')
672672
$I->amOnPage('administrator/index.php?option=com_modules');
673673
$I->searchForItem($module);
674674
$I->click(['link' => $module]);
675-
$I->waitForText($module, 30, ['css' => 'H3']);
675+
$I->waitForText("Modules: $module", 30, ['css' => 'h1.page-title']);
676+
$I->click(['link' => 'Module']);
677+
$I->waitForText($module, 30, ['css' => 'h3']);
676678
$I->selectOptionInChosen('Position', $position);
677679
$I->click(['xpath' => "//div[@id='toolbar-apply']/button"]);
678680
$I->waitForText('Module successfully saved',30,['id' => 'system-message-container']);

0 commit comments

Comments
 (0)