Conflicts: cms/djangoapps/contentstore/features/advanced-settings.feature cms/djangoapps/contentstore/features/checklists.feature cms/djangoapps/contentstore/features/component.feature cms/djangoapps/contentstore/features/course-overview.feature cms/djangoapps/contentstore/features/course-settings.feature cms/djangoapps/contentstore/features/course-team.feature cms/djangoapps/contentstore/features/course-updates.feature cms/djangoapps/contentstore/features/courses.feature cms/djangoapps/contentstore/features/discussion-editor.feature cms/djangoapps/contentstore/features/grading.feature cms/djangoapps/contentstore/features/html-editor.feature cms/djangoapps/contentstore/features/problem-editor.feature cms/djangoapps/contentstore/features/section.feature cms/djangoapps/contentstore/features/signup.feature cms/djangoapps/contentstore/features/static-pages.feature cms/djangoapps/contentstore/features/subsection.feature cms/djangoapps/contentstore/features/textbooks.feature cms/djangoapps/contentstore/features/upload.feature cms/djangoapps/contentstore/features/video-editor.feature cms/djangoapps/contentstore/features/video.feature lms/djangoapps/courseware/features/certificates.feature lms/djangoapps/courseware/features/help.feature lms/djangoapps/courseware/features/high-level-tabs.feature lms/djangoapps/courseware/features/homepage.feature lms/djangoapps/courseware/features/login.feature lms/djangoapps/courseware/features/lti.feature lms/djangoapps/courseware/features/navigation.feature lms/djangoapps/courseware/features/problems.feature lms/djangoapps/courseware/features/registration.feature lms/djangoapps/courseware/features/signup.feature lms/djangoapps/courseware/features/video.feature lms/djangoapps/courseware/features/word_cloud.feature
127 lines
5.2 KiB
Gherkin
127 lines
5.2 KiB
Gherkin
@shard_1
|
|
Feature: CMS.Course Grading
|
|
As a course author, I want to be able to configure how my course is graded
|
|
|
|
Scenario: Users can add grading ranges
|
|
Given I have opened a new course in Studio
|
|
And I am viewing the grading settings
|
|
When I add "1" new grade
|
|
Then I see I now have "3" grades
|
|
|
|
Scenario: Users can only have up to 5 grading ranges
|
|
Given I have opened a new course in Studio
|
|
And I am viewing the grading settings
|
|
When I add "6" new grades
|
|
Then I see I now have "5" grades
|
|
|
|
# Cannot reliably make the delete button appear so using javascript instead
|
|
Scenario: Users can delete grading ranges
|
|
Given I have opened a new course in Studio
|
|
And I am viewing the grading settings
|
|
When I add "1" new grade
|
|
And I delete a grade
|
|
Then I see I now have "2" grades
|
|
|
|
# IE and Safari cannot reliably drag and drop through selenium
|
|
@skip_internetexplorer
|
|
@skip_safari
|
|
Scenario: Users can move grading ranges
|
|
Given I have opened a new course in Studio
|
|
And I am viewing the grading settings
|
|
When I move a grading section
|
|
Then I see that the grade range has changed
|
|
|
|
Scenario: Users can modify Assignment types
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I change assignment type "Homework" to "New Type"
|
|
And I press the "Save" notification button
|
|
And I go back to the main course page
|
|
Then I do see the assignment name "New Type"
|
|
And I do not see the assignment name "Homework"
|
|
|
|
Scenario: Users can delete Assignment types
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I delete the assignment type "Homework"
|
|
And I press the "Save" notification button
|
|
And I go back to the main course page
|
|
Then I do not see the assignment name "Homework"
|
|
|
|
Scenario: Users can add Assignment types
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I add a new assignment type "New Type"
|
|
And I press the "Save" notification button
|
|
And I go back to the main course page
|
|
Then I do see the assignment name "New Type"
|
|
|
|
Scenario: Settings are only persisted when saved
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I change assignment type "Homework" to "New Type"
|
|
Then I do not see the changes persisted on refresh
|
|
|
|
Scenario: Settings are reset on cancel
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I change assignment type "Homework" to "New Type"
|
|
And I press the "Cancel" notification button
|
|
Then I see the assignment type "Homework"
|
|
|
|
Scenario: Confirmation is shown on save
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I change assignment type "Homework" to "New Type"
|
|
And I press the "Save" notification button
|
|
Then I see a confirmation that my changes have been saved
|
|
|
|
Scenario: User cannot save invalid settings
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I change assignment type "Homework" to ""
|
|
Then the save notification button is disabled
|
|
|
|
# IE and Safari cannot type in grade range name
|
|
@skip_internetexplorer
|
|
@skip_safari
|
|
Scenario: User can edit grading range names
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I change the highest grade range to "Good"
|
|
And I press the "Save" notification button
|
|
And I reload the page
|
|
Then I see the highest grade range is "Good"
|
|
|
|
Scenario: User cannot edit failing grade range name
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
Then I cannot edit the "Fail" grade range
|
|
|
|
Scenario: User can set a grace period greater than one day
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I change the grace period to "48:00"
|
|
And I press the "Save" notification button
|
|
And I reload the page
|
|
Then I see the grace period is "48:00"
|
|
|
|
Scenario: Grace periods of more than 59 minutes are wrapped to the correct time
|
|
Given I have opened a new course in Studio
|
|
And I have populated the course
|
|
And I am viewing the grading settings
|
|
When I change the grace period to "01:99"
|
|
And I press the "Save" notification button
|
|
And I reload the page
|
|
Then I see the grace period is "02:39"
|