public function FeatureContext::showHiddenInputs in Open Social 10.0.x
Same name and namespace in other branches
- 10.3.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenInputs()
- 10.1.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenInputs()
- 10.2.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenInputs()
Shows hidden inputs.
@When /^(?:|I )show hidden inputs/
File
- tests/
behat/ features/ bootstrap/ FeatureContext.php, line 450
Class
- FeatureContext
- Defines application features from the specific context.
Namespace
Drupal\social\BehatCode
public function showHiddenInputs() {
$session = $this
->getSession();
$session
->executeScript("var inputs = document.getElementsByClassName('input');\n for(var i = 0; i < inputs.length; i++) {\n inputs[i].style.opacity = 1;\n inputs[i].style.left = 0;\n inputs[i].style.position = 'relative';\n inputs[i].style.display = 'block';\n }\n ");
}