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

Form autocomplete not always detected by behat

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.12, 3.7.6, 3.8.3, 3.9.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      Where a autocomplete element is used outside of a Moodle form, it is not always detected as being an autocomplete by the behat field manager.

      This means that you instead up with an additional set of steps like:
      I press key "13" in the field "foo"

      The reason it is not detected as an autocomplete is that the detection comes from the parent div created by the form template.

      The autocomplete code can easily add a new data attribute to more readily identify itself as an autocomplete to give a more consistent use.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              dobedobedoh Andrew Nicols
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: