You are here

public function SocialDrupalContext::iWaitForSeconds in Open Social 8.3

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

I wait for (seconds) seconds.

@When /^(?:|I )wait for "([^"]*)" seconds$/

File

tests/behat/features/bootstrap/SocialDrupalContext.php, line 197

Class

SocialDrupalContext
Provides pre-built step definitions for interacting with Open Social.

Namespace

Drupal\social\Behat

Code

public function iWaitForSeconds($seconds, $condition = "") {
  $milliseconds = (int) ($seconds * 1000);
  $this
    ->getSession()
    ->wait($milliseconds, $condition);
}