[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/grade/grading/form/rubric/tests/behat/ -> reuse_own_rubrics.feature (source)

   1  @gradingform @gradingform_rubric
   2  Feature: Reuse my rubrics in other activities
   3    In order to save time creating duplicated grading forms
   4    As a teacher
   5    I need to reuse rubrics that I created previously
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email |
  10        | teacher1 | Teacher | 1 | teacher1@example.com |
  11      And the following "courses" exist:
  12        | fullname | shortname | format |
  13        | Course 1 | C1 | topics |
  14      And the following "course enrolments" exist:
  15        | user | course | role |
  16        | teacher1 | C1 | editingteacher |
  17      And I log in as "teacher1"
  18      And I follow "Course 1"
  19      And I turn editing mode on
  20      And I add a "Assignment" to section "1" and I fill the form with:
  21        | Assignment name | Test assignment 1 name |
  22        | Description | Test assignment 1 description |
  23        | Grading method | Rubric |
  24      And I go to "Test assignment 1 name" advanced grading definition page
  25      And I set the following fields to these values:
  26        | Name | Assignment 1 rubric |
  27        | Description | Assignment 1 description |
  28      And I define the following rubric:
  29        | Criterion 1 | Level 11 | 11 | Level 12 | 12 | Level 3 | 13 |
  30        | Criterion 2 | Level 21 | 21 | Level 22 | 22 | Level 3 | 23 |
  31        | Criterion 3 | Level 31 | 31 | Level 32 | 32 |         |    |
  32      And I press "Save rubric and make it ready"
  33      And I follow "Course 1"
  34      When I add a "Assignment" to section "1" and I fill the form with:
  35        | Assignment name | Test assignment 2 name |
  36        | Description | Test assignment 2 description |
  37        | Grading method | Rubric |
  38      And I set "Test assignment 2 name" activity to use "Assignment 1 rubric" grading form
  39      Then I should see "Ready for use"
  40      And I should see "Criterion 1"
  41      And I should see "Criterion 2"
  42      And I should see "Criterion 3"
  43      And I go to "Test assignment 1 name" advanced grading definition page
  44      And I should see "Criterion 1"
  45      And I should see "Criterion 2"
  46      And I should see "Criterion 3"
  47      And I press "Cancel"
  48  
  49    @javascript
  50    Scenario: A teacher can reuse one of his/her previously created rubrics, with Javascript enabled
  51  
  52    Scenario: A teacher can reuse one of his/her previously created rubrics, with Javascript disabled


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