Skip to content

Commit e871b6f

Browse files
committed
Merge branch 'MDL-83551-404' of https://github.com/lameze/moodle into MOODLE_404_STABLE
2 parents d032d75 + 89e18f1 commit e871b6f

20 files changed

+45
-45
lines changed

mod/assign/tests/behat/assign_activity_completion.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Feature: View activity completion in the assignment activity
8181
And I toggle the manual completion state of "Music history"
8282
And the manual completion button of "Music history" is displayed as "Done"
8383

84-
Scenario: View automatic completion items as a teacher
84+
Scenario: Verify that the assignment completion conditions are displayed to teachers
8585
Given I am on the "Music history" "assign activity editing" page logged in as teacher1
8686
And I expand all fieldsets
8787
And I set the following fields to these values:
@@ -95,7 +95,7 @@ Feature: View activity completion in the assignment activity
9595
And "Music history" should have the "Receive a grade" completion condition
9696

9797
@javascript
98-
Scenario: View automatic completion items as a student
98+
Scenario: Verify that students can complete an assignment activity by achieving a passing grade
9999
Given I am on the "Music history" "assign activity editing" page logged in as teacher1
100100
And I expand all fieldsets
101101
And I set the following fields to these values:

mod/data/tests/behat/data_activity_completion.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Feature: View activity completion in the database activity
4747
And I press "Save and display"
4848
And I log out
4949

50-
Scenario: View automatic completion items as a teacher
50+
Scenario: Database activity displays completion conditions to teachers
5151
# We add an entry to let the user change to a different view.
5252
Given the following "mod_data > entries" exist:
5353
| database | user | Instrument types |
@@ -61,7 +61,7 @@ Feature: View activity completion in the database activity
6161
And "Music history" should have the "Make entries: 2" completion condition
6262
And "Music history" should have the "Receive a grade" completion condition
6363

64-
Scenario: View automatic completion items as a student
64+
Scenario: A student can complete an database activity by achieving a passing grade
6565
Given I am on the "Music history" "data activity" page logged in as student1
6666
And the "View" completion condition of "Music history" is displayed as "done"
6767
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"

mod/data/tests/behat/data_activity_completion_pass_grade.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Feature: Completion pass grade
4646
And I log out
4747

4848
@javascript
49-
Scenario: View automatic completion items as a teacher
49+
Scenario: Database module completion conditions are displayed regardless of the view
5050
# We add an entry to let the user change to a different view.
5151
Given the following "mod_data > entries" exist:
5252
| database | user | Instrument types |
@@ -63,7 +63,7 @@ Feature: Completion pass grade
6363
And "Music history" should have the "Receive a passing grade" completion condition
6464

6565
@javascript
66-
Scenario: View automatic completion items as a failing student
66+
Scenario: Student cannot complete a database activity if one of the conditions are not met
6767
Given I am on the "Music history" "data activity" page logged in as student1
6868
And the "View" completion condition of "Music history" is displayed as "done"
6969
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"
@@ -102,7 +102,7 @@ Feature: Completion pass grade
102102
And "Vinnie Student1" user has completed "Music history" activity
103103

104104
@javascript
105-
Scenario: View automatic completion items as a passing student
105+
Scenario: Student can complete a database activity when all conditions are met
106106
Given I am on the "Music history" "data activity" page logged in as student1
107107
And the "View" completion condition of "Music history" is displayed as "done"
108108
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"

mod/feedback/tests/behat/feedback_activity_completion.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ Feature: View activity completion in the feedback activity
3434
| Multiple choice values | drums\guitar\hurdygurdy |
3535
And I log out
3636

37-
Scenario: View automatic completion items as a teacher
37+
Scenario: Feedback module displays completion conditions to teachers
3838
When I am on the "Music history" "feedback activity" page logged in as teacher1
3939
Then "Music history" should have the "View" completion condition
4040
And "Music history" should have the "Submit feedback" completion condition
4141

42-
Scenario: View automatic completion items as a student
42+
Scenario: Student can complete a feedback activity when all conditions are met
4343
Given I am on the "Music history" "feedback activity" page logged in as student1
4444
And the "View" completion condition of "Music history" is displayed as "todo"
4545
And the "Submit feedback" completion condition of "Music history" is displayed as "todo"

mod/folder/tests/behat/folder_activity_completion.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Feature: View activity completion information in the folder activity
1919
| teacher1 | C1 | editingteacher |
2020
| student1 | C2 | student |
2121

22-
Scenario: View automatic completion items
22+
Scenario: A folder is automatically completed when a student views it
2323
Given the following "activity" exists:
2424
| activity | folder |
2525
| course | C1 |

mod/forum/tests/behat/forum_activity_completion.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Feature: View activity completion in the forum activity
3939
And I press "Save and display"
4040

4141
@javascript
42-
Scenario: View automatic completion items as a teacher
42+
Scenario: Forum module displays automatic completion conditions to teachers
4343
When I am on the "Music history" "forum activity" page logged in as teacher1
4444
Then "Music history" should have the "View" completion condition
4545
And "Music history" should have the "Start discussions: 1" completion condition
@@ -48,7 +48,7 @@ Feature: View activity completion in the forum activity
4848
And "Music history" should have the "Receive a grade" completion condition
4949

5050
@javascript
51-
Scenario: View automatic completion items as a student
51+
Scenario: A student can complete a forum activity by meeting the completion conditions
5252
Given I am on the "Music history" "forum activity" page logged in as student1
5353
And the "View" completion condition of "Music history" is displayed as "done"
5454
And the "Start discussions: 1" completion condition of "Music history" is displayed as "todo"

mod/forum/tests/behat/forum_activity_completion_pass_grade.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Feature: Completion pass grade view activity completion in the forum activity
3939
| completionreplies | 1 |
4040
And I press "Save and display"
4141

42-
Scenario: View automatic completion items as a teacher
42+
Scenario: Forum module displays completion conditions to teachers
4343
Given I am on the "Music history" "forum activity" page logged in as teacher1
4444
Then "Music history" should have the "View" completion condition
4545
And "Music history" should have the "Start discussions: 1" completion condition
@@ -49,7 +49,7 @@ Feature: Completion pass grade view activity completion in the forum activity
4949
And "Music history" should have the "Receive a passing grade" completion condition
5050

5151
@javascript
52-
Scenario: View automatic completion items as a failing student
52+
Scenario: Student cannot complete a forum activity if one of the conditions are not met
5353
Given I am on the "Music history" "forum activity" page logged in as student1
5454
And the "View" completion condition of "Music history" is displayed as "done"
5555
And the "Start discussions: 1" completion condition of "Music history" is displayed as "todo"
@@ -93,7 +93,7 @@ Feature: Completion pass grade view activity completion in the forum activity
9393
And the "Receive a passing grade" completion condition of "Music history" is displayed as "failed"
9494

9595
@javascript
96-
Scenario: View automatic completion items as a passing student
96+
Scenario: Student can complete a forum activity when all conditions are met
9797
Given I am on the "Music history" "forum activity" page logged in as student1
9898
And the "View" completion condition of "Music history" is displayed as "done"
9999
And the "Start discussions: 1" completion condition of "Music history" is displayed as "todo"

mod/glossary/tests/behat/glossary_activity_completion.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ Feature: View activity completion in the glossary activity
3636
And I press "Save and display"
3737
And I log out
3838

39-
Scenario: View automatic completion items as a teacher
39+
Scenario: View glossary automatic completion conditions as a teacher
4040
Given I am on the "Music history" "glossary activity" page logged in as teacher1
4141
Then "Music history" should have the "View" completion condition
4242
And "Music history" should have the "Make entries: 1" completion condition
4343
And "Music history" should have the "Receive a grade" completion condition
4444

45-
Scenario: View automatic completion items as a student
45+
Scenario: A student completes a glossary
4646
Given I am on the "Music history" "glossary activity" page logged in as student1
4747
And the "View" completion condition of "Music history" is displayed as "done"
4848
And the "Make entries: 1" completion condition of "Music history" is displayed as "todo"

mod/glossary/tests/behat/glossary_activity_completion_pass_grade.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Feature: Pass grade completion in the glossary activity
3838
And I press "Save and display"
3939
And I log out
4040

41-
Scenario: View automatic completion items as a teacher
41+
Scenario: A teacher can view a glossary activity completion conditions
4242
Given I log in as "teacher1"
4343
And I am on "Course 1" course homepage
4444
When I follow "Music history"
@@ -47,7 +47,7 @@ Feature: Pass grade completion in the glossary activity
4747
And "Music history" should have the "Receive a grade" completion condition
4848
And "Music history" should have the "Receive a passing grade" completion condition
4949

50-
Scenario: View automatic completion items as a failing student
50+
Scenario: A student will not complete a glossary activity if the conditions are not met
5151
Given I am on the "Music history" "glossary activity" page logged in as student1
5252
And the "View" completion condition of "Music history" is displayed as "done"
5353
And the "Make entries: 1" completion condition of "Music history" is displayed as "todo"
@@ -75,7 +75,7 @@ Feature: Pass grade completion in the glossary activity
7575
And the "Receive a grade" completion condition of "Music history" is displayed as "done"
7676
And the "Receive a passing grade" completion condition of "Music history" is displayed as "failed"
7777

78-
Scenario: View automatic completion items as a passing student
78+
Scenario: A student can complete a glossary activity by meeting the completion conditions
7979
Given I am on the "Music history" "glossary activity" page logged in as student1
8080
And the "View" completion condition of "Music history" is displayed as "done"
8181
And the "Make entries: 1" completion condition of "Music history" is displayed as "todo"

mod/imscp/tests/behat/imscp_activity_completion.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Feature: View activity completion information in the IMS content package activit
1717
| student1 | C1 | student |
1818
| teacher1 | C1 | editingteacher |
1919

20-
Scenario: View automatic completion items
20+
Scenario: A student can complete a IMSCP activity by viewing it
2121
Given the following "activities" exist:
2222
| activity | course | name | completion | completionview | packagefilepath |
2323
| imscp | C1 | Music history | 2 | 1 | mod/imscp/tests/pacakges/singescobbasic.zip |

0 commit comments

Comments
 (0)