Skip to content

Bad path generated through getScreenshotName #21

Description

@thinkspill

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....

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions