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

To fill forms using behat is slow

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Run any behat feature file that involves filling a form (try with mod/assign/tests/behat for example)
      2. After selenium expands all the fieldsets it SHOULD begin to fill the form without waiting around 6 seconds (This changes if the form does not have expandable fieldsets, then we wait looking for 'Show more...' links)
      Show
      Run any behat feature file that involves filling a form (try with mod/assign/tests/behat for example) After selenium expands all the fieldsets it SHOULD begin to fill the form without waiting around 6 seconds (This changes if the form does not have expandable fieldsets, then we wait looking for 'Show more...' links)
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-40123_master

      Description

      Currently when we fill a form using behat we expand all the fieldsets and all the Show more... links, not all forms have fieldsets to expand nor show more links. On fieldsets case is hard to avoid the "wait until the CSS appears" as the JS that converts them to collapsible/expandable links requires time to run, but the find_all() Show more... link don't need to wait that much as we already did it for the fieldsets.

      This would be a good performance improvement as almost each feature at some point is filling a form and we will avoid the default timeout (6 seconds) for each form without Show more... links.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              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:
                Resolved:
                Fix Release Date:
                9/Sep/13