mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-56630 behat: Click on link in specificed block/region
This commit is contained in:
parent
1fd6b25579
commit
dc90838aaa
55 changed files with 216 additions and 183 deletions
|
@ -34,7 +34,7 @@ Feature: In an assignment, teacher can submit feedback files during grading
|
|||
| Maximum number of uploaded files | 2 |
|
||||
| Students submit in groups | Yes |
|
||||
And I follow "Test assignment name"
|
||||
And I follow "Edit settings"
|
||||
And I click on "Edit settings" "link" in the "Administration" "block"
|
||||
And I follow "Expand all"
|
||||
And I set the field "assignfeedback_file_enabled" to "1"
|
||||
And I press "Save and display"
|
||||
|
|
|
@ -38,7 +38,7 @@ Feature: In an assignment, students start a new attempt based on their previous
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the following fields to these values:
|
||||
| Allow another attempt | 1 |
|
||||
|
@ -55,7 +55,7 @@ Feature: In an assignment, students start a new attempt based on their previous
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I should see "I'm the student first submission"
|
||||
|
||||
|
@ -112,7 +112,7 @@ Feature: In an assignment, students start a new attempt based on their previous
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
When I follow "View all submissions"
|
||||
When I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
|
||||
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
|
||||
And "Student 3" row "Status" column of "generaltable" table should contain "No submission"
|
||||
|
|
|
@ -40,7 +40,7 @@ Feature: In an assignment, teachers can edit a students submission inline
|
|||
When I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the following fields to these values:
|
||||
| Grade out of 100 | 50 |
|
||||
|
@ -50,7 +50,7 @@ Feature: In an assignment, teachers can edit a students submission inline
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then I should see "50.00" in the "Student 1" "table_row"
|
||||
And I should see "Submitted for grading" in the "Student 1" "table_row"
|
||||
And I should see "Graded" in the "Student 1" "table_row"
|
||||
|
|
|
@ -28,7 +28,7 @@ Feature: Check that the assignment grade can not be input in a wrong format.
|
|||
| Description | Test assignment description |
|
||||
| Use marking workflow | Yes |
|
||||
When I follow "Test assignment name"
|
||||
Then I follow "View all submissions"
|
||||
Then I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Grade out of 100" to "50,,6"
|
||||
And I press "Save changes"
|
||||
|
@ -58,7 +58,7 @@ Feature: Check that the assignment grade can not be input in a wrong format.
|
|||
| Description | Test assignment description |
|
||||
| Use marking workflow | Yes |
|
||||
When I follow "Test assignment name"
|
||||
Then I follow "View all submissions"
|
||||
Then I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Grade out of 100" to "50..6"
|
||||
And I press "Save changes"
|
||||
|
|
|
@ -28,14 +28,14 @@ Feature: Check that the assignment grade can be updated correctly
|
|||
| Description | Test assignment description |
|
||||
| Use marking workflow | Yes |
|
||||
When I follow "Test assignment name"
|
||||
Then I follow "View all submissions"
|
||||
Then I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Grade out of 100" to "50"
|
||||
And I press "Save changes"
|
||||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
|
||||
|
||||
@javascript
|
||||
|
@ -64,12 +64,12 @@ Feature: Check that the assignment grade can be updated correctly
|
|||
| Students submit in groups | Yes |
|
||||
| Group mode | No groups |
|
||||
When I follow "Test assignment name"
|
||||
Then I follow "View all submissions"
|
||||
Then I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Grade out of 100" to "50"
|
||||
And I press "Save changes"
|
||||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
|
||||
|
|
|
@ -40,7 +40,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 2" "table_row"
|
||||
And I set the following fields to these values:
|
||||
| Grade | 49 |
|
||||
|
@ -58,7 +58,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
|
|||
When I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 2" "table_row"
|
||||
And I click on "View a different attempt" "link"
|
||||
And I click on "//div[contains(concat(' ', normalize-space(@class), ' '), ' confirmation-dialogue ')]//input[@value='0']" "xpath_element"
|
||||
|
|
|
@ -36,18 +36,18 @@ Feature: In an assignment, the administrator can edit students' submissions
|
|||
And I am on site homepage
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Edit" "link" in the "Student 1" "table_row"
|
||||
And I choose "Edit submission" in the open action menu
|
||||
And I set the following fields to these values:
|
||||
| Online text | Have you seen the movie Chef? |
|
||||
And I press "Save changes"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then I should see "Have you seen the movie Chef?"
|
||||
And I click on "Edit" "link" in the "Student 1" "table_row"
|
||||
And I choose "Edit submission" in the open action menu
|
||||
And I set the following fields to these values:
|
||||
| Online text | I have seen the movie chef. |
|
||||
And I press "Save changes"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then I should see "I have seen the movie chef."
|
||||
|
|
|
@ -32,7 +32,7 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
|
|||
| Use marking workflow | Yes |
|
||||
| Use marking allocation | Yes |
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "allocatedmarker" to "Marker 1"
|
||||
And I press "Save changes"
|
||||
|
@ -42,7 +42,7 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
|
|||
When I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I set the field "markerfilter" to "Marker 1"
|
||||
Then I should see "Student 1"
|
||||
And I should not see "Student 2"
|
||||
|
|
|
@ -50,7 +50,7 @@ Feature: View the grading status of an assignment
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Not marked" in the "Student 1" "table_row"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Grade out of 100" to "50"
|
||||
|
@ -60,7 +60,7 @@ Feature: View the grading status of an assignment
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "In review" in the "Student 1" "table_row"
|
||||
And I log out
|
||||
# View the grading status as a student.
|
||||
|
@ -77,7 +77,7 @@ Feature: View the grading status of an assignment
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "In review" in the "Student 1" "table_row"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Marking workflow state" to "Released"
|
||||
|
@ -85,7 +85,7 @@ Feature: View the grading status of an assignment
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Released" in the "Student 1" "table_row"
|
||||
And I log out
|
||||
# View the grading status as a student.
|
||||
|
@ -102,7 +102,7 @@ Feature: View the grading status of an assignment
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Released" in the "Student 1" "table_row"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Marking workflow state" to "In marking"
|
||||
|
@ -110,7 +110,7 @@ Feature: View the grading status of an assignment
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "In marking" in the "Student 1" "table_row"
|
||||
# The grade should also remain displayed as it's stored in the assign DB tables, but the final grade should be empty.
|
||||
And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
|
||||
|
@ -146,7 +146,7 @@ Feature: View the grading status of an assignment
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should not see "Graded" in the "Student 1" "table_row"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Grade out of 100" to "50"
|
||||
|
@ -155,7 +155,7 @@ Feature: View the grading status of an assignment
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Graded" in the "Student 1" "table_row"
|
||||
And I log out
|
||||
# View the grading status as a student.
|
||||
|
|
|
@ -35,7 +35,7 @@ Feature: Grant an extension to an offline student
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
When I follow "View all submissions"
|
||||
When I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Edit" "link" in the "Student 1" "table_row"
|
||||
And I follow "Grant extension"
|
||||
And I should see "Student 1 (student1@example.com)"
|
||||
|
@ -56,7 +56,7 @@ Feature: Grant an extension to an offline student
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
When I follow "View all submissions"
|
||||
When I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I set the field "selectall" to "1"
|
||||
And I set the field "operation" to "Grant extension"
|
||||
And I click on "Go" "button" confirming the dialogue
|
||||
|
@ -88,7 +88,7 @@ Feature: Grant an extension to an offline student
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
When I follow "View all submissions"
|
||||
When I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Edit" "link" in the "Student 1" "table_row"
|
||||
And I follow "Grant extension"
|
||||
And I should see "Student 1 (student1@example.com)"
|
||||
|
@ -110,7 +110,7 @@ Feature: Grant an extension to an offline student
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
When I follow "View all submissions"
|
||||
When I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I set the field "selectall" to "1"
|
||||
And I set the field "operation" to "Grant extension"
|
||||
And I click on "Go" "button" confirming the dialogue
|
||||
|
|
|
@ -35,7 +35,7 @@ Feature: Group assignment submissions
|
|||
| Students submit in groups | Yes |
|
||||
| Group mode | No groups |
|
||||
And I follow "Test assignment name"
|
||||
When I follow "View all submissions"
|
||||
When I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then "//tr[contains(., 'Student 0')][contains(., 'Default group')]" "xpath_element" should exist
|
||||
And "//tr[contains(., 'Student 1')][contains(., 'Default group')]" "xpath_element" should exist
|
||||
And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exist
|
||||
|
@ -54,7 +54,7 @@ Feature: Group assignment submissions
|
|||
And I add "Student 1 (student1@example.com)" user to "Group 1" group members
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist
|
||||
And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exist
|
||||
And I should not see "Student 2"
|
||||
|
@ -113,7 +113,7 @@ Feature: Group assignment submissions
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
When I follow "View all submissions"
|
||||
When I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
|
||||
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
|
||||
And "Student 3" row "Status" column of "generaltable" table should not contain "Submitted for grading"
|
||||
|
@ -130,7 +130,7 @@ Feature: Group assignment submissions
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
|
||||
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
|
||||
And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading"
|
||||
|
|
|
@ -62,7 +62,7 @@ Feature: Outcome grading
|
|||
When I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 0" "table_row"
|
||||
And I set the following fields to these values:
|
||||
| Outcome Test: | Excellent |
|
||||
|
@ -70,7 +70,7 @@ Feature: Outcome grading
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
|
||||
And I should not see "Outcome Test: Excellent" in the "Student 1" "table_row"
|
||||
|
||||
|
@ -112,7 +112,7 @@ Feature: Outcome grading
|
|||
When I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 0" "table_row"
|
||||
And I set the following fields to these values:
|
||||
| Outcome Test: | Excellent |
|
||||
|
@ -121,7 +121,7 @@ Feature: Outcome grading
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
|
||||
And I should see "Outcome Test: Excellent" in the "Student 1" "table_row"
|
||||
And I should not see "Outcome Test: Excellent" in the "Student 2" "table_row"
|
||||
|
@ -133,7 +133,7 @@ Feature: Outcome grading
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
|
||||
And I should see "Outcome Test: Disappointing" in the "Student 1" "table_row"
|
||||
And I should not see "Outcome Test: Disappointing" in the "Student 0" "table_row"
|
||||
|
|
|
@ -45,7 +45,7 @@ Feature: Prevent or allow assignment submission changes
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
When I follow "View all submissions"
|
||||
When I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Edit" "link" in the "Student 1" "table_row"
|
||||
And I follow "Prevent submission changes"
|
||||
Then I should see "Submission changes not allowed"
|
||||
|
@ -59,7 +59,7 @@ Feature: Prevent or allow assignment submission changes
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Edit" "link" in the "Student 1" "table_row"
|
||||
And I follow "Allow submission changes"
|
||||
And I should not see "Submission changes not allowed"
|
||||
|
@ -98,7 +98,7 @@ Feature: Prevent or allow assignment submission changes
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
When I follow "View all submissions"
|
||||
When I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I set the field "selectall" to "1"
|
||||
And I click on "Go" "button" confirming the dialogue
|
||||
Then I should see "Submission changes not allowed" in the "Student 1" "table_row"
|
||||
|
@ -112,7 +112,7 @@ Feature: Prevent or allow assignment submission changes
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I set the field "selectall" to "1"
|
||||
And I set the field "id_operation" to "Unlock submissions"
|
||||
And I click on "Go" "button" confirming the dialogue
|
||||
|
|
|
@ -38,7 +38,7 @@ Feature: In an assignment, teachers grade multiple students on one page
|
|||
And I am on site homepage
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I wait until the page is ready
|
||||
And I press "Save changes"
|
||||
|
@ -110,7 +110,7 @@ Feature: In an assignment, teachers grade multiple students on one page
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the following fields to these values:
|
||||
| Grade out of 100 | 50.0 |
|
||||
|
@ -120,7 +120,7 @@ Feature: In an assignment, teachers grade multiple students on one page
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then I click on "Quick grading" "checkbox"
|
||||
And I set the field "User grade" to "60.0"
|
||||
And I press "Save all quick grading changes"
|
||||
|
@ -148,7 +148,7 @@ Feature: In an assignment, teachers grade multiple students on one page
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Hide User picture" "link"
|
||||
And I click on "Hide Full name" "link"
|
||||
And I click on "Hide Email address" "link"
|
||||
|
|
|
@ -41,7 +41,7 @@ Feature: Submissions are unlocked when a new attempt is given
|
|||
And I am on site homepage
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Edit" "link" in the "Student 1" "table_row"
|
||||
And I follow "Prevent submission changes"
|
||||
And I should see "Submission changes not allowed"
|
||||
|
@ -76,7 +76,7 @@ Feature: Submissions are unlocked when a new attempt is given
|
|||
And I am on site homepage
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Edit" "link" in the "Student 1" "table_row"
|
||||
And I follow "Prevent submission changes"
|
||||
And I should see "Submission changes not allowed"
|
||||
|
|
|
@ -26,46 +26,46 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
|
|||
| Assignment name | Test assignment name |
|
||||
| Description | Test assignment description |
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Grade out of 100" to "40"
|
||||
And I press "Save changes"
|
||||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
|
||||
|
||||
Scenario: Update the max grade for an assignment without rescaling existing grades
|
||||
Given I follow "Edit settings"
|
||||
Given I click on "Edit settings" "link" in the "Administration" "block"
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "No"
|
||||
And I set the field "Maximum grade" to "80"
|
||||
When I press "Save and display"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
|
||||
|
||||
Scenario: Update an assignment without touching the max grades
|
||||
Given I follow "Edit settings"
|
||||
Given I click on "Edit settings" "link" in the "Administration" "block"
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "No"
|
||||
And I set the field "Maximum grade" to "80"
|
||||
And I press "Save and display"
|
||||
And I follow "Edit settings"
|
||||
And I click on "Edit settings" "link" in the "Administration" "block"
|
||||
And I press "Save and display"
|
||||
And I follow "Edit settings"
|
||||
And I click on "Edit settings" "link" in the "Administration" "block"
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "Yes"
|
||||
And I set the field "Maximum grade" to "80"
|
||||
When I press "Save and display"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
|
||||
|
||||
Scenario: Update the max grade for an assignment rescaling existing grades
|
||||
Given I follow "Edit settings"
|
||||
Given I click on "Edit settings" "link" in the "Administration" "block"
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "Yes"
|
||||
And I set the field "Maximum grade" to "50"
|
||||
When I press "Save and display"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then "Student 1" row "Grade" column of "generaltable" table should contain "20.00"
|
||||
|
|
|
@ -44,7 +44,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Not marked" in the "I'm the student's first submission" "table_row"
|
||||
And I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
|
||||
And I set the field "Grade out of 100" to "50"
|
||||
|
@ -54,7 +54,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "In review" in the "I'm the student's first submission" "table_row"
|
||||
|
||||
@javascript
|
||||
|
@ -65,7 +65,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Ready for release" in the "I'm the student's first submission" "table_row"
|
||||
And I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
|
||||
And I set the field "Marking workflow state" to "Released"
|
||||
|
@ -73,7 +73,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Released" in the "I'm the student's first submission" "table_row"
|
||||
And I set the field "Grading action" to "Reveal student identities"
|
||||
And I press "Continue"
|
||||
|
@ -93,7 +93,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Ready for release" in the "I'm the student's first submission" "table_row"
|
||||
And I set the field "Grading action" to "Reveal student identities"
|
||||
And I press "Continue"
|
||||
|
@ -103,7 +103,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Released" in the "Student 1" "table_row"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
|
|
|
@ -52,7 +52,7 @@ Feature: In an assignment, students can comment in their submissions
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
When I set the following fields to these values:
|
||||
| Grade out of 100 | 50 |
|
||||
|
@ -61,7 +61,7 @@ Feature: In an assignment, students can comment in their submissions
|
|||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
Then I should see "50.00" in the "Student 1" "table_row"
|
||||
And I should see "I'm the teacher feedback" in the "Student 1" "table_row"
|
||||
|
||||
|
@ -72,7 +72,7 @@ Feature: In an assignment, students can comment in their submissions
|
|||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the following fields to these values:
|
||||
| Grade out of 100 | 0 |
|
||||
|
|
|
@ -90,7 +90,7 @@ Feature: Submit assignment without group
|
|||
And I follow "Allow default group"
|
||||
And I should see "1" in the "Groups" "table_row"
|
||||
And I should not see "The setting 'Require group to make submission\' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Default group" in the "Student 1" "table_row"
|
||||
And I should see "Default group" in the "Student 2" "table_row"
|
||||
And I should see "Submitted for grading" in the "Student 1" "table_row"
|
||||
|
@ -100,7 +100,7 @@ Feature: Submit assignment without group
|
|||
And I follow "Require group membership"
|
||||
And I should see "0" in the "Groups" "table_row"
|
||||
And I should see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Not a member of any group, so unable to make submissions." in the "Student 1" "table_row"
|
||||
And I should see "Not a member of any group, so unable to make submissions." in the "Student 2" "table_row"
|
||||
And I should not see "Submitted for grading" in the "Student 1" "table_row"
|
||||
|
@ -110,7 +110,7 @@ Feature: Submit assignment without group
|
|||
And I follow "Require group membership"
|
||||
And I should see "1" in the "Groups" "table_row"
|
||||
And I should not see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Group 1" in the "Student 1" "table_row"
|
||||
And I should see "Group 1" in the "Student 2" "table_row"
|
||||
And I should see "Submitted for grading" in the "Student 1" "table_row"
|
||||
|
@ -128,5 +128,5 @@ Feature: Submit assignment without group
|
|||
And I follow "Course 3"
|
||||
And I follow "Require group membership"
|
||||
And I should see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I should see "Member of more than one group, so unable to make submissions." in the "Student 3" "table_row"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue