Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38012 META: Simplify moodle forms
  3. MDL-39421

Fix broken functional tests (conflicts between form section names and buttons)

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Forms Library
    • Labels:
      None
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE

      Description

      Recently simple forms sections began to use a tags with role='button' for the sections expand/collapse links, some of those section names have the same name of the buttons to submit the forms, examples of this are:

      • mod_wiki -> create new page
      • mod_lesson -> add new question

      This is breaking some functional tests, as behat named selectors finds and clicks on the first button with the requested name, including tags with role=button

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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