Behatch / contexts

Behat extension with most custom helper steps
Other
394 stars 203 forks source link

Handle file uploads correct #275

Open TerjeBr opened 5 years ago

TerjeBr commented 5 years ago

Currently if you specify a file to be uploaded, that file is treated as the temporary upload file normally created by php. That is wrong behaviour, since that temporary file is usually moved or removed by the php application under test. So the next time you run the behat test the file that you used for the upload is not there anymore.

This is a PR to fix this. This PR also removes the temporary files it created afterwards if the application has not removed them.

TerjeBr commented 5 years ago

It has been 6 months now. Could someone with merge rights please look into this?