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

Behat "I select X from the Y singleselect" does not always work without JS

    XMLWordPrintable

Details

    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • wip-mdl-50481
    • Easy
    • Hide
      1. run behat with --name="Changing the min or max grade to use updates the grades accordingly" and ensure it passes.

      FYI: As this patch is based on top of MDL-48618, ensure scenario doesn't have a JS tag.

      Show
      run behat with --name="Changing the min or max grade to use updates the grades accordingly" and ensure it passes. FYI: As this patch is based on top of MDL-48618 , ensure scenario doesn't have a JS tag.

    Description

      With javascript it works fine, but without the step assumes that there is only one 'Go' button per page, which is not always true. In which case, the first 'Go' button will be pressed and the step will not work.

      This was discovered while working on a behat test for the gradebook in MDL-48618, there are more than one singleselect on the user report.

      Attachments

        Issue Links

          Activity

            People

              rajeshtaneja Rajesh Taneja
              fred Frédéric Massart
              David Monllaó David Monllaó
              Dan Poltawski Dan Poltawski
              Simey Lameze Simey Lameze
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6/Jul/15