protected function PanelsSubContext::checkVisible in Panopoly 8.2
Ensure the element identified by CSS selector is visible.
Parameters
string $selector: The CSS selector.
2 calls to PanelsSubContext::checkVisible()
- PanelsSubContext::createNewContent in modules/
panopoly/ panopoly_test/ behat/ steps/ panopoly_test_panels.behat.inc - Creates a new widget in the Panels IPE.
- PanelsSubContext::waitForBlockFormInIpe in modules/
panopoly/ panopoly_test/ behat/ steps/ panopoly_test_panels.behat.inc - Waits for IPE to load.
File
- modules/
panopoly/ panopoly_test/ behat/ steps/ panopoly_test_panels.behat.inc, line 75 - Provide Behat step-definitions for Panels.
Class
- PanelsSubContext
- Behat sub-context for Panels.
Code
protected function checkVisible($selector) {
$this
->getSession()
->wait(5000, "jQuery('{$selector}').length > 0 && jQuery('{$selector}').get(0).offsetParent !== null");
}