mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-79653-401' of https://github.com/andelacruz/moodle …
…into MOODLE_401_STABLE
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
grade/grading/form/guide/tests/behat/delete_marking_guide.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@gradingform @gradingform_guide | ||
Feature: Teacher can delete marking guide | ||
As a teacher, | ||
I should be able to delete a marking guide | ||
|
||
Background: | ||
Given the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| teacher1 | Teacher | One | teacher1@example.com | | ||
And the following "courses" exist: | ||
| fullname | shortname | format | | ||
| Course 1 | C1 | topics | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| teacher1 | C1 | editingteacher | | ||
And the following "activities" exist: | ||
| activity | course | name | advancedgradingmethod_submissions | | ||
| assign | C1 | Assign 1 | guide | | ||
And I am on the "Course 1" course page logged in as teacher1 | ||
And I go to "Assign 1" advanced grading definition page | ||
And I set the following fields to these values: | ||
| Name | Marking guide 1 | | ||
And I define the following marking guide: | ||
| Criterion name | Description for students | Description for markers | Maximum score | | ||
| Criterion 1 | Criterion 1 description for student | Criterion 1 description for markers | 100 | | ||
And I press "Save marking guide and make it ready" | ||
|
||
Scenario: Delete a marking guide | ||
Given I am on the "Course 1" course page | ||
And I go to "Assign 1" advanced grading page | ||
When I click on "Delete the currently defined form" "link" | ||
And I press "Cancel" | ||
# Confirm that marking guide was not deleted if Cancel is pressed | ||
Then I should see "Marking guide 1 Ready for use" | ||
And I should see "Criterion 1" | ||
And I click on "Delete the currently defined form" "link" | ||
And I press "Continue" | ||
# Confirm that marking guide was deleted successfully if Continue is pressed | ||
And I should see "Please note: the advanced grading form is not ready at the moment. Simple grading method will be used until the form has a valid status." | ||
And I should not see "Marking guide 1 Ready for use" | ||
And I should not see "Criterion 1" |