protected function LingotekSourceActionsTest::filterVisibleElements in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 4.0.x tests/src/FunctionalJavascript/LingotekSourceActionsTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSourceActionsTest::filterVisibleElements()
Removes any non-visible elements from the passed array.
Parameters
\Behat\Mink\Element\NodeElement[] $elements: An array of node elements.
Return value
\Behat\Mink\Element\NodeElement[]
2 calls to LingotekSourceActionsTest::filterVisibleElements()
- LingotekSourceActionsTest::testDropdownSourceStatus in tests/
src/ FunctionalJavascript/ LingotekSourceActionsTest.php - LingotekSourceActionsTest::waitForVisibleElementCount in tests/
src/ FunctionalJavascript/ LingotekSourceActionsTest.php - Waits for the specified number of items to be visible.
File
- tests/
src/ FunctionalJavascript/ LingotekSourceActionsTest.php, line 90
Class
- LingotekSourceActionsTest
- @group lingotek
Namespace
Drupal\Tests\lingotek\FunctionalJavascriptCode
protected function filterVisibleElements(array $elements) {
$elements = array_filter($elements, function (NodeElement $element) {
return $element
->isVisible();
});
return $elements;
}