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

Behat to verify a student can submit or edit a group assignment depending of "Require all members to submit" setting (Automate MDLQA-4584, MDLQA-4583)

XMLWordPrintable

      The goal is to add a behat test to verify a student can submit or edit a group assignment with "Require all members to submit" disabled/enabled

      QA tests to be automated: MDLQA-4584 and MDLQA-4583

      QA testing instructions

      MDLQA-4583

      This test requires a course set to group mode (visible or separate) and with two students in a group.

      1. Log in as a teacher in a course and create an assignment with the following settings:
        1. Online text = Yes
        2. Enable file submissions = Yes
        3. Max number of uploaded files = 1
        4. Require students to click submit button = Yes
        5. Students submit in groups = Yes
        6. Require all group members submit = Yes
        7. Group mode = Separate or visible
      2. Log in as student 1 and navigate to the assignment
      3. Verify you see your group name but not the names of other students
      4. Click "Add submission" ; add text, upload a file and save changes
      5. Verify that the Submission status says "Draft" and Student 1 and Student 2 are now shown as needing to submit
      6. Click the "submit assignment" button.
      7. Log in as Student 2 and navigate to the assignment
      8. Verify that the submission status is still "Draft" but only only Student 2 (you) is shown as needing to submit
      9. Edit the text; delete and replace the uploaded file and click "Submit assignment"
      10. Verify that the Submission status has now changed to "Submitted for grading"
      MDLQA-4584

      This test requires a course set to group mode (visible or separate) and with two students in a group.

      1. Log in as a teacher in a course and create an assignment with the following settings:
        1. Online text = Yes
        2. Enable file submissions = Yes
        3. Max number of uploaded files = 1
        4. Require students to click submit button = No
        5. Students submit in groups = Yes
        6. Group mode = Separate or visible
      2. Log in as Student 1 and navigate to the assignment
      3. Verify you see your group name but not the names of other students
      4. Click "Add submission" ; add text, upload a file and save changes
      5. Log in as Student 2 and navigate to the assignment.
      6. Verify that the Submission status shows "Submitted for grading"
      7. Verify that you see the "Edit submission" button and click on it
      8. Edit the text; delete and replace the uploaded file and save the changes.
      9. Log in as Student 1 and navigate to the assignment
      10. Verify that the Submission status shows "Submitted for grading", with the new changes from Student 2 displayed.

            andelacruz Angelia Dela Cruz
            lameze Simey Lameze
            Simey Lameze Simey Lameze
            Ilya Tregubov Ilya Tregubov
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours, 50 minutes
                1d 4h 50m

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