Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4141

Support labels using for attribute in Behat field selectors

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 4.0.1
    • Behat
    • MOODLE_400_STABLE

      At the moment, a label using a for attribute for an input is not working properly in Behat tests.

      For example, the following step should work with the selector I set the field "Username" to "student" in the app:

      <label for="username">Username</label>
      <input name="username" id="username" />
      

            noeldemartin Noel De Martin
            noeldemartin Noel De Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.