[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @mod @mod_assign @javascript
   2  Feature: In an assignment, the administrator can edit students' submissions
   3    In order to edit a student's submissions
   4    As an administrator
   5    I need to grade multiple students on one page
   6  
   7    Scenario: Editing a student's submission
   8      Given the following "courses" exist:
   9        | fullname | shortname | category | groupmode |
  10        | Course 1 | C1 | 0 | 1 |
  11      And the following "users" exist:
  12        | username | firstname | lastname | email |
  13        | student1 | Student | 1 | student1@example.com |
  14      And the following "course enrolments" exist:
  15        | user | course | role |
  16        | student1 | C1 | student |
  17      When I log in as "admin"
  18      And I am on site homepage
  19      And I follow "Course 1"
  20      And I turn editing mode on
  21      And I add a "Assignment" to section "1" and I fill the form with:
  22        | Assignment name | Test assignment name |
  23        | Description | Submit your online text |
  24        | assignsubmission_onlinetext_enabled | 1 |
  25        | groupmode | No groups |
  26      And I log out
  27      And I log in as "student1"
  28      And I follow "Course 1"
  29      And I follow "Test assignment name"
  30      And I press "Add submission"
  31      And I set the following fields to these values:
  32        | Online text | I'm the student1 submission |
  33      And I press "Save changes"
  34      And I log out
  35      And I log in as "admin"
  36      And I am on site homepage
  37      And I follow "Course 1"
  38      And I follow "Test assignment name"
  39      And I follow "View all submissions"
  40      And I click on "Edit" "link" in the "Student 1" "table_row"
  41      And I follow "Edit submission"
  42      And I set the following fields to these values:
  43        | Online text | Have you seen the movie Chef? |
  44      And I press "Save changes"
  45      And I follow "View all submissions"
  46      Then I should see "Have you seen the movie Chef?"
  47      And I click on "Edit" "link" in the "Student 1" "table_row"
  48      And I follow "Edit submission"
  49      And I set the following fields to these values:
  50        | Online text | I have seen the movie chef. |
  51      And I press "Save changes"
  52      And I follow "View all submissions"
  53      Then I should see "I have seen the movie chef."


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