Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48374

Behat steps to verify that the page has not been reloaded during certain operations

    XMLWordPrintable

    Details

      Description

      I am developing some functionality where it is an important requirement that the page does not reload. That is, that certain things are handled entirely client-side.

      In order to verify this, I want some behat steps like:

          When I press "Attempt quiz now"
          And I mark the page to detect reloads
          And I click on "Question 2" "link" in the "Quiz navigation" "block"
          Then I should not see "Answer me A"
          And I should see "Answer me B"
          And ...
          And the page should not have reloaded since it was marked
      

      I have done this in my plugin, but I thought these steps might be useful to other people, so I have created this issue to propose moving them to Moodle core.

      What do people think?

      (I think that they are probably a bit against the idea of automated acceptance testing, since the user should not care about this sort of thing, and we are supposed to be tesing from the user's point of view. However I think they are also useful. Hence I am asking the question.)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Jan/15