I tried writing a simple feature expanding on the guest_access.feature from Moodle core, but I cannot get 2 of the 4 scenarios to pass when running in browser with @javascript. When I remove @javascript all the scenarios pass fine.
(my .feature files here attached)
It fails when trying to follow Course 1 from site homepage. The screenshot I get when it fails shows the Course 1 link covered by the header. May this be the problem?
When i tried changing the order in which the courses are created in the background (see attached .feature file), it failed when Teacher 1 tries to follow Course 2 from site homepage in the background part and I get the a similar screenshot.
These are my very first steps with behat and I understand it should be possible to work around this somehow and access the course in a different way, but I am just trying to understand why is this happening?!??
Cheers,
Lenka
I am using local Moodle 3.0+, with behat set up according to this guide https://docs.moodle.org/dev/Acceptance_testing#Installation