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

Acceptance testing admin page does not allow to search for multiple words phrase

    XMLWordPrintable

    Details

      Description

      Steps to reproduce

      • Log in as admin
      • Go to Site administration > Development > Acceptance testing
      • Set the "Contains" field to "I should see"

      Expected behaviour: All Behat steps that contain the "I should see" as a substring should be listed

      Actual behaviour: "There aren't any step definitions matching this filter" is shown

      Reasons

      The admin/tool/behat/index.php uses PARAM_ALPHANUMEXT as a type for this field, effectively disallowing anything but single simple words to be searched for, which significantly decreases the usefulness of this page. The official documentation http://behat.org/en/latest/user_guide/command_line_tool/informative_output.html does not explicitly mention it, but it seems to support multiple words phrase quite well:

      $ vendor/bin/behat --config=/path/to/behat.yml -d 'I should see'
      

      From what I can see, it does not perform an exact match - it returns also 'I should not see' steps. But I am finding that actually useful behaviour.

      Other notes

      While looking at this page, I can see some further space for improvements:

      • The results displayed in 50% narrow column for no good reason
      • The "Info" section occupying a lot of valuable screen space with a static information not relevant for returning experienced developers
      • Overall styling improvements would be nice.

        Attachments

          Activity

            People

            Assignee:
            mudrd8mz David Mudrák (@mudrd8mz)
            Reporter:
            mudrd8mz David Mudrák (@mudrd8mz)
            Peer reviewer:
            Simey Lameze
            Integrator:
            Adrian Greeve
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, 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/Mar/20

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 13 minutes
                6h 13m