symfony / panther

A browser testing and web crawling library for PHP and Symfony
MIT License
2.91k stars 213 forks source link

Fix screenshot name for tests with data provider when using string date with slashes #538

Open tboyer-debuT opened 2 years ago

tboyer-debuT commented 2 years ago

Hi !

Maybe it's an oversight for the slash character, but i think this line should be :

strtr($test, ['\\' => '-', ':' => '_', '/' => '-']),

in https://github.com/symfony/panther/blob/aeda2f11ac9a6236ac65f310fb21248c722ddcd6/src/ServerExtension.php#L89