You are here

public function FeatureContext::showHiddenInputs in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenInputs()
  2. 10.0.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenInputs()
  3. 10.1.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 451

Class

FeatureContext
Defines application features from the specific context.

Namespace

Drupal\social\Behat

Code

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