MDL-58265 core_test: replace I turn editing on steps

Also remove few more unnecessary steps that redirects behat to
site home page to actually get to the course.

Part of MDL-55611 epic.
This commit is contained in:
Simey Lameze 2017-03-15 15:13:09 +08:00 committed by Damyon Wiese
parent 3353cfd8c1
commit fdeeaff954
458 changed files with 1697 additions and 2148 deletions

View file

@ -29,8 +29,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
And I am on site homepage
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your PDF file |
@ -38,7 +37,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
| Maximum number of uploaded files | 2 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I upload "mod/assign/feedback/editpdf/tests/fixtures/submission.pdf" file to "File submissions" filemanager
@ -49,7 +48,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
And I should see "Not graded"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Submitted for grading" "table_row"
@ -104,8 +103,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
| G1 | G1 |
| G1 | G2 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your PDF file |
@ -115,7 +113,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
| Grouping for student groups | G1 |
And I log out
When I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I upload "mod/assign/feedback/editpdf/tests/fixtures/submission.pdf" file to "File submissions" filemanager
@ -125,7 +123,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
And I should see "Not graded"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 2" "table_row"

View file

@ -27,8 +27,7 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
| student1 | G1 |
| student2 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your PDF file |
@ -37,7 +36,7 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
| Students submit in groups | Yes |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I upload "mod/assign/feedback/editpdf/tests/fixtures/submission.pdf" file to "File submissions" filemanager
@ -47,7 +46,7 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
And I should see "Not graded"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Submitted for grading" "table_row"
@ -67,7 +66,7 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
And I click on "Edit settings" "link"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I follow "View annotated PDF..."
Then I should see "Annotate PDF"
@ -75,7 +74,7 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
And I click on "Close" "button"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should not see "View annotated PDF..."
@ -83,10 +82,10 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
Scenario: Submit a PDF file as a student and annotate the PDF as a teacher and all students in the group get a copy of the annotated PDF.
Given I press "Save changes"
And I click on "Ok" "button"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I follow "View annotated PDF..."
And I change window size to "large"
@ -96,6 +95,6 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
And I click on "Close" "button"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "View annotated PDF..."

View file

@ -19,8 +19,7 @@ Feature: In an assignment, teacher can view the feedback for a previous attempt.
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your PDF file |
@ -30,7 +29,7 @@ Feature: In an assignment, teacher can view the feedback for a previous attempt.
| Maximum attempts | Unlimited |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I upload "mod/assign/feedback/editpdf/tests/fixtures/submission.pdf" file to "File submissions" filemanager
@ -41,7 +40,7 @@ Feature: In an assignment, teacher can view the feedback for a previous attempt.
And I should see "Not graded"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Submitted for grading" "table_row"

View file

@ -26,8 +26,7 @@ Feature: In an assignment, teacher can submit feedback files during grading
| student1 | G1 |
| student2 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your PDF file |
@ -40,7 +39,7 @@ Feature: In an assignment, teacher can submit feedback files during grading
And I press "Save and display"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I upload "mod/assign/feedback/file/tests/fixtures/submission.txt" file to "File submissions" filemanager
@ -50,7 +49,7 @@ Feature: In an assignment, teacher can submit feedback files during grading
And I should see "Not graded"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I click on "Grade" "link" in the ".submissionlinks" "css_element"
And I upload "mod/assign/feedback/file/tests/fixtures/feedback.txt" file to "Feedback files" filemanager
@ -63,12 +62,12 @@ Feature: In an assignment, teacher can submit feedback files during grading
And I click on "Course 1" "link" in the "[data-region=assignment-info]" "css_element"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "feedback.txt"
And I log out
When I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Then I should not see "feedback.txt"
@ -79,11 +78,11 @@ Feature: In an assignment, teacher can submit feedback files during grading
And I click on "Course 1" "link" in the "[data-region=assignment-info]" "css_element"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "feedback.txt"
And I log out
When I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Then I should see "feedback.txt"

View file

@ -18,8 +18,7 @@ Feature: In an assignment, students start a new attempt based on their previous
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -28,7 +27,7 @@ Feature: In an assignment, students start a new attempt based on their previous
| Attempts reopened | Manually |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
And I set the following fields to these values:
@ -36,7 +35,7 @@ Feature: In an assignment, students start a new attempt based on their previous
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
@ -47,13 +46,13 @@ Feature: In an assignment, students start a new attempt based on their previous
And I click on "Edit settings" "link"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add a new attempt based on previous submission"
And I press "Save changes"
Then I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
@ -89,8 +88,7 @@ Feature: In an assignment, students start a new attempt based on their previous
| student3 | G2 |
| student4 | G2 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -102,7 +100,7 @@ Feature: In an assignment, students start a new attempt based on their previous
| Group mode | Separate groups |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -110,7 +108,7 @@ Feature: In an assignment, students start a new attempt based on their previous
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I navigate to "View all submissions" in current page administration
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
@ -131,7 +129,7 @@ Feature: In an assignment, students start a new attempt based on their previous
# Behat tests for the group submission, should be uncommented once the MDL-48216 is fixed.
# And I log out
# And I log in as "student3"
# And I am on course page "Course 1"
# And I am on "Course 1" course homepage
# And I follow "Test assignment name"
# #And I should see "This is attempt 1 ( 3 attempts allowed )."
# And I press "Add submission"
@ -140,7 +138,7 @@ Feature: In an assignment, students start a new attempt based on their previous
# And I press "Save changes"
# And I log out
# And I log in as "teacher1"
# And I am on course page "Course 1"
# And I am on "Course 1" course homepage
# And I follow "Test assignment name"
# And I navigate to "View all submissions" in current page administration
# And "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
@ -153,7 +151,7 @@ Feature: In an assignment, students start a new attempt based on their previous
# And I press "Save changes"
# And I log out
# And I log in as "student4"
# And I am on course page "Course 1"
# And I am on "Course 1" course homepage
# And I follow "Test assignment name"
# #And I should see "This is attempt 2 ( 3 attempts allowed )."
# And I press "Add submission"
@ -162,7 +160,7 @@ Feature: In an assignment, students start a new attempt based on their previous
# And I press "Save changes"
# And I log out
# And I log in as "teacher1"
# And I am on course page "Course 1"
# And I am on "Course 1" course homepage
# And I follow "Test assignment name"
# I navigate to "View all submissions" in current page administration
# And I click on "Grade" "link" in the "Student 1" "table_row"

View file

@ -23,8 +23,7 @@ Feature: Assign reset
| Group 1 | C1 | G1 |
| Group 2 | C1 | G2 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -36,7 +35,7 @@ Feature: Assign reset
Scenario: Use course reset to clear all attempt data
When I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
And I set the following fields to these values:
@ -47,7 +46,7 @@ Feature: Assign reset
And I should see "Not graded"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I should see "Submitted for grading"
@ -56,7 +55,7 @@ Feature: Assign reset
| Delete all submissions | 1 |
And I press "Reset course"
And I press "Continue"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
Then I should not see "Submitted for grading"
@ -81,7 +80,7 @@ Feature: Assign reset
| Delete all user overrides | 1 |
And I press "Reset course"
And I press "Continue"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "User overrides" in current page administration
Then I should not see "Sam1 Student1"
@ -105,7 +104,7 @@ Feature: Assign reset
| Delete all group overrides | 1 |
And I press "Reset course"
And I press "Continue"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "Group overrides" in current page administration
Then I should not see "Group 1"

View file

@ -30,8 +30,7 @@ Feature: Assign group override
| student2 | G2 |
| student3 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -112,12 +111,12 @@ Feature: Assign group override
And I should see "Wednesday, 1 January 2020, 8:00"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Then I should see "Saturday, 1 January 2000, 8:00"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "Wednesday, 1 January 2020, 8:00"
@ -148,12 +147,12 @@ Feature: Assign group override
And I should see "Wednesday, 1 January 2020, 8:00"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Then I should not see "Make changes to your submission"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "Make changes to your submission"
@ -184,13 +183,13 @@ Feature: Assign group override
And I should see "Thursday, 1 January 2015, 8:00"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Then I should see "This assignment will accept submissions from Wednesday, 1 January 2020, 8:00"
And I should not see "Add submission"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should not see "This assignment will accept submissions from Wednesday, 1 January 2020, 8:00"
@ -235,16 +234,16 @@ Feature: Assign group override
And I should see "Friday, 1 January 2021, 8:00"
And I log out
Then I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "This assignment will accept submissions from Friday, 1 January 2021, 8:00"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "This assignment will accept submissions from Tuesday, 1 January 2030, 8:00"
And I log out
And I log in as "student3"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "This assignment will accept submissions from Wednesday, 1 January 2020, 8:00"

View file

@ -19,8 +19,7 @@ Feature: Assign user override
| student1 | C1 | student |
| student2 | C1 | student |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -101,12 +100,12 @@ Feature: Assign user override
And I should see "Wednesday, 1 January 2020, 8:00"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Then I should see "Saturday, 1 January 2000, 8:00"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "Wednesday, 1 January 2020, 8:00"
@ -137,12 +136,12 @@ Feature: Assign user override
And I should see "Wednesday, 1 January 2020, 8:00"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Then I should not see "Make changes to your submission"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "Make changes to your submission"
@ -173,11 +172,11 @@ Feature: Assign user override
And I should see "Thursday, 1 January 2015, 8:00"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
Then I should see "This assignment will accept submissions from Wednesday, 1 January 2020, 8:00"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should not see "This assignment will accept submissions from Wednesday, 1 January 2020, 8:00"

View file

@ -18,8 +18,7 @@ Feature: In an assignment, teachers can edit a students submission inline
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -30,7 +29,7 @@ Feature: In an assignment, teachers can edit a students submission inline
| assignfeedback_comments_commentinline | 1 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -38,7 +37,7 @@ Feature: In an assignment, teachers can edit a students submission inline
And I press "Save changes"
And I log out
When I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
@ -59,7 +58,7 @@ Feature: In an assignment, teachers can edit a students submission inline
And I should see "empty.txt" in the "Student 1" "table_row"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "Submitted for grading" in the "Submission status" "table_row"
And I should see "Graded" in the "Grading status" "table_row"

View file

@ -21,8 +21,7 @@ Feature: Check that the assignment grade can not be input in a wrong format.
| name | course | idnumber |
| Group 1 | C1 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -51,8 +50,7 @@ Feature: Check that the assignment grade can not be input in a wrong format.
| name | course | idnumber |
| Group 1 | C1 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |

View file

@ -21,8 +21,7 @@ Feature: Check that the assignment grade can be updated correctly
| name | course | idnumber |
| Group 1 | C1 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -56,8 +55,7 @@ Feature: Check that the assignment grade can be updated correctly
| name | course | idnumber |
| Group 1 | C1 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |

View file

@ -20,8 +20,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
| student1 | C1 | student |
| student2 | C1 | student |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -30,7 +29,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
| Attempts reopened | Manually |
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -38,7 +37,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 2" "table_row"
@ -51,12 +50,12 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
And I click on "Edit settings" "link"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "I'm the teacher first feedback" in the "Feedback comments" "table_row"
And I log out
When I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 2" "table_row"
@ -71,7 +70,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
And I click on "Edit settings" "link"
And I log out
Then I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "I'm the teacher second feedback" in the "Feedback comments" "table_row"
And I should see "50.00"

View file

@ -15,9 +15,7 @@ Feature: In an assignment, the administrator can edit students' submissions
| user | course | role |
| student1 | C1 | student |
When I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -25,7 +23,7 @@ Feature: In an assignment, the administrator can edit students' submissions
| groupmode | No groups |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -33,8 +31,7 @@ Feature: In an assignment, the administrator can edit students' submissions
And I press "Save changes"
And I log out
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"

View file

@ -18,8 +18,7 @@ Feature: In an assignment, students can upload files for assessment
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -28,7 +27,7 @@ Feature: In an assignment, students can upload files for assessment
| Maximum number of uploaded files | 2 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
And I upload "lib/tests/fixtures/empty.txt" file to "File submissions" filemanager

View file

@ -22,8 +22,7 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
| student2 | C1 | student |
| marker1 | C1 | teacher |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -41,7 +40,7 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
And I click on "Edit settings" "link"
And I log out
When I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I set the field "markerfilter" to "Marker 1"

View file

@ -21,8 +21,7 @@ Feature: View the grading status of an assignment
Scenario: View the grading status for an assignment with marking workflow enabled
# Add the assignment.
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -33,7 +32,7 @@ Feature: View the grading status of an assignment
And I log in as "student1"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "Not marked"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
When I follow "Test assignment name"
Then I should not see "Feedback"
And I should see "Not marked" in the "Grading status" "table_row"
@ -47,7 +46,7 @@ Feature: View the grading status of an assignment
And I log out
# Mark the submission.
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I should see "Not marked" in the "Student 1" "table_row"
@ -65,7 +64,7 @@ Feature: View the grading status of an assignment
And I log out
# View the grading status as a student.
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "In review" in the "Grading status" "table_row"
And I should not see "Great job! Lol, not really."
@ -75,7 +74,7 @@ Feature: View the grading status of an assignment
And I log out
# Mark the submission again but set the marking workflow to 'Released'.
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I should see "In review" in the "Student 1" "table_row"
@ -90,7 +89,7 @@ Feature: View the grading status of an assignment
And I log out
# View the grading status as a student.
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "Released" in the "Grading status" "table_row"
And I should see "Great job! Lol, not really."
@ -100,7 +99,7 @@ Feature: View the grading status of an assignment
And I log out
# Now, change the status from 'Released' to 'In marking' (this will remove the grade from the gradebook).
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I should see "Released" in the "Student 1" "table_row"
@ -122,8 +121,7 @@ Feature: View the grading status of an assignment
Scenario: View the grading status for an assignment with marking workflow disabled
# Add the assignment.
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -133,7 +131,7 @@ Feature: View the grading status of an assignment
And I log in as "student1"
When I click on ".collapsibleregioncaption" "css_element"
Then I should see "Not graded"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should not see "Feedback"
And I should see "Not graded" in the "Grading status" "table_row"
@ -144,7 +142,7 @@ Feature: View the grading status of an assignment
And I log out
# Mark the submission.
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I should not see "Graded" in the "Student 1" "table_row"
@ -160,7 +158,7 @@ Feature: View the grading status of an assignment
And I log out
# View the grading status as a student.
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "Graded" in the "Grading status" "table_row"
And I should see "Great job! Lol, not really."

View file

@ -33,7 +33,7 @@ Feature: Grant an extension to an offline student
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | duedate |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
@ -44,7 +44,7 @@ Feature: Grant an extension to an offline student
Then I should see "Extension granted until:" in the "Student 1" "table_row"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "Extension due date"
@ -54,7 +54,7 @@ Feature: Grant an extension to an offline student
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | duedate |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I navigate to "View all submissions" in current page administration
And I set the field "selectall" to "1"
@ -76,7 +76,7 @@ Feature: Grant an extension to an offline student
And I should see "Extension granted until:" in the "Student 6" "table_row"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "Extension due date"
@ -86,7 +86,7 @@ Feature: Grant an extension to an offline student
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | allowsubmissionsfromdate | duedate |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 | 1388620800 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
@ -108,7 +108,7 @@ Feature: Grant an extension to an offline student
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | allowsubmissionsfromdate | duedate |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 | 1388620800 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I navigate to "View all submissions" in current page administration
And I set the field "selectall" to "1"

View file

@ -27,8 +27,7 @@ Feature: Group assignment submissions
| name | course | idnumber |
| Group 1 | C1 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -52,7 +51,7 @@ Feature: Group assignment submissions
And I navigate to "Users > Groups" in current page administration
And I add "Student 0 (student0@example.com)" user to "Group 1" group members
And I add "Student 1 (student1@example.com)" user to "Group 1" group members
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist
@ -91,8 +90,7 @@ Feature: Group assignment submissions
| student1 | G1 |
| student2 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -103,7 +101,7 @@ Feature: Group assignment submissions
| Require group to make submission | No |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -111,7 +109,7 @@ Feature: Group assignment submissions
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I navigate to "View all submissions" in current page administration
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
@ -120,7 +118,7 @@ Feature: Group assignment submissions
And "Student 4" row "Status" column of "generaltable" table should not contain "Submitted for grading"
And I log out
And I log in as "student3"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -128,7 +126,7 @@ Feature: Group assignment submissions
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
@ -177,8 +175,7 @@ Feature: Group assignment submissions
| GG1 | G1 |
| GG1 | G2 |
And I log in as "admin"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -190,7 +187,7 @@ Feature: Group assignment submissions
| Require group to make submission | No |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -198,7 +195,7 @@ Feature: Group assignment submissions
And I press "Save changes"
And I log out
And I log in as "student3"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -206,7 +203,7 @@ Feature: Group assignment submissions
And I press "Save changes"
And I log out
And I log in as "student5"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -214,7 +211,7 @@ Feature: Group assignment submissions
And I press "Save changes"
And I log out
And I log in as "admin"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "3" in the "Groups" "table_row"
And I should see "3" in the "Submitted" "table_row"

View file

@ -18,8 +18,7 @@ Feature: In an assignment, students can add and edit text online
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -29,7 +28,7 @@ Feature: In an assignment, students can add and edit text online
| assignsubmission_file_enabled | 0 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
And I set the following fields to these values:
@ -66,8 +65,7 @@ Feature: In an assignment, students can add and edit text online
And the following config values are set as admin:
| autosavefrequency | 1 | editor_atto |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -75,14 +73,14 @@ Feature: In an assignment, students can add and edit text online
| assignsubmission_file_enabled | 0 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
And I set the following fields to these values:
| Online text | text submission |
# Wait for the draft auto save.
And I wait "2" seconds
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
# Confirm draft was restored.

View file

@ -34,8 +34,7 @@ Feature: Outcome grading
| Short name | OT |
| Scale | Test Scale |
And I press "Save changes"
And I am on site homepage
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to "Outcomes" node in "Course administration"
And I set the field "Available standard outcomes" to "Outcome Test"
And I click on "#add" "css_element"
@ -43,8 +42,7 @@ Feature: Outcome grading
Scenario: Giving an outcome to a student
Given I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -52,7 +50,7 @@ Feature: Outcome grading
| Outcome Test | 1 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -60,7 +58,7 @@ Feature: Outcome grading
And I press "Save changes"
And I log out
When I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 0" "table_row"
@ -85,13 +83,11 @@ Feature: Outcome grading
| name | course | idnumber |
| Group 1 | C1 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to "Users > Groups" in current page administration
And I add "Student 0 (student0@example.com)" user to "Group 1" group members
And I add "Student 1 (student1@example.com)" user to "Group 1" group members
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -101,7 +97,7 @@ Feature: Outcome grading
| Outcome Test | 1 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -109,7 +105,7 @@ Feature: Outcome grading
And I press "Save changes"
And I log out
When I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 0" "table_row"

View file

@ -22,8 +22,7 @@ Feature: Prevent or allow assignment submission changes
@javascript
Scenario: Preventing changes and allowing them again
Given I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -31,7 +30,7 @@ Feature: Prevent or allow assignment submission changes
| assignsubmission_file_enabled | 0 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -43,7 +42,7 @@ Feature: Prevent or allow assignment submission changes
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
@ -51,13 +50,13 @@ Feature: Prevent or allow assignment submission changes
Then I should see "Submission changes not allowed"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And "Edit submission" "button" should not exist
And I should see "This assignment is not accepting submissions"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
@ -65,7 +64,7 @@ Feature: Prevent or allow assignment submission changes
And I should not see "Submission changes not allowed"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should not see "This assignment is not accepting submissions"
And I press "Edit submission"
@ -80,7 +79,7 @@ Feature: Prevent or allow assignment submission changes
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 1 | 0 |
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -88,7 +87,7 @@ Feature: Prevent or allow assignment submission changes
And I press "Save changes"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -96,7 +95,7 @@ Feature: Prevent or allow assignment submission changes
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I navigate to "View all submissions" in current page administration
And I set the field "selectall" to "1"
@ -105,12 +104,12 @@ Feature: Prevent or allow assignment submission changes
And I should see "Submission changes not allowed" in the "Student 2" "table_row"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should not see "Edit submission"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I set the field "selectall" to "1"
@ -120,7 +119,7 @@ Feature: Prevent or allow assignment submission changes
And I should not see "Submission changes not allowed" in the "Student 2" "table_row"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Edit submission"
And I set the following fields to these values:

View file

@ -18,16 +18,14 @@ Feature: In an assignment, teachers grade multiple students on one page
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
When I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -35,8 +33,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And I press "Save changes"
And I log out
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
@ -64,7 +61,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And the following config values are set as admin:
| enableoutcomes | 1 |
When I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to "Outcomes" node in "Course administration"
And I follow "Edit outcomes"
And I press "Add a new outcome"
@ -73,7 +70,7 @@ Feature: In an assignment, teachers grade multiple students on one page
| Name | 1337dom scale |
| Scale | Noob, Nub, 1337, HaXor |
And I press "Save changes"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to "Outcomes" node in "Course administration"
And I follow "Edit outcomes"
And I press "Add a new outcome"
@ -82,8 +79,7 @@ Feature: In an assignment, teachers grade multiple students on one page
| Short name | skillZ! |
| Scale | 1337dom scale |
And I press "Save changes"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -92,7 +88,7 @@ Feature: In an assignment, teachers grade multiple students on one page
| M8d skillZ! | 1 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -100,7 +96,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And I press "Save changes"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
And I set the following fields to these values:
@ -108,7 +104,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
@ -128,7 +124,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And I press "Continue"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "I'm the teacher first feedback"
And I should see "60.0"
@ -137,7 +133,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And I should see "1337"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should not see "I'm the teacher first feedback"
And I should not see "60.0"
@ -146,7 +142,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And I should not see "1337"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Hide User picture" "link"
@ -167,7 +163,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And I press "Continue"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should see "I'm the teacher first feedback"
And I should see "60.0"
@ -176,7 +172,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And I should see "1337"
And I log out
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should not see "I'm the teacher first feedback"
And I should not see "60.0"

View file

@ -20,8 +20,7 @@ Feature: Submissions are unlocked when a new attempt is given
@javascript
Scenario: A locked submission should unlock when a new attempt is automatically given.
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -30,7 +29,7 @@ Feature: Submissions are unlocked when a new attempt is given
| Grade to pass | 50 |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -38,7 +37,7 @@ Feature: Submissions are unlocked when a new attempt is given
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
@ -55,8 +54,7 @@ Feature: Submissions are unlocked when a new attempt is given
@javascript
Scenario: A locked submission should unlock when a new attempt is manually given.
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -64,7 +62,7 @@ Feature: Submissions are unlocked when a new attempt is given
| Attempts reopened | Manually |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I press "Add submission"
And I set the following fields to these values:
@ -72,7 +70,7 @@ Feature: Submissions are unlocked when a new attempt is given
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"

View file

@ -20,8 +20,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
| name | course | idnumber |
| Group 1 | C1 | G1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |

View file

@ -19,8 +19,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
| student1 | C1 | student |
# Add the assignment.
And I log in as "teacher1"
And I am on course page "Course 1"
And I turn editing mode on
And I am on "Course 1" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Test assignment description |
@ -31,7 +30,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I log out
# Add a submission.
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
When I follow "Test assignment name"
Then I should not see "Feedback"
And I should see "Not marked" in the "Grading status" "table_row"
@ -42,7 +41,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I log out
# Mark the submission.
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I should see "Not marked" in the "I'm the student's first submission" "table_row"
@ -81,7 +80,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I press "Continue"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then I should see "50"
And I should see "Great job! Lol, not really."
@ -109,7 +108,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I should see "Released" in the "Student 1" "table_row"
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then I should see "50"
And I should see "Great job! Lol, not really."

View file

@ -22,7 +22,7 @@ Feature: In an assignment, students can comment in their submissions
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 1 |
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
When I press "Add submission"
And I set the following fields to these values:
@ -50,7 +50,7 @@ Feature: In an assignment, students can comment in their submissions
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignmentsubmission_file_enabled | assignfeedback_comments_enabled |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
@ -70,7 +70,7 @@ Feature: In an assignment, students can comment in their submissions
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignmentsubmission_file_enabled | assignfeedback_comments_enabled |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1 |
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"

View file

@ -45,7 +45,7 @@ Feature: Submit assignment without group
| student3 | GC32 |
# Student 1 can only submit assignment in course 2.
When I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Allow default group"
Then I should not see "Not a member of any group"
And I should not see "This assignment requires submission in groups. You are not a member of any group"
@ -57,14 +57,13 @@ Feature: Submit assignment without group
And I press "Submit assignment"
And I press "Continue"
And I should see "Submitted for grading"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Require group membership"
And I should see "Not a member of any group"
And I should see "This assignment requires submission in groups. You are not a member of any group"
And I should see "Nothing has been submitted for this assignment"
And I should not see "Add submission"
And I am on homepage
And I am on course page "Course 2"
And I am on "Course 2" course homepage
And I follow "Require group membership"
And I should not see "Not a member of any group"
And I should see "Nothing has been submitted for this assignment"
@ -78,17 +77,16 @@ Feature: Submit assignment without group
And I log out
# Student 2 should see submitted for grading.
And I log in as "student2"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Allow default group"
And I should see "Submitted for grading"
And I am on homepage
And I am on course page "Course 2"
And I am on "Course 2" course homepage
And I follow "Require group membership"
And I should see "Submitted for grading"
And I log out
# Teacher should see student 1 and student 2 has submitted assignment.
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
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."
@ -97,8 +95,7 @@ Feature: Submit assignment without group
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"
And I should see "Submitted for grading" in the "Student 2" "table_row"
And I am on homepage
And I am on course page "Course 1"
And I am on "Course 1" course homepage
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."
@ -107,8 +104,7 @@ Feature: Submit assignment without group
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"
And I should not see "Submitted for grading" in the "Student 2" "table_row"
And I am on homepage
And I am on course page "Course 2"
And I am on "Course 2" course homepage
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."
@ -120,7 +116,7 @@ Feature: Submit assignment without group
And I log out
# Test student 3 (in multiple groups) should not be able to submit.
And I log in as "student3"
And I am on course page "Course 3"
And I am on "Course 3" course homepage
And I follow "Require group membership"
And I should see "Member of more than one group"
And I should see "The assignment requires submission in groups. You are a member of more than one group."
@ -128,7 +124,7 @@ Feature: Submit assignment without group
And I should not see "Add submission"
And I log out
And I log in as "teacher1"
And I am on course page "Course 3"
And I am on "Course 3" course homepage
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 navigate to "View all submissions" in current page administration