Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Deferred
-
2.7.2
-
None
-
MOODLE_27_STABLE
-
Description
The Behat step to set form fields for a Resource including the file to upload is:
And I add a "File" to section "1" and I fill the form with:
|
| Name | FileResource |
|
| Description | x |
|
| Select files | /lib/tests/fixtures/empty.txt |
|
This works perfectly, when run in a single scenario. When you run another scenario previously, the step fails.
To reproduce:
1. Download the attached issue_test.feature file.
2. Put this in the lib/tests/behat folder.
3. Run behat init.
4. Run behat with --tags=behatworks
Observe that the scenario completes successfully.
5. Run behat with --tags=behatbug
Observe that the same scenario now fails, just by virtue of having another scenario run previously (which does nothing).
(Tested on current master and 2.7.x.)