Posts made by Joseph Rézeau

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

I'm pleased to report that I have finally managed to get the Moodle Behat tests to work on my local Windows machine.😊 Not sure what I did differently from previous unsuccessful attempts, but my obstination did pay. Here is a summary of my current findings.

Using Windows 11. PHP 8.2.13. WampServer 3.3.3. Moodle 4.4+ (Build: 20240425)

Behat tests work with Selenium: I run "java -jar selenium-server-4.11.0.jar standalone";

Behat tests do not work if I run the geckodriver

But after running Selenium, I can use --profile=geckodriver or --profile=headlessgeckodriver when I run vendor\bin\behat etc. commands! Does this mean that the geckodriver is "incorporated" in the Selenium driver? I still cannot run tests in browsers other than Firefox, but I don't mind.

I can now create and run Behat tests for my little plugins. It's fun watching the "marionette" at work in Firefox...

Running the tests on my github repo is another story... Not easy to find out why some tests work fine locally but fail on my github, but I'm making progress there too.

Average of ratings: Useful (2)
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi 00 00!

What a weird username! Here on Moodle we prefer to go by real names. Anyway, your post is missing essential information. Which Moodle theme are you using? It's not clear at all from your screenshot that your H5P Interactive book is "taking up only around 20% of the page". A full screenshot of a full screen of your computer would be more useful.

Average of ratings: Useful (1)