MDL-38952 behat: Adding no-JS compatibility
MDL-38952 behat: Adding no-JS compatibility

This step is widely used by JS scenarios,
with Javascript disabled this step fails tests
as tree nodes al already expanded; we can
reuse JS scenarios for no-JS tests skiping
this step in no-JS mode.

dilawar/moodle