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

    • Testing Instructions:
      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.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull Master Branch:
      wip-mdl-50481

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  6/Jul/15