There is an issue with the "Attaching a file" step.
Currently it passes and says it's a success but they file doesn't actually attach.
I have attached a test script below for you to test with.
put the upload file into the folder test/behat/upload_files and use only the relative path to the file in the behat feature.
I attached a working feature file which uses the "Image2.png" file already available in the upload_files folder.
Does this test that you've attached make a dialogue box appear?
I don't know what area in Mahara has a dialogue box so I can write a test for it myself.
If this isn't a test that I can use can you please flesh out a test for me and I can do the rest.
The test file I attached does not make the box appear just include the new steps I implemented in https://reviews.mahara.org/#/c/4580.
There are many places in Mahara which have the alert or confirmation dialogue box when you try to delete something or navigate away without submit a change.
You can run the test I attached after checkout the patch https://reviews.mahara.org/#/c/4580.
This actually works now - we can upload a file no problems.