Skip to content

Commit

Permalink
Another attempt to work with More link
Browse files Browse the repository at this point in the history
Let's try to destroy resizable menu and fit element into screen.

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Feb 24, 2014
1 parent dc58ad9 commit f34a83b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/selenium/TestBase.php
Expand Up @@ -423,11 +423,12 @@ public function expandMore()
} catch (PHPUnit_Extensions_Selenium2TestCase_WebDriverException $e) {
return;
}
/* We need to resize to ensure it fits into accessible area */
$this->execute(array(
'script' => "$('.submenu').addClass('submenuhover');",
'script' => "$('#topmenu').css('width', '50%').menuResizer('destroy');",
'args' => array()
));
$this->waitForElement('byCssSelector', 'li.submenu.submenuhover');
$this->waitForElementNotPresent('byCssSelector', 'li.submenu');
}
}
?>

0 comments on commit f34a83b

Please sign in to comment.