Closed trakos closed 2 years ago
I've fixed coding style violation (double quotes instead of single quotes).
I've rebased and changed target to 1.x
Thanks!
Hi !
Maybe it's an oversight for the slash character, but i think this line should be :
strtr($test, ['\\' => '-', ':' => '_', '/' => '-']),
@tboyer-debuT my change was only merged into 1.x branch, you can see it here: https://github.com/symfony/panther/blob/a923ff6d1f6a8034e9ae50d2c186bda1a36d951f/src/ServerExtension.php#L97
It removes slashes from the string, so they no longer break tests. I suppose it should be incorporated into main branch as well, so that it would be available in version 2 as well, but I don't know if that's planned.
Right now it hasn't been released yet, so it's available only on dev-1.x
.
Fixes https://github.com/symfony/panther/issues/481
When using panther for tests with data provider, I've noticed that screenshots are not being made. While debugging I've noticed that there's an exception that's ignored by phpunit:
Apparently phpunit attaches all arguments to the test name when using
toString
method. To avoid that, we would have to use some methods marked as internal that might change without deprecation period. So, instead, I've added slugification of the test name, and cut it to the first 150 characters (with all the other segments total filename length is now max 235 characters).