[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/assign/tests/behat/ -> comment_inline.feature (source)

   1  @mod @mod_assign
   2  Feature: In an assignment, teachers can edit a students submission inline
   3    In order to easily mark students assignments
   4    As a teacher
   5    I need to have a students submission text copied to the grading online form.
   6  
   7    @javascript @_file_upload
   8    Scenario: Submit a text online and edit the submission
   9      Given the following "courses" exist:
  10        | fullname | shortname | category | groupmode |
  11        | Course 1 | C1 | 0 | 1 |
  12      And the following "users" exist:
  13        | username | firstname | lastname | email |
  14        | teacher1 | Teacher | 1 | teacher1@example.com |
  15        | student1 | Student | 1 | student1@example.com |
  16      And the following "course enrolments" exist:
  17        | user | course | role |
  18        | teacher1 | C1 | editingteacher |
  19        | student1 | C1 | student |
  20      And I log in as "teacher1"
  21      And I follow "Course 1"
  22      And I turn editing mode on
  23      And I add a "Assignment" to section "1" and I fill the form with:
  24        | Assignment name | Test assignment name |
  25        | Description | Submit your online text |
  26        | assignsubmission_onlinetext_enabled | 1 |
  27        | assignsubmission_file_enabled | 0 |
  28        | assignfeedback_comments_enabled | 1 |
  29        | assignfeedback_file_enabled | 1 |
  30        | assignfeedback_comments_commentinline | 1 |
  31      And I log out
  32      And I log in as "student1"
  33      And I follow "Course 1"
  34      And I follow "Test assignment name"
  35      And I press "Add submission"
  36      And I set the following fields to these values:
  37        | Online text | I'm the student first submission |
  38      And I press "Save changes"
  39      And I log out
  40      When I log in as "teacher1"
  41      And I follow "Course 1"
  42      And I follow "Test assignment name"
  43      And I follow "View all submissions"
  44      And I click on "Grade" "link" in the "Student 1" "table_row"
  45      And I set the following fields to these values:
  46        | Grade out of 100 | 50 |
  47        | Feedback comments | I'm the teacher feedback |
  48      And I upload "lib/tests/fixtures/empty.txt" file to "Feedback files" filemanager
  49      And I press "Save changes"
  50      And I press "Ok"
  51      And I click on "Edit settings" "link"
  52      And I follow "Test assignment name"
  53      And I follow "View all submissions"
  54      Then I should see "50.00" in the "Student 1" "table_row"
  55      And I should see "Submitted for grading" in the "Student 1" "table_row"
  56      And I should see "Graded" in the "Student 1" "table_row"
  57      And I should see "I'm the student first submission" in the "Student 1" "table_row"
  58      And I should see "I'm the teacher feedback" in the "Student 1" "table_row"
  59      And I should see "empty.txt" in the "Student 1" "table_row"
  60      And I log out
  61      And I log in as "student1"
  62      And I follow "Course 1"
  63      And I follow "Test assignment name"
  64      And I should see "Submitted for grading" in the "Submission status" "table_row"
  65      And I should see "Graded" in the "Grading status" "table_row"
  66      And I should see "I'm the student first submission" in the "Online text" "table_row"
  67      And I should see "I'm the teacher feedback" in the "Feedback comments" "table_row"
  68      And I should see "empty.txt" in the "Feedback files" "table_row"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1