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

behat_field_manager::get_form_field_from_label() should return an ElementNotFoundException exception

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Edit mod/forum/tests/behat/edit_post_student.feature and change the name of one of the And I add a "Forum" to section "1" and I fill the form with field names to something different like "Foasdas namasdasd"
      • Run behat with /absolute/path/to/mod/forum/tests/behat/edit_post_student.feature argument to run this single file
      • The failed exception should state Field matching locator "'Whatever you set here" not found
      Show
      Edit mod/forum/tests/behat/edit_post_student.feature and change the name of one of the And I add a "Forum" to section "1" and I fill the form with field names to something different like "Foasdas namasdasd" Run behat with /absolute/path/to/mod/forum/tests/behat/edit_post_student.feature argument to run this single file The failed exception should state Field matching locator "'Whatever you set here" not found
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-45284_master

      Description

      This is a regression caused by MDL-44619, if an element is not found then we look for filemanagers, if it is neither found the triggered exception is the filemanager not found instead of the ElementNotFoundException, which is generic for all field types and should be used rather than the filemanager-specific exception.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14