mardi 12 avril 2016

Laravel 5 test click link with a body having special characters

How can a link be tested if its body has special characters like "@"?

Example:

public function foo()
{
    $this->visit('/foo')
         ->click('foo@foo.com');
}

Error output:

Symfony\Component\CssSelector\Exception\SyntaxErrorException: Expected selector, but <delimiter "@" at 7> found.

Aucun commentaire:

Enregistrer un commentaire