Skip to content

Commit

Permalink
TASK: make it possible to set the maximum duration while waiting for …
Browse files Browse the repository at this point in the history
…text
  • Loading branch information
kabarakh authored Oct 7, 2021
1 parent 79ae647 commit b3ea8b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/ActorTraits/Controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ public function iAmOn(string $page): void

/**
* @Given I wait for the text :text
* @Given I wait for the text :text in :seconds seconds
* @param string $text
* @param int $seconds
*/
public function iWaitForTheText(string $text): void
public function iWaitForTheText(string $text, int $seconds = 10): void
{
$text = str_replace('\\', '', $text);
$this->waitForText($text);
Expand Down

0 comments on commit b3ea8b5

Please sign in to comment.