This step definition is used as a command to wait a specified period of seconds before executing the next step.
When (I |we )*wait (\d*)( second| seconds|s)?
Whatever the specified period is, it will wait for it to end.
Example:s
When I wait 1 second
When we wait 5 seconds
When we wait 3s
When wait 2s
When wait 2 seconds
When we wait 1 second
When we wait 5 seconds
When we wait 4s