Skip to content

Commit

Permalink
Fix problem with button not being visible on page.
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercowley committed Nov 14, 2013
1 parent 5ba2931 commit 3ef98c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ $ -> Language fix or change
- -> Removed
! -> Note

01-Nov-2013
14-Nov-2013 Mark Dexter
# Fix problem with button not being visible on page.

01-Nov-2013 Mark Dexter
# Fix problem with hidden filters in User Manager.

31-Oct-2013
31-Oct-2013 Mark Dexter
# Fix problem with category filter in article manager.

30-Oct-2013 Mark Dexter
Expand Down
3 changes: 3 additions & 0 deletions tests/system/webdriver/Pages/System/AdminEditPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ protected function setTextAreaValues(array $values)
}
if (isset($guiEditor) && is_array($guiEditor) && count($guiEditor) == 1 && $guiEditor[0]->isDisplayed())
{
$this->driver->executeScript("window.scrollBy(0,400)");
$guiEditor[0]->click();
}

Expand All @@ -457,8 +458,10 @@ protected function setTextAreaValues(array $values)

if (isset($guiEditor) && is_array($guiEditor) && count($guiEditor) == 1 && $guiEditor[0]->isDisplayed())
{
$this->driver->executeScript("window.scrollBy(0,400)");
$guiEditor[0]->click();
}
$this->driver->executeScript("window.scrollTo(0,0)");
}

/**
Expand Down

0 comments on commit 3ef98c2

Please sign in to comment.