behat-fail-aid
behat-fail-aid copied to clipboard
Screenshots config is bugged
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 thanks for logging this issue. I'll try to replicate.