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

    • MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Hide

      This change only affects Behat, except for a small change in login.php which should only have effect for Behat test sites. We just need a small manual check to verify that does not cause regressions:

      1. Verify that you can log in to your Moodle site without getting an error.
      Show
      This change only affects Behat, except for a small change in login.php which should only have effect for Behat test sites. We just need a small manual check to verify that does not cause regressions: Verify that you can log in to your Moodle site without getting an error.

      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.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Sam Marshall Sam Marshall
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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