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

Consent page hasn't blocks with Clean theme

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 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.

      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.

            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

              Created:
              Updated:
              Resolved:

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