public function VarbaseContext::iWaitForMinutes in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 9.0.x
Same name and namespace in other branches
- 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()
- 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()
- 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iWaitForMinutes()
Wait for minutes before going to the next step.
Varbase Context #varbase.
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 196
Class
- VarbaseContext
- Defines application features from the specific context.
Code
public function iWaitForMinutes($minutes = 1) {
$this
->getSession()
->wait($minutes * 60 * 1000);
}