You are here

public function FeatureContext::showHiddenCheckbox in Open Social 8

Same name and namespace in other branches
  1. 8.2 tests/behat/features/bootstrap/FeatureContext.php \FeatureContext::showHiddenCheckbox()

Shows hidden checkboxes.

@When /^(?:|I )show hidden checkboxes/

File

tests/behat/features/bootstrap/FeatureContext.php, line 358

Class

FeatureContext
Defines application features from the specific context.

Code

public function showHiddenCheckbox() {
  $session = $this
    ->getSession();
  $session
    ->executeScript("var inputs = document.getElementsByClassName('form-checkbox');\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          ");
}