Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-13517 Moodle 3.8 QA
  3. MDLQA-14066

CLONE - A teacher can add a list of questions to the Add a Random question dialog

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Passed
    • Priority: Minor
    • Affects Version/s: Moodle 3.8
    • Fix Version/s: Moodle 3.8
    • Component/s: Questions, Quiz, Teacher
    • Labels:
      None

      Description

      Set up

      1. Log in as admin
      2. Create a course (c1)
      3. Enrol a teacher (t1) in the course and give them the question sharer role (so that they have access to the course category questions)
      4. Create a quiz activity (quiz1) in c1
      5. View quiz1 and go to the question bank categories
        • cog icon > question bank > categories
      6. Add a sub category (c1 subcategory) to the “Default for c1” category
      7. Go to the questions tab in the question bank
      8. Create 10 questions (doesn’t matter the type) in the “Default for c1” category
        • Name the questions something that identifies the category, such as “c1 cat q1”, “c1 cat q2” etc
        • Give 5 of the questions the tag “c1”
      9. Create 1 question in the “c1 subcategory” category
        • Name it something identifiable like “sub c2 cat q1”
        • Give it the tags “c1” and “sub”
      10. Create 1 question in the category “Default for Miscellaneous”
        • Name it something identifiable like “misc cat q1”
        • Give it the tags “c1” and “misc”

      Testing the preview section

      1. Log in as t1
      2. Go to quiz1 and edit it
      3. Open the “Add” menu and click “+ a random question” to open the modal
      4. CONFIRM that the modal has two tabs, “Existing category” and “New category”
      5. CONFIRM that each tab has two buttons at the bottom, a cancel button and another button
      6. In the “Existing category” tab modify the filters with various combinations and CONFIRM that the preview section behaves according to the following in each case:
        • There is a sentence stating the number of questions that match the filter, e.g. “There are 10 questions matching this filter” or “There are no questions matching this filter”
        • The sets of questions are displayed in a tabbed list where each page has no more than 5 questions in it
        • The questions displayed match the filters selected, e.g. they have all tags selected, they belong to the category selected, and sub categories aren’t included unless the checkbox is checked

        Attachments

        1. boost.png
          boost.png
          170 kB
        2. classic.png
          classic.png
          170 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: