Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-5249 QA tests converted to behat
  3. MDLQA-12910

A teacher can view hidden chapters in a book

    XMLWordPrintable

Details

    • Functional Test
    • Status: Passed
    • Minor
    • Moodle QA non-runners
    • None
    • Book, Teacher
    • None

    Description

      This test requires a course with a teacher and student enrolled.

      1. As the teacher, turn on the editing and from the Add an activity or resource link, select Book.
      2. Add a book and add two chapters and two sub-chapters, naming them C1 and C2 and SC1 and SC2. (Add random text as content)
      3. Save the book and log in as a student.
      4. Verify that you see the chapters and subchapters in the Table of Contents and that you can access their content.
      5. Log back in as teacher and hide C2 and SC2
      6. With the editing turned off, verify that as a teacher you see the hidden chapters in the Table of Contents and that you can see their content (greyed out)
      7. Log in as the student and verify you do NOT see C2 and SC2.
      8. As the teacher, return to the Book and unhide C2 and SC2
      9. With the editing turned off, verify as the teacher that you can see C2 and SC2 again.
      10. Log in as the student and verify that you can see the whole book once more.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: