[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @mod @mod_assign
   2  Feature: Check that the assignment grade can not be input in a wrong format.
   3    In order to ensure that the grade is entered in the right format
   4    As a teacher
   5    I need to grade a student and ensure that the grade should be correctly entered
   6  
   7    @javascript
   8    Scenario: Error in the decimal separator ,
   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 | student10@example.com |
  16      And the following "course enrolments" exist:
  17        | user | course | role |
  18        | teacher1 | C1 | editingteacher |
  19        | student1 | C1 | student |
  20      And the following "groups" exist:
  21        | name | course | idnumber |
  22        | Group 1 | C1 | G1 |
  23      And I log in as "teacher1"
  24      And I follow "Course 1"
  25      And I turn editing mode on
  26      And I add a "Assignment" to section "1" and I fill the form with:
  27        | Assignment name | Test assignment name |
  28        | Description | Test assignment description |
  29        | Use marking workflow | Yes |
  30      When I follow "Test assignment name"
  31      Then I follow "View all submissions"
  32      And I click on "Grade" "link" in the "Student 1" "table_row"
  33      And I set the field "Grade out of 100" to "50,,6"
  34      And I press "Save changes"
  35      And I should see "The grade provided could not be understood: 50,,6"
  36  
  37    @javascript
  38    Scenario: Error in the decimal separator .
  39      Given the following "courses" exist:
  40        | fullname | shortname | category | groupmode |
  41        | Course 1 | C1 | 0 | 1 |
  42      And the following "users" exist:
  43        | username | firstname | lastname | email |
  44        | teacher1 | Teacher | 1 | teacher1@example.com |
  45        | student1 | Student | 1 | student10@example.com |
  46      And the following "course enrolments" exist:
  47        | user | course | role |
  48        | teacher1 | C1 | editingteacher |
  49        | student1 | C1 | student |
  50      And the following "groups" exist:
  51        | name | course | idnumber |
  52        | Group 1 | C1 | G1 |
  53      And I log in as "teacher1"
  54      And I follow "Course 1"
  55      And I turn editing mode on
  56      And I add a "Assignment" to section "1" and I fill the form with:
  57        | Assignment name | Test assignment name |
  58        | Description | Test assignment description |
  59        | Use marking workflow | Yes |
  60      When I follow "Test assignment name"
  61      Then I follow "View all submissions"
  62      And I click on "Grade" "link" in the "Student 1" "table_row"
  63      And I set the field "Grade out of 100" to "50..6"
  64      And I press "Save changes"
  65      And I should see "The grade provided could not be understood: 50..6"
  66  


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