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

To fill forms using behat is slow

    XMLWordPrintable

Details

    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_25_STABLE
    • MDL-40123_master
    • 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)

    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

              dmonllao David Monllaó
              dmonllao David Monllaó
              Dan Poltawski Dan Poltawski
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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