mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +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
|
@ -18,9 +18,7 @@ Feature: Allow students to manually mark an activity as complete
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
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 navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
|
@ -31,13 +29,11 @@ Feature: Allow students to manually mark an activity as complete
|
|||
And "Student First" user has not completed "Test forum name" activity
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I click on "Not completed: Test forum name. Select to mark as complete." "icon"
|
||||
Then the "Test forum name" "forum" activity with "manual" completion should be marked as complete
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
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 "Reports > Activity completion" in current page administration
|
||||
And "Student First" user has completed "Test forum name" activity
|
||||
|
|
|
@ -17,9 +17,7 @@ Feature: Restrict activity availability through date conditions
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
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
|
||||
# Adding the page like this because id_available*_enabled needs to be clicked to trigger the action.
|
||||
And I add a "Assignment" to section "1"
|
||||
And I expand all fieldsets
|
||||
|
@ -39,8 +37,7 @@ Feature: Restrict activity availability through date conditions
|
|||
And I press "Save and return to course"
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "Available from 31 December 2037"
|
||||
And "Test assignment 1" activity should be dimmed
|
||||
And "Test assignment 1" "link" should not exist
|
||||
|
@ -64,6 +61,5 @@ Feature: Restrict activity availability through date conditions
|
|||
And I press "Save and return to course"
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should not see "Test assignment 2"
|
||||
|
|
|
@ -18,9 +18,7 @@ Feature: Restrict activity availability through grade conditions
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
#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 | Grade assignment |
|
||||
| Description | Grade this assignment to revoke restriction on restricted assignment |
|
||||
|
@ -41,8 +39,7 @@ Feature: Restrict activity availability through grade conditions
|
|||
And I press "Save and return to course"
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "Not available unless: You achieve a required score in Grade assignment"
|
||||
And "Test page name" activity should be dimmed
|
||||
And "Test page name" "link" should not exist
|
||||
|
@ -54,8 +51,7 @@ Feature: Restrict activity availability through grade conditions
|
|||
And I should see "Submitted for grading"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
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 "Grade assignment"
|
||||
And I navigate to "View all submissions" in current page administration
|
||||
And I click on "Grade" "link" in the "Student First" "table_row"
|
||||
|
@ -66,7 +62,6 @@ Feature: Restrict activity availability through grade conditions
|
|||
And I follow "Edit settings"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Test page name" activity should be visible
|
||||
And I should not see "Not available unless: You achieve a required score in Grade assignment"
|
||||
|
|
|
@ -20,9 +20,7 @@ Feature: Restrict sections availability through completion or grade conditions
|
|||
@javascript
|
||||
Scenario: Show section greyed-out to student when completion condition is not satisfied
|
||||
Given I log in as "teacher1"
|
||||
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 navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
|
@ -44,8 +42,7 @@ Feature: Restrict sections availability through completion or grade conditions
|
|||
And I press "Save changes"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "Not available unless: The activity Test label is marked complete"
|
||||
And I should not see "Test page name"
|
||||
And I click on "Not completed: Test label. Select to mark as complete." "icon"
|
||||
|
@ -55,9 +52,7 @@ Feature: Restrict sections availability through completion or grade conditions
|
|||
@javascript
|
||||
Scenario: Show section greyed-out to student when grade condition is not satisfied
|
||||
Given I log in as "teacher1"
|
||||
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 | Grade assignment |
|
||||
| Description | Grade this assignment to revoke restriction on restricted assignment |
|
||||
|
@ -78,8 +73,7 @@ Feature: Restrict sections availability through completion or grade conditions
|
|||
And I press "Save changes"
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "Not available unless: You achieve a required score in Grade assignment"
|
||||
And "Test page name" activity should be hidden
|
||||
And I follow "Grade assignment"
|
||||
|
@ -90,8 +84,7 @@ Feature: Restrict sections availability through completion or grade conditions
|
|||
And I should see "Submitted for grading"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
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 "Grade assignment"
|
||||
And I navigate to "View all submissions" in current page administration
|
||||
And I click on "Grade" "link" in the "Student First" "table_row"
|
||||
|
@ -102,7 +95,6 @@ Feature: Restrict sections availability through completion or grade conditions
|
|||
And I follow "Edit settings"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Test page name" activity should be visible
|
||||
And I should not see "Not available unless: You achieve a required score in Grade assignment"
|
||||
|
|
|
@ -17,7 +17,7 @@ Feature: Allow teachers to manually mark users as complete when configured
|
|||
| student1 | CC1 | student |
|
||||
| teacher1 | CC1 | editingteacher |
|
||||
And I log in as "admin"
|
||||
And I am on course page "Completion course"
|
||||
And I am on "Completion course" course homepage
|
||||
And completion tracking is "Enabled" in current course
|
||||
And I follow "Course completion"
|
||||
And I set the field "Teacher" to "1"
|
||||
|
@ -26,11 +26,11 @@ Feature: Allow teachers to manually mark users as complete when configured
|
|||
And I add the "Course completion status" block
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Completion course"
|
||||
And I am on "Completion course" course homepage
|
||||
And I should see "Status: Not yet started"
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Completion course"
|
||||
And I am on "Completion course" course homepage
|
||||
And I follow "View course report"
|
||||
And I should see "Student First"
|
||||
And I follow "Click to mark user complete"
|
||||
|
@ -41,5 +41,5 @@ Feature: Allow teachers to manually mark users as complete when configured
|
|||
And I am on site homepage
|
||||
And I log out
|
||||
Then I log in as "student1"
|
||||
And I am on course page "Completion course"
|
||||
And I am on "Completion course" course homepage
|
||||
And I should see "Status: Complete"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue