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

Lesson essay text disappears after being entered

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5.4, 2.8, 2.8.6, 3.6
    • Fix Version/s: None
    • Component/s: Lesson
    • Testing Instructions:
      Hide

      Behat test provided. Make sure existing behat and unit tests pass. Test on both boost and clean.

      Prerequisites:

      1. Have a teacher and student
      2. Student should be enrolled in the course we are modifying
      3. Create a lesson
        1. With these additional settings:
          1. In flow control
            1. Allow "Provide option to try a question again"
            2. "Maximum number of attempts" = 3
          2. In 'Grade', enable "Retakes allowed"
        2. With the following structure:
          1. Page one content
            Page one should only have a button to go the next page.
          2. Page two essay question
            Page two should go to page three after the essay is answered
          3. Page three content
            Page three should have a button that goes to the previous page and one that goes to the next page.
          4. Page four content
            Page four should have a button that goes to the previous page and one that goes to the end of lesson.

      Testing instructions:

      Case 1:

      In lesson settings, with "Allow the lesson to preload existing attempts" disabled:

      Case 1.1:

      1. Login as a student
      2. Goto the course and begin the lesson created
      3. When in Page 3(in description) navigate back to the Page 2 
      4. Confirm the previously entered answered is not displayed

      Case 1.2:

      1. Login as a student
      2. Goto the course and begin the lesson created
      3. Finish the lesson, keeping in mind the answers for the essay questions
      4. Repeat step 2
      5. Confirm when on the essay question pages, the answers from 3 should not be populated

      Case 2:

      In lesson settings, with "Allow the lesson to preload existing attempts" enabled:

      Case 2.1:

      1. Login as a student
      2. Goto the course and begin the lesson created
      3. When in Page 3(in description) navigate back to the Page 2 
      4. Confirm the previously entered answered is displayed

      Case 2.2:

      1. Login as a student
      2. Goto the course and begin the lesson created
      3. Finish the lesson, keeping in mind the answers for the essay questions
      4. Repeat step 2
      5. When on the essay question pages, the answers from 3 should be populated

      NOTE: Repeat test substituting essay question with the other question types e.g. true/false, multiple choice

      Show
      Behat test provided. Make sure existing behat and unit tests pass. Test on both boost and clean. Prerequisites: Have a teacher and student Student should be enrolled in the course we are modifying Create a lesson With these additional settings: In flow control Allow "Provide option to try a question again" "Maximum number of attempts" = 3 In 'Grade', enable "Retakes allowed" With the following structure: Page one content Page one should only have a button to go the next page. Page two essay question Page two should go to page three after the essay is answered Page three content Page three should have a button that goes to the previous page and one that goes to the next page. Page four content Page four should have a button that goes to the previous page and one that goes to the end of lesson. Testing instructions: Case 1: In lesson settings, with "Allow the lesson to preload existing attempts" disabled: Case 1.1: Login as a student Goto the course and begin the lesson created When in Page 3(in description) navigate back to the Page 2  Confirm the previously entered answered is not displayed Case 1.2: Login as a student Goto the course and begin the lesson created Finish the lesson, keeping in mind the answers for the essay questions Repeat step 2 Confirm when on the essay question pages, the answers from 3 should not be populated Case 2: In lesson settings, with "Allow the lesson to preload existing attempts" enabled: Case 2.1: Login as a student Goto the course and begin the lesson created When in Page 3(in description) navigate back to the Page 2  Confirm the previously entered answered is displayed Case 2.2: Login as a student Goto the course and begin the lesson created Finish the lesson, keeping in mind the answers for the essay questions Repeat step 2 When on the essay question pages, the answers from 3 should be populated NOTE : Repeat test substituting essay question with the other question types e.g. true/false, multiple choice
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_28_STABLE, MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-45798-master

      Description

      Create a lesson with the following structure.

      Page one content
      Page two essay question
      Page three content
      Page four content

      Page one should only have a button to go the next page.
      Page two should go to page three after the essay is answered
      Page three should have a button that goes to the previous page and one that goes to the next page.
      Page four should have a button that goes to the previous page and one that goes to the end of lesson.

      Take the lesson as a student, answer the essay on page two then click the previous page button on page three. The essay question will load without your previous text forcing the student to retype the essay before continuing.

      UPDATE: After further discussions with the component team and peer reviewer, this issue will now cover the other questions available in lesson with an additional setting to toggle this functionality

        Attachments

          Activity

            People

            • Votes:
              9 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h