Skip to content

Commit

Permalink
fix oversight in use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Stabenow authored and Bryce Stabenow committed Jan 2, 2024
1 parent 4722376 commit f80b933
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/MakesAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/Concerns/WaitsForElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit f80b933

Please sign in to comment.