behat-fail-aid icon indicating copy to clipboard operation
behat-fail-aid copied to clipboard

Screenshots config is bugged

Open acantepie opened this issue 4 years ago • 1 comments

If you use following config :

    FailAid\Extension:
      screenshot:
        directory: /tmp/behat/screenshots

You will get an error : Notice: Undefined index: autoClean in vendor/genesis/behat-fail-aid/src/Context/FailureContext.php line 228

If folder /tmp/behat/screenshots doesn't exist, instead of create it you will get the following error: [SCREENSHOT] Unable to produce screenshot: Warning: file_put_contents(/20210312-1615572827.1942.html): failed to open stream: Permission denied in vendor/genesis/behat-fail-aid/src/Service/Screenshot.php line 149

acantepie avatar Mar 12 '21 18:03 acantepie

@acantepie thanks for logging this issue. I'll try to replicate.

forceedge01 avatar Mar 15 '21 09:03 forceedge01