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

Deprecate behat step: I navigate to "ITEM" node in "MAINNODE > PATH"

    XMLWordPrintable

Details

    • MOODLE_33_STABLE, MOODLE_36_STABLE
    • MOODLE_36_STABLE
    • MDL-57281-master
    • Hide

      Prerequisites:

      Set up acceptance test environment following Running acceptance test.

      Manual testing:

      1. In the attached file (step_instances.txt) there is a list of files where I navigate to "ITEM" node in ... was used.
      2. Checkout an old copy of any of them (git checkout v.3.5.1 admin/tool/uploadcourse/tests/behat/update.feature).
      3. Run behat for the file chosen in step 3 (vendor/bin/behat --config ../bht_moodledata/behatrun/behat/behat.yml admin/tool/uploadcourse/tests/behat/update.feature).
      4. Confirm that you get a deprecation message.
      5. Set $CFG->behat_usedeprecated = true
      6. Run behat for the file chosen in step 3.
      7. Confirm that the test pass.

      Check all affected tests

      1. Copy the attached behat config file, behat.yml, in your Moodle dir root (check that base_url and wd_host in extensions section are right for your environment).
      2. Run, from your Moodle dir root: vendor/bin/behat --config behat.yml.
      3. Confirm that if there are any errors, they are not related to navigation steps.
      Show
      Prerequisites: Set up acceptance test environment following Running acceptance test . Manual testing: In the attached file (step_instances.txt) there is a list of files where I navigate to "ITEM" node in ... was used. Checkout  an old copy of any of them ( git checkout v.3.5.1 admin/tool/uploadcourse/tests/behat/update.feature ). Run behat for the file chosen in step 3 ( vendor/bin/behat --config ../bht_moodledata/behatrun/behat/behat.yml admin/tool/uploadcourse/tests/behat/update.feature ). Confirm  that you get a deprecation message. Set $CFG->behat_usedeprecated = true Run behat for the file chosen in step 3. Confirm that the test pass. Check all affected tests Copy the attached behat config file, behat.yml , in your Moodle dir root (check that base_url and wd_host in extensions section are right for your environment). Run,  from your Moodle dir root: vendor/bin/behat --config behat.yml. Confirm that if there are any errors, they are not related to navigation steps.

    Description

      See MDL-56614 about what it should be replaced with

      We need to deprecate step:
      I navigate to "ITEM" node in "MAINNODE > PATH"

      and use one of the following steps instead:

      I navigate to "PATH > ITEM" in current page administration
      I navigate to "PATH > ITEM" in site administration
      I navigate to course participants
      I navigate to "TAB1 > TAB2" in the course gradebook

      All these steps will work with both Clean theme (using Navigation/Administration blocks) and Boost theme (using flat navigation drawer and page edit cog).
      If some items are not available without Navigation block at all, one can use combination of:

      I add the "Navigation" block if not present
      I click on "LINK" "link" in the "Navigation" "block"

      See https://docs.moodle.org/dev/Deprecation#Step_1._Immediate_action

      Attachments

        Issue Links

          Activity

            People

              vmdef Victor Déniz Falcón
              marina Marina Glancy
              Carlos Escobedo Carlos Escobedo
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/18