Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 14, 2023
1 parent 20c3dab commit f478797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/WaitsForElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public function waitForTextIn($selector, $text, $seconds = null)
$message = 'Waited %s seconds for text "'.$this->escapePercentCharacters($text).'" in selector '.$selector;

return $this->waitUsing($seconds, 100, function () use ($selector, $text) {
return Str::contains($this->resolver->findOrFail($selector)->getText(), $text);
}, $message)->assertSeeIn($selector, $text);
return $this->assertSeeIn($selector, $text);
}, $message);
}

/**
Expand Down

0 comments on commit f478797

Please sign in to comment.