From b3ea8b53e13407be06039b82c700bec39f07da4a Mon Sep 17 00:00:00 2001 From: Christian Keuerleber Date: Thu, 7 Oct 2021 16:22:48 +0200 Subject: [PATCH] TASK: make it possible to set the maximum duration while waiting for text --- Classes/ActorTraits/Controls.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/ActorTraits/Controls.php b/Classes/ActorTraits/Controls.php index cf2d52c..2f81868 100644 --- a/Classes/ActorTraits/Controls.php +++ b/Classes/ActorTraits/Controls.php @@ -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);