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

Consent page hasn't blocks with Clean theme

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5
    • 3.5
    • Privacy
    • MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • MDL-62418-master
    • Hide

      Tests should be run using BOOST and CLEAN themes.

      Setup

      1. Login as admin.
      2. Access to "Site administration | Privacy and policies | Policy settings".
      3. Set “Policies (tool_policy)” as Site policy hander.
      4. Create 1 policy and set it as active.
      5. Access to "Site administration | Users | Permissions | Define roles".
      6. Edit the Manager role.
      7. Make sure the capability tool/policy:acceptbehalf is allowed.

      Testing scenario 1

      1. Login as manager.
      2. Read the policy and click the next button
        • CHECK that the blocks are displayed in the consent page.
      3. Accept the policy in the consent page.
        • CHECK that after accepting the policies, you're redirected to the main site page.
      4. Access to $CFG->wwwroot/admin/tool/policy/index.php.
        • CHECK that the page is redirected to the "Policies and agreements" user page.

      Testing scenario 2

      1. Login as student.
      2. Read the policy and click the next button
        • CHECK that the blocks are displayed in the consent page.
      3. Accept the policy in the consent page.
        • CHECK that after accepting the policies, you're redirected to the main site page.
      4. Access to $CFG->wwwroot/admin/tool/policy/index.php.
        • CHECK that the page is redirected to the "Policies and agreements" user page.
      Show
      Tests should be run using BOOST and CLEAN themes. Setup Login as admin. Access to "Site administration | Privacy and policies | Policy settings". Set “Policies (tool_policy)” as Site policy hander. Create 1 policy and set it as active. Access to "Site administration | Users | Permissions | Define roles". Edit the Manager role. Make sure the capability  tool/policy:acceptbehalf  is allowed. Testing scenario 1 Login as manager. Read the policy and click the next button CHECK that the blocks are displayed in the consent page. Accept the policy in the consent page. CHECK that after accepting the policies, you're redirected to the main site page. Access to $CFG->wwwroot/admin/tool/policy/index.php. CHECK that the page is redirected to the "Policies and agreements" user page. Testing scenario 2 Login as student. Read the policy and click the next button CHECK that the blocks are displayed in the consent page. Accept the policy in the consent page. CHECK that after accepting the policies, you're redirected to the main site page. Access to $CFG->wwwroot/admin/tool/policy/index.php. CHECK that the page is redirected to the "Policies and agreements" user page.

    Description

      stronk7 has discovered it while reviewing the "Agree on behalf of another user as a manager, single policy, javascript on" behat test (which is failing because of this with the clean theme).

      Steps to reproduce (with CLEAN theme):

      1. Login as admin.
      2. Go to "Site administration / Users / Privacy and policies / Policy settings"
      3. Set the site policy handler to "Policy (tool_policy).
      4. Access to "Site administration / Users / Privacy and policies / Manage policies".
      5. Create and enable one policy.
      6. Edit the manager role and allow the "tool/policy:acceptbehalf" capability. 
      7. Logout.
      8. Login as manager.
      9. Read the policy text and click over Next.

      Expected result:

      The consent page should be displayed with the navigation blocks.

      Current result:

      The consent page is displayed without lateral blocks.

      Attachments

        1. image-2018-05-14-17-03-42-563.png
          56 kB
          Michael Hawkins
        2. image-2018-05-14-17-05-41-053.png
          30 kB
          Michael Hawkins
        3. test1_clean_user_policies.png
          57 kB
          Michael Hawkins
        4. test2_clean_user_policies.png
          59 kB
          Michael Hawkins

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              sarjona Sara Arjona (@sarjona)
              Mihail Geshoski Mihail Geshoski
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Michael Hawkins Michael Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/18