protected function MediaEntityJavascriptTestBase::waitUntilVisible in Media entity 8
Waits and asserts that a given element is visible.
Parameters
string $selector: The CSS selector.
int $timeout: (Optional) Timeout in milliseconds, defaults to 1000.
string $message: (Optional) Message to pass to assertJsCondition().
File
- tests/
src/ FunctionalJavascript/ MediaEntityJavascriptTestBase.php, line 106
Class
- MediaEntityJavascriptTestBase
- Base class for Media Entity Javascript functional tests.
Namespace
Drupal\Tests\media_entity\FunctionalJavascriptCode
protected function waitUntilVisible($selector, $timeout = 1000, $message = '') {
$condition = "jQuery('" . $selector . ":visible').length > 0";
$this
->assertJsCondition($condition, $timeout, $message);
}