You are here

public function SocialMinkContext::assertCheckBox in Open Social 8.8

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

@override MinkContext::assertCheckBox()

File

tests/behat/features/bootstrap/SocialMinkContext.php, line 48

Class

SocialMinkContext
Defines application features from the specific context.

Namespace

Drupal\social\Behat

Code

public function assertCheckBox($checkbox) {
  $this
    ->getSession()
    ->executeScript("\n      var inputs = document.getElementsByTagName('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      }\n    ");
  parent::assertCheckBox($checkbox);
}