-
Bug
-
Resolution: Fixed
-
Major
-
3.8.2
-
MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-68525-master -
-
To reproduce:
- On a Windows computer.
- Check out latest master.
- Init Behat following the instructions on https://docs.moodle.org/dev/Running_acceptance_test. In particular copy/paste the $CFG->behat_profiles = [...]; into your config,php.
- Run any Behat tests tagged @javascript.
Expected result: it works.
Actual result: it fails with the "The base URL (http://localhost/moodle) is not a behat test site."
To verify it was the recent change that broke this.:
- git checkout 788dfb9c7dad27824ee52
- Re-init Behat. (php admin/tool/behat/cli/init.php)
- Run any Behat tests tagged @javascript.
then it works.
If, instead, you change your config.php to set $CFG->behat_config (e.g. as at https://pastebin.com/Jz6FGUHf) then it works.
TODO: Don't forget to review and unhold (currently held @ integration) MDL-68445, depending of the changes here it can be unlocked. If solution here involves downgrading or affects to that issue in any way... then we need to send it back to dev.