-
Bug
-
Resolution: Fixed
-
Minor
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE
-
MDL-40852_master -
Ankit started the php built in webserver in the wrong directory, and he managed to get 3 test passes run the survey tests!
You can reproduce this by:
- Starting the php webserver in the wrong directory (anywhere but moodle!)
- running behat with --tags @mod_survey
You'll get:
vendor/bin/behat --config /Users/danp/moodledata/integration_behatdata/behat/behat.yml --tags @mod_survey
|
...F--------------
|
|
(::) failed steps (::)
|
|
01. Link matching locator "'Log in'" not found.
|
In step `And I log in as "teacher1"'. # behat_auth::i_log_in_as()
|
From scenario `Switching between the three survey types'. # /Users/danp/git/integration/mod/survey/tests/behat/survey_types.feature:7
|
Of feature `A teacher can set three types of survey activity'. # /Users/danp/git/integration/mod/survey/tests/behat/survey_types.feature
|
|
1 scenario (1 failed)
|
18 steps (3 passed, 14 skipped, 1 failed)
|
0m10.066s
|
- It would be good if we could detect this case, because its an easy thing to get wrong (detect if it looks like a moodle).
- Why do we have 3 passes! Are they doing anything useful?!
- blocks
-
MDL-40566 Add new step definitions to restrict the scope of clicks and "contains text" assertions
-
- Closed
-