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

Behat: new steps to navigate directly to a pages for any plugin, possibly while logging in

    XMLWordPrintable

    Details

      Description

      There are now quite a lot of different Behat steps in differen core components and plugins, along the lines of

      And I am on "..." ...

      This is all very well but it is quite a lot of duplicate code.

      I think it would be better to have a single step like

      And I am on "mod_forum" "Automated testing" "discussion page"

      This step would work by getting the behat_mod_forum context, and then calling ->resolve_url("discussion page", "Automated testing"), then navigating to that URL.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Nov/19

                  Time Tracking

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