diff --git a/src/Concerns/MakesAssertions.php b/src/Concerns/MakesAssertions.php index 3e4638541..8e6c2067f 100644 --- a/src/Concerns/MakesAssertions.php +++ b/src/Concerns/MakesAssertions.php @@ -145,7 +145,7 @@ public function assertPlainCookieValue($name, $value) * Assert that the given text is present on the page. * * @param string $text - * @param bool $ignoreCase + * @param bool $ignoreCase * @return $this */ public function assertSee($text, $ignoreCase = false) @@ -169,7 +169,7 @@ public function assertDontSee($text) * * @param string $selector * @param string $text - * @param bool $ignoreCase + * @param bool $ignoreCase * @return $this */ public function assertSeeIn($selector, $text, $ignoreCase = false) diff --git a/src/Concerns/WaitsForElements.php b/src/Concerns/WaitsForElements.php index 20097ee3d..54be34931 100644 --- a/src/Concerns/WaitsForElements.php +++ b/src/Concerns/WaitsForElements.php @@ -106,7 +106,7 @@ public function waitForText($text, $seconds = null, $ignoreCase = false) $message = $this->formatTimeOutMessage('Waited %s seconds for text', implode("', '", $text)); - return $this->waitUsing($seconds, 100, function () use ($text) { + return $this->waitUsing($seconds, 100, function () use ($text, $ignoreCase) { return Str::contains($this->resolver->findOrFail('')->getText(), $text, $ignoreCase); }, $message); } @@ -126,7 +126,7 @@ public function waitForTextIn($selector, $text, $seconds = null, $ignoreCase = f { $message = 'Waited %s seconds for text "'.$this->escapePercentCharacters($text).'" in selector '.$selector; - return $this->waitUsing($seconds, 100, function () use ($selector, $text) { + return $this->waitUsing($seconds, 100, function () use ($selector, $text, $ignoreCase) { return $this->assertSeeIn($selector, $text, $ignoreCase); }, $message); }