assertSeeIn('', $text); } /** * Perform a case insensitive search for a string in a given selector. * * @param string $selector * @param string $text * @return \Pterodactyl\Tests\Browser\PterodactylBrowser */ public function assertSeeIn($selector, $text) { $fullSelector = $this->resolver->format($selector); $element = $this->resolver->findOrFail($selector); PHPUnit::assertTrue( Str::contains(mb_strtolower($element->getText()), mb_strtolower($text)), "Did not see expected text [{$text}] within element [{$fullSelector}] using case-insensitive search." ); return $this; } }