mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
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:
parent
3353cfd8c1
commit
fdeeaff954
458 changed files with 1697 additions and 2148 deletions
|
@ -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"
|
||||
|
|
|
@ -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..."
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue