I was getting the following error:
Sorry, I couldn't compare screenshot "basicorderform","body":
ImagickException: Unable to write the file: /web/ee2/tests/_log/debug/tmp//web/ee2/tests/cart/BasicNewsTrialNewUser.basicorderform.png
Looking closely at the path you'll see /web/ee2/tests/ repeated twice. The first one is from Configuration::logDir() and the second one is being generated in VisualCeption::getScreenshotName.
That method calls $this->test->getFilename() to retrieve the test's filename, which is the source of the second path.
Removing $caseName from the return string fixes my basic test, but I'm not familiar enough with what other features this may affect that are looking for that screenshot name to be including a full path....
I was getting the following error:
Looking closely at the path you'll see
/web/ee2/tests/repeated twice. The first one is fromConfiguration::logDir()and the second one is being generated inVisualCeption::getScreenshotName.That method calls
$this->test->getFilename()to retrieve the test's filename, which is the source of the second path.Removing
$caseNamefrom the return string fixes my basic test, but I'm not familiar enough with what other features this may affect that are looking for that screenshot name to be including a full path....