MDL-83551 behat: make duplicated scenario names unique

This commit is contained in:
Simey Lameze 2024-11-06 07:45:02 +08:00
parent 2b337b49f9
commit 9a3abb9148
20 changed files with 45 additions and 45 deletions

View File

@ -81,7 +81,7 @@ Feature: View activity completion in the assignment activity
And I toggle the manual completion state of "Music history"
And the manual completion button of "Music history" is displayed as "Done"
Scenario: View automatic completion items as a teacher
Scenario: Verify that the assignment completion conditions are displayed to teachers
Given I am on the "Music history" "assign activity editing" page logged in as teacher1
And I expand all fieldsets
And I set the following fields to these values:
@ -95,7 +95,7 @@ Feature: View activity completion in the assignment activity
And "Music history" should have the "Receive a grade" completion condition
@javascript
Scenario: View automatic completion items as a student
Scenario: Verify that students can complete an assignment activity by achieving a passing grade
Given I am on the "Music history" "assign activity editing" page logged in as teacher1
And I expand all fieldsets
And I set the following fields to these values:

View File

@ -47,7 +47,7 @@ Feature: View activity completion in the database activity
And I press "Save and display"
And I log out
Scenario: View automatic completion items as a teacher
Scenario: Database activity displays completion conditions to teachers
# We add an entry to let the user change to a different view.
Given the following "mod_data > entries" exist:
| database | user | Instrument types |
@ -61,7 +61,7 @@ Feature: View activity completion in the database activity
And "Music history" should have the "Make entries: 2" completion condition
And "Music history" should have the "Receive a grade" completion condition
Scenario: View automatic completion items as a student
Scenario: A student can complete an database activity by achieving a passing grade
Given I am on the "Music history" "data activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"

View File

@ -46,7 +46,7 @@ Feature: Completion pass grade
And I log out
@javascript
Scenario: View automatic completion items as a teacher
Scenario: Database module completion conditions are displayed regardless of the view
# We add an entry to let the user change to a different view.
Given the following "mod_data > entries" exist:
| database | user | Instrument types |
@ -63,7 +63,7 @@ Feature: Completion pass grade
And "Music history" should have the "Receive a passing grade" completion condition
@javascript
Scenario: View automatic completion items as a failing student
Scenario: Student cannot complete a database activity if one of the conditions are not met
Given I am on the "Music history" "data activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"
@ -102,7 +102,7 @@ Feature: Completion pass grade
And "Vinnie Student1" user has completed "Music history" activity
@javascript
Scenario: View automatic completion items as a passing student
Scenario: Student can complete a database activity when all conditions are met
Given I am on the "Music history" "data activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"

View File

@ -34,12 +34,12 @@ Feature: View activity completion in the feedback activity
| Multiple choice values | drums\guitar\hurdygurdy |
And I log out
Scenario: View automatic completion items as a teacher
Scenario: Feedback module displays completion conditions to teachers
When I am on the "Music history" "feedback activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
And "Music history" should have the "Submit feedback" completion condition
Scenario: View automatic completion items as a student
Scenario: Student can complete a feedback activity when all conditions are met
Given I am on the "Music history" "feedback activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "todo"
And the "Submit feedback" completion condition of "Music history" is displayed as "todo"

View File

@ -19,7 +19,7 @@ Feature: View activity completion information in the folder activity
| teacher1 | C1 | editingteacher |
| student1 | C2 | student |
Scenario: View automatic completion items
Scenario: A folder is automatically completed when a student views it
Given the following "activity" exists:
| activity | folder |
| course | C1 |

View File

@ -39,7 +39,7 @@ Feature: View activity completion in the forum activity
And I press "Save and display"
@javascript
Scenario: View automatic completion items as a teacher
Scenario: Forum module displays automatic completion conditions to teachers
When I am on the "Music history" "forum activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
And "Music history" should have the "Start discussions: 1" completion condition
@ -48,7 +48,7 @@ Feature: View activity completion in the forum activity
And "Music history" should have the "Receive a grade" completion condition
@javascript
Scenario: View automatic completion items as a student
Scenario: A student can complete a forum activity by meeting the completion conditions
Given I am on the "Music history" "forum activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Start discussions: 1" completion condition of "Music history" is displayed as "todo"

View File

@ -39,7 +39,7 @@ Feature: Completion pass grade view activity completion in the forum activity
| completionreplies | 1 |
And I press "Save and display"
Scenario: View automatic completion items as a teacher
Scenario: Forum module displays completion conditions to teachers
Given I am on the "Music history" "forum activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
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
And "Music history" should have the "Receive a passing grade" completion condition
@javascript
Scenario: View automatic completion items as a failing student
Scenario: Student cannot complete a forum activity if one of the conditions are not met
Given I am on the "Music history" "forum activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
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
And the "Receive a passing grade" completion condition of "Music history" is displayed as "failed"
@javascript
Scenario: View automatic completion items as a passing student
Scenario: Student can complete a forum activity when all conditions are met
Given I am on the "Music history" "forum activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Start discussions: 1" completion condition of "Music history" is displayed as "todo"

View File

@ -36,13 +36,13 @@ Feature: View activity completion in the glossary activity
And I press "Save and display"
And I log out
Scenario: View automatic completion items as a teacher
Scenario: View glossary automatic completion conditions as a teacher
Given I am on the "Music history" "glossary activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
And "Music history" should have the "Make entries: 1" completion condition
And "Music history" should have the "Receive a grade" completion condition
Scenario: View automatic completion items as a student
Scenario: A student completes a glossary
Given I am on the "Music history" "glossary activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Make entries: 1" completion condition of "Music history" is displayed as "todo"

View File

@ -38,7 +38,7 @@ Feature: Pass grade completion in the glossary activity
And I press "Save and display"
And I log out
Scenario: View automatic completion items as a teacher
Scenario: A teacher can view a glossary activity completion conditions
Given I log in as "teacher1"
And I am on "Course 1" course homepage
When I follow "Music history"
@ -47,7 +47,7 @@ Feature: Pass grade completion in the glossary activity
And "Music history" should have the "Receive a grade" completion condition
And "Music history" should have the "Receive a passing grade" completion condition
Scenario: View automatic completion items as a failing student
Scenario: A student will not complete a glossary activity if the conditions are not met
Given I am on the "Music history" "glossary activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
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
And the "Receive a grade" completion condition of "Music history" is displayed as "done"
And the "Receive a passing grade" completion condition of "Music history" is displayed as "failed"
Scenario: View automatic completion items as a passing student
Scenario: A student can complete a glossary activity by meeting the completion conditions
Given I am on the "Music history" "glossary activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Make entries: 1" completion condition of "Music history" is displayed as "todo"

View File

@ -17,7 +17,7 @@ Feature: View activity completion information in the IMS content package activit
| student1 | C1 | student |
| teacher1 | C1 | editingteacher |
Scenario: View automatic completion items
Scenario: A student can complete a IMSCP activity by viewing it
Given the following "activities" exist:
| activity | course | name | completion | completionview | packagefilepath |
| imscp | C1 | Music history | 2 | 1 | mod/imscp/tests/pacakges/singescobbasic.zip |

View File

@ -37,14 +37,14 @@ Feature: View activity completion in the lesson activity
| Music history part 1 | The history of music part 1 | Next page | 0 |
| Music essay | | Next page | 1 |
Scenario: View automatic completion items as a teacher
Scenario: A teacher can view a lesson activity automatic completion conditions
When I am on the "Music history" "lesson activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
And "Music history" should have the "Spend at least 3 secs on this activity" completion condition
And "Music history" should have the "Go through the activity to the end" completion condition
And "Music history" should have the "Receive a grade" completion condition
Scenario: View automatic completion items as a student
Scenario: A student can complete a lesson activity by meeting the completion conditions
Given I am on the "Music history" "lesson activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Spend at least 3 secs on this activity" completion condition of "Music history" is displayed as "todo"

View File

@ -34,12 +34,12 @@ Feature: Pass grade activity completion in the lesson activity
| Numerical question | 3 | End of lesson | 1 |
| Numerical question | @#wronganswer#@ | Next page | 0 |
Scenario: View automatic completion items as a teacher
Scenario: Lesson activity displays completion conditions to teachers
When I am on the "Music history" "lesson activity" page logged in as teacher1
And "Music history" should have the "Receive a grade" completion condition
And "Music history" should have the "Receive a passing grade" completion condition
Scenario: View automatic completion items as a student
Scenario: A student can complete an lesson activity by achieving a passing grade
Given I am on the "Music history" "lesson activity" page logged in as student1
And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
And the "Receive a passing grade" completion condition of "Music history" is displayed as "todo"

View File

@ -21,14 +21,14 @@ Feature: Pass grade activity completion information in the LTI activity
| activity | name | course | gradepass | completion | completionview | completionusegrade | completionpassgrade |
| lti | Music history | C1 | 50 | 2 | 1 | 1 | 1 |
Scenario: View automatic completion items as a teacher
Scenario: Verify that the LTI completion conditions are displayed to teachers
Given I am on the "Music history" "lti activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
And "Music history" should have the "Receive a grade" completion condition
And "Music history" should have the "Receive a passing grade" completion condition
@javascript
Scenario: View automatic completion items as a student
Scenario: Verify that students can complete an LTI activity by achieving a passing grade
Given I am on the "Music history" "lti activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Receive a grade" completion condition of "Music history" is displayed as "todo"

View File

@ -18,7 +18,7 @@ Feature: View activity completion information in the Page resource
| student1 | C1 | student |
| teacher1 | C1 | editingteacher |
Scenario: View automatic completion items as teacher
Scenario: A teacher can view a page resource automatic completion items
Given the following "activity" exists:
| activity | page |
| course | C1 |
@ -30,7 +30,7 @@ Feature: View activity completion information in the Page resource
When I am on the "Music history" "page activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
Scenario: View automatic completion items as student
Scenario: A student can complete a page resource by viewing it
Given the following "activity" exists:
| activity | page |
| course | C1 |

View File

@ -41,7 +41,7 @@ Feature: View activity completion in the quiz activity
| question | page |
| First question | 1 |
Scenario Outline: View automatic completion items as a student
Scenario Outline: A student can complete a quiz activity by achieving a passing grade
When I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test quiz name"

View File

@ -68,7 +68,7 @@ Feature: View activity completion information for file resources
And the manual completion button of "Myfile" is displayed as "Done"
@javascript
Scenario: View automatic completion items
Scenario: A student can complete a resource activity by viewing it
Given the following "activities" exist:
| activity | course | name | display | defaultfilename | uploaded |
| resource | C1 | Myfile | 1 | mod/resource/tests/fixtures/samplefile.txt | 1 |

View File

@ -33,7 +33,7 @@ Feature: View activity completion in the SCORM activity
| completionusegrade | 1 |
@javascript
Scenario: View automatic completion items as a teacher
Scenario: A teacher can view a SCORM activity automatic completion conditions
Given I am on the "Music history" "scorm activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
And "Music history" should have the "Receive a score of 3 or more" completion condition
@ -51,7 +51,7 @@ Feature: View activity completion in the SCORM activity
And I should not see "Passing grade"
@javascript
Scenario: View automatic completion items as a student
Scenario: A student can complete a SCORM activity by achieving a passing grade
Given I am on the "Music history" "scorm activity" page logged in as student1
# We need a little taller window because Firefox is, apparently, unable to auto-scroll within
# an iframe, so we need to ensure that the "Save changes" button is visible in the viewport.

View File

@ -19,7 +19,7 @@ Feature: View activity completion information in the URL resource
And the following config values are set as admin:
| displayoptions | 0,1,2,3,4,5,6 | url |
Scenario: View automatic completion items in automatic display mode as teacher
Scenario: URL resource module displays completion conditions to teachers
Given the following "activity" exists:
| activity | url |
| course | C1 |
@ -35,7 +35,7 @@ Feature: View activity completion information in the URL resource
And I should see "Click on Music history to open the resource."
And "Music history" should have the "View" completion condition
Scenario: View automatic completion items in automatic display mode as student
Scenario: A student can complete a URL activity by viewing it
Given the following "activity" exists:
| activity | url |
| course | C1 |
@ -49,7 +49,7 @@ Feature: View activity completion information in the URL resource
When I am on the "Music history" "url activity" page logged in as student1
Then the "View" completion condition of "Music history" is displayed as "done"
Scenario: View automatic completion items in embed display mode as teacher
Scenario: A teacher can view a URL activity completion conditions in embed display mode
Given the following "activity" exists:
| activity | url |
| course | C1 |
@ -63,7 +63,7 @@ Feature: View activity completion information in the URL resource
When I am on the "Music history" "url activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
Scenario: View automatic completion items in embed display mode as student
Scenario: A student can complete a url resource by viewing it in embed display mode
Given the following "activity" exists:
| activity | url |
| course | C1 |
@ -78,7 +78,7 @@ Feature: View activity completion information in the URL resource
Then the "View" completion condition of "Music history" is displayed as "done"
@javascript
Scenario: View automatic completion items in open display mode as teacher
Scenario: A teacher can view url resource automatic completion items in open display mode as teacher
Given the following "activity" exists:
| activity | url |
| course | C1 |
@ -94,7 +94,7 @@ Feature: View activity completion information in the URL resource
Then "Music history" should have the "View" completion condition
@javascript
Scenario: View automatic completion items in open display mode as student
Scenario: A student can view url resource automatic completion items in open display mode
Given the following "activity" exists:
| activity | url |
| course | C1 |
@ -109,7 +109,7 @@ Feature: View activity completion information in the URL resource
And I am on the "Course 1" course page
Then the "View" completion condition of "Music history" is displayed as "done"
Scenario: View automatic completion items in pop-up display mode as teacher
Scenario: An URL resource shows automatic completion conditions in pop-up display mode as teacher
Given the following "activity" exists:
| activity | url |
| course | C1 |
@ -125,7 +125,7 @@ Feature: View activity completion information in the URL resource
When I am on the "Music history" "url activity" page logged in as student1
Then "Music history" should have the "View" completion condition
Scenario: View automatic completion items in pop-up display mode as student
Scenario: View url resource automatic completion conditions in pop-up display mode as student
Given the following "activity" exists:
| activity | url |
| course | C1 |

View File

@ -26,7 +26,7 @@ Feature: View activity completion information in the Wiki activity
And I am on the "Music history" "wiki activity" page logged in as teacher1
And I click on "Create page" "button"
Scenario: View automatic completion items as a teacher and confirm all tabs display conditions
Scenario: View automatic wiki completion conditions as a teacher and confirm all tabs display conditions
When I am on the "Music history" "wiki activity" page logged in as teacher1
Then "Music history" should have the "View" completion condition
And I select "Edit" from the "jump" singleselect
@ -40,7 +40,7 @@ Feature: View activity completion information in the Wiki activity
And I select "Administration" from the "jump" singleselect
And "Music history" should have the "View" completion condition
Scenario: View automatic completion items as a student
Scenario: A students can complete a wiki activity by viewing it
When I am on the "Music history" "wiki activity" page logged in as student1
Then the "View" completion condition of "Music history" is displayed as "done"

View File

@ -30,12 +30,12 @@ Feature: View activity completion information in the Workshop activity
| id_description__idx_0_editor | Aspect1 |
And I change phase in workshop "Music history" to "Submission phase"
Scenario: View automatic completion items as a teacher
Scenario: The workshop module displays automatic completion conditions to teachers
Given I am on the "Music history" "workshop activity" page
Then "Music history" should have the "Receive a grade" completion condition
And "Music history" should have the "View" completion condition
Scenario: View automatic completion items as a student
Scenario: Students can complete a workshop activity by achieving a passing grade
Given I am on the "Music history" "workshop activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done"
And the "Receive a grade" completion condition of "Music history" is displayed as "todo"