I have a behat test that creates several records using an mform containing a filemanager element. The test looks rougly like this:
Given I follow "Link to form"The first upload and form submission works fine. However, the second fails. The file picker is opened and "Upload a file" selected, but instead of the file being attached to the Attachement field, the error "No file attached" is displayed and the test fails. It seems that for some reason, the "Upload this file" button is being pressed before the file is attached, but not on the first time round. Has anyone else seen this problem?
And I set the following fields to these values:
| Title | foo |
| Description | bar |
And I upload "test/file1.jpg" to the "Browse file to upload" filemanager
And I press "Save Changes"
And I follow "Link to form"
And I set the following fields to these values:
| Title | foo |
| Description | bar |
And I upload "test/file2.jpg" to the "Browse file to upload" filemanager
And I press "Save Changes"
I can reproduce the issue in both Firefox and Chrome.