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

Remove blocks added by default in boost theme for running behat

    XMLWordPrintable

    Details

      Description

      While running behat with boost theme, following are now needed. Would be nice to remove these settings, so the site can be tested as vanilla.

      1. Cloumn2 be open by default for behat site https://github.com/damyon/moodle/compare/c9c1e4b...MDL-55074-master#diff-26c08e7b3dca20a9c765412006531735L29

        theme/boost/layout/columns2.php#L30
        +if (isloggedin() && !behat_is_test_site()) {
        }
        

      2. Adding default navigation blocks https://github.com/damyon/moodle/compare/c9c1e4b~23...MDL-55074-master#diff-8795e94e2366b8a59fa64c1b3eb2c76cR112

        lib/behat/classes/util.php#L112
        +        // Force the navigation and settings blocks, even if the theme has made them optional.
        +        set_config('undeletableblocktypes', 'navigation,settings');
        

      Summary of changes:

      In the future 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"

      Two more steps that were added in this issue:
      "PATH > ITEM" "link/text" should exist in current page administration
      "PATH > ITEM" "link/text" should not exist in current page administration

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jan/17