You are here

public function VarbaseContext::iWaitForMinutes in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7

Same name and namespace in other branches
  1. 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()
  2. 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()
  3. 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()
  4. 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()
  5. 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()

#varbase: To wait for minutes before going to the next step

Example 1: And I wait for "1" minute Example 2: When I wait for "2" minutes Example 3: And wait 1 minute Example 4: When I wait for 3 minutes Example 5: And wait 1m Example 6: When I wait for 3m

@When /^(?:|I )wait (?:|for )"(?P<minutes>\d+)" minute(?:|s)$/ @When /^(?:|I )wait (?:|for )(?P<minutes>\d+) minute(?:|s)$/ @When /^(?:|I )wait (?:|for )(?P<minutes>\d+)m$/

File

tests/features/bootstrap/VarbaseContext.php, line 159

Class

VarbaseContext
Defines application features from the specific context.

Code

public function iWaitForMinutes($minutes) {
  $this
    ->getSession()
    ->wait($minutes * 60 * 1000);
}