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

heading tag for "Hidden sections are shown in collapsed form"

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup:

      • Create a course in "topics" format with at least three sections, each section should have activities and summary, add images in each summary
      • Hide one section and restrict access to another section (for example, by date)

      Test

      1. As teacher: set "Hidden sections are shown in collapsed form" option in "Course format" on course edit page.
      2. Make sure the hidden section is displayed to the teacher with the availability pill "Hidden from students"
      3. View course as a student, the hidden section should be displayed very similar way to as the section with access restriction is displayed - there should be a heading with section name and the pill with availability restriction. Section summary should not be displayed to students in the hidden section but should be displayed in the section with access restriction.
      4. As teacher: set "Hidden sections are completely hidden" option in "Course format" on course edit page.
      5. Make sure the hidden section is displayed to the teacher with the availability pill "Hidden from students"
      6. View course as a student, the hidden section should not be displayed
      7. As teacher set "Show one section per page" option in "Course format" on course edit page.
      8. Make sure teacher can see and access hidden section (try with editing mode on and off)
      9. View course as a student, the hidden section should not be displayed
      10. As teacher: set "Hidden sections are shown in collapsed form" option in "Course format" on course edit page.
      11. Make sure teacher can see and access hidden section (try with editing mode on and off)
      12. View course as a student, the hidden section should be displayed very similar way to as the section with access restriction is displayed - there should be a heading with section name (not clickable) and the pill with availability restriction. Section summary should not be displayed to students in the hidden section but should be displayed in the section with access restriction.

      On each step make sure that:

      • Student can not see the summary of the hidden section regardless of course settings (to maintain the previous behavior)
      • When access to the section is restricted student CAN see the section summary (again, to maintain the previous behavior)
      • Student can not see and access activities inside sections that are hidden or have access restriction
      • When course setting is ""Hidden sections are completely hidden" student can not see the section heading
      • All sections that are displayed have headers with the section name
      Show
      Setup: Create a course in "topics" format with at least three sections, each section should have activities and summary, add images in each summary Hide one section and restrict access to another section (for example, by date) Test As teacher: set "Hidden sections are shown in collapsed form" option in "Course format" on course edit page. Make sure the hidden section is displayed to the teacher with the availability pill "Hidden from students" View course as a student, the hidden section should be displayed very similar way to as the section with access restriction is displayed - there should be a heading with section name and the pill with availability restriction. Section summary should not be displayed to students in the hidden section but should be displayed in the section with access restriction. As teacher: set "Hidden sections are completely hidden" option in "Course format" on course edit page. Make sure the hidden section is displayed to the teacher with the availability pill "Hidden from students" View course as a student, the hidden section should not be displayed As teacher set "Show one section per page" option in "Course format" on course edit page. Make sure teacher can see and access hidden section (try with editing mode on and off) View course as a student, the hidden section should not be displayed As teacher: set "Hidden sections are shown in collapsed form" option in "Course format" on course edit page. Make sure teacher can see and access hidden section (try with editing mode on and off) View course as a student, the hidden section should be displayed very similar way to as the section with access restriction is displayed - there should be a heading with section name (not clickable) and the pill with availability restriction. Section summary should not be displayed to students in the hidden section but should be displayed in the section with access restriction. On each step make sure that: Student can not see the summary of the hidden section regardless of course settings (to maintain the previous behavior) When access to the section is restricted student CAN see the section summary (again, to maintain the previous behavior) Student can not see and access activities inside sections that are hidden or have access restriction When course setting is ""Hidden sections are completely hidden" student can not see the section heading All sections that are displayed have headers with the section name
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-61015-master

      Description

      1. Select "Hidden sections are shown in collapsed form" option in "Course format" on course edit page.

      2. Switch role to student

      3. Title of the hidden section + " is not available"  will appear in a <div> with no CSS class instead of heading <h3 class="sectionname">. Thus it is impossible to style it as a title of the section.

       

      Shall the html output in this case be more similar to other sections? Something like the following:

      <h3 class="sectionname">[title]</h3>

      <div class="availabilityinfo">section is not available</div>

        Attachments

        1. MDL-61015-after.png
          MDL-61015-after.png
          37 kB
        2. MDL-61015-avoid_doubles.png
          MDL-61015-avoid_doubles.png
          40 kB
        3. MDL-61015-before.png
          MDL-61015-before.png
          32 kB
        4. MDL-61015-indent-and-order.png
          MDL-61015-indent-and-order.png
          577 kB
        5. MDL-61015-Not-available.png
          MDL-61015-Not-available.png
          234 kB
        6. MDL-61015-same_line.png
          MDL-61015-same_line.png
          37 kB
        7. Option-D.png
          Option-D.png
          34 kB
        8. proposal_with_tag.png
          proposal_with_tag.png
          132 kB
        9. student_view_before.png
          student_view_before.png
          9 kB
        10. studentview.png
          studentview.png
          10 kB
        11. studentview2.png
          studentview2.png
          10 kB
        12. study1.png
          study1.png
          242 kB
        13. study2.png
          study2.png
          243 kB
        14. study3.png
          study3.png
          251 kB
        15. study4.png
          study4.png
          260 kB
        16. teacherview.png
          teacherview.png
          11 kB
        17. Testing instruction No.3_Actual Behavior.PNG
          Testing instruction No.3_Actual Behavior.PNG
          536 kB
        18. Verified MDL-61015_Screenshots evidence.xlsx
          4.63 MB
        19. View as a Student.jpg
          View as a Student.jpg
          64 kB
        20. View as a Teacher.jpg
          View as a Teacher.jpg
          64 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jul/18

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h