MDL-47497 behat: steps for basic download testing.
commitcb7db63b5dc2a6a424103127d0716ad9e18cc333
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 1 Oct 2014 15:39:06 +0000 (1 16:39 +0100)
committerMarina Glancy <marina@moodle.com>
Wed, 8 Oct 2014 11:43:09 +0000 (8 19:43 +0800)
tree82be3261f6da973e3366209efd93a2dfdce23a89
parent885b889dc09f83e28a2672a901e15969480df170
MDL-47497 behat: steps for basic download testing.

These steps were created by sam marshall and Jes Ackland-Snow at the Open
University. I just altered them to make them a bit more generic, and
submitted them to Moodle core, at the point when I wanted to reuse them
in another plugin.

This commit introduces two new steps:

Then following "XXX" should download "YY" bytes
Then following "XXX" should download between "YY" and "ZZ" bytes

At the moment, this only works for links with href attributes.
lib/tests/behat/behat_general.php