You are here

public function FeatureContext::showHiddenCheckbox in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()
  2. 8.3 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()
  3. 8.5 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()
  4. 8.6 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()
  5. 8.7 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()
  6. 8.8 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()
  7. 10.3.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()
  8. 10.0.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()
  9. 10.1.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()
  10. 10.2.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenCheckbox()

Shows hidden checkboxes.

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

File

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

Class

FeatureContext
Defines application features from the specific context.

Namespace

Drupal\social\Behat

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          ");
}