src/Concerns/MakesAssertions.php
public function assertDontSeeIn($selector, $text)
    {
        $fullSelector = $this->resolver->format($selector);

        $element = $this->resolver->findOrFail($selector);

        PHPUnit::assertFalse(
            Str::contains($element->getText(), $text),
            "Saw unexpected text [{$text}] within element [{$fullSelector}]."
        );

        return $this;
    }
public function assertDontSeeIn($selector, $text)
    {
        $fullSelector = $this->resolver->format($selector);

        $element = $this->resolver->findOrFail($selector);

        PHPUnit::assertFalse(
            Str::contains($element->getText(), $text),
            "Saw unexpected text [{$text}] within element [{$fullSelector}]."
        );

        return $this;
    }
public function assertDontSeeIn ( $ selector , $ text ) { $ fullSelector = $ this -> resolver -> format ( $ selector ) ; $ element = $ this -> resolver -> findOrFail ( $ selector ) ; PHPUnit :: assertFalse ( Str :: contains ( $ element -> getText ( ) , $ text ) , "Saw unexpected text [{$text}] within element [{$fullSelector}]." ) ; return $ this ; }
Assert that the given text does not appear within the given selector.

@param  string  $selector
@param  string  $text
@return $this
Assert that the given text does not appear within the given selector .