From 9a3abb91485ad4d2259f951985bc294de1bc9c72 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Wed, 6 Nov 2024 07:45:02 +0800 Subject: [PATCH] MDL-83551 behat: make duplicated scenario names unique --- .../behat/assign_activity_completion.feature | 4 ++-- .../tests/behat/data_activity_completion.feature | 4 ++-- .../data_activity_completion_pass_grade.feature | 6 +++--- .../behat/feedback_activity_completion.feature | 4 ++-- .../behat/folder_activity_completion.feature | 2 +- .../behat/forum_activity_completion.feature | 4 ++-- .../forum_activity_completion_pass_grade.feature | 6 +++--- .../behat/glossary_activity_completion.feature | 4 ++-- ...ossary_activity_completion_pass_grade.feature | 6 +++--- .../behat/imscp_activity_completion.feature | 2 +- .../behat/lesson_activity_completion.feature | 4 ++-- .../behat/lesson_completion_pass_grade.feature | 4 ++-- .../behat/lti_completion_pass_grade.feature | 4 ++-- .../tests/behat/page_activity_completion.feature | 4 ++-- .../tests/behat/quiz_activity_completion.feature | 2 +- .../behat/resource_activity_completion.feature | 2 +- .../behat/scorm_activity_completion.feature | 4 ++-- .../tests/behat/url_activity_completion.feature | 16 ++++++++-------- .../tests/behat/wiki_activity_completion.feature | 4 ++-- .../behat/workshop_activity_completion.feature | 4 ++-- 20 files changed, 45 insertions(+), 45 deletions(-) diff --git a/mod/assign/tests/behat/assign_activity_completion.feature b/mod/assign/tests/behat/assign_activity_completion.feature index c583189796c94..2f3a674e0b509 100644 --- a/mod/assign/tests/behat/assign_activity_completion.feature +++ b/mod/assign/tests/behat/assign_activity_completion.feature @@ -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: diff --git a/mod/data/tests/behat/data_activity_completion.feature b/mod/data/tests/behat/data_activity_completion.feature index cf96a6fd24a73..c975b3f76bb12 100644 --- a/mod/data/tests/behat/data_activity_completion.feature +++ b/mod/data/tests/behat/data_activity_completion.feature @@ -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" diff --git a/mod/data/tests/behat/data_activity_completion_pass_grade.feature b/mod/data/tests/behat/data_activity_completion_pass_grade.feature index 1d61ca495a218..816799bb03956 100644 --- a/mod/data/tests/behat/data_activity_completion_pass_grade.feature +++ b/mod/data/tests/behat/data_activity_completion_pass_grade.feature @@ -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" diff --git a/mod/feedback/tests/behat/feedback_activity_completion.feature b/mod/feedback/tests/behat/feedback_activity_completion.feature index 50de075f47c87..06f9c56d8e793 100644 --- a/mod/feedback/tests/behat/feedback_activity_completion.feature +++ b/mod/feedback/tests/behat/feedback_activity_completion.feature @@ -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" diff --git a/mod/folder/tests/behat/folder_activity_completion.feature b/mod/folder/tests/behat/folder_activity_completion.feature index 04cf1332a1de8..821d73656f01f 100644 --- a/mod/folder/tests/behat/folder_activity_completion.feature +++ b/mod/folder/tests/behat/folder_activity_completion.feature @@ -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 | diff --git a/mod/forum/tests/behat/forum_activity_completion.feature b/mod/forum/tests/behat/forum_activity_completion.feature index 1b566755ab148..71fae8050e013 100644 --- a/mod/forum/tests/behat/forum_activity_completion.feature +++ b/mod/forum/tests/behat/forum_activity_completion.feature @@ -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" diff --git a/mod/forum/tests/behat/forum_activity_completion_pass_grade.feature b/mod/forum/tests/behat/forum_activity_completion_pass_grade.feature index 9e9f4e613d24c..d820c90adf3f4 100644 --- a/mod/forum/tests/behat/forum_activity_completion_pass_grade.feature +++ b/mod/forum/tests/behat/forum_activity_completion_pass_grade.feature @@ -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" diff --git a/mod/glossary/tests/behat/glossary_activity_completion.feature b/mod/glossary/tests/behat/glossary_activity_completion.feature index e7e8c966850c0..f9b3cffbf1920 100644 --- a/mod/glossary/tests/behat/glossary_activity_completion.feature +++ b/mod/glossary/tests/behat/glossary_activity_completion.feature @@ -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" diff --git a/mod/glossary/tests/behat/glossary_activity_completion_pass_grade.feature b/mod/glossary/tests/behat/glossary_activity_completion_pass_grade.feature index bc7be369a25e4..a6a70e830a64e 100644 --- a/mod/glossary/tests/behat/glossary_activity_completion_pass_grade.feature +++ b/mod/glossary/tests/behat/glossary_activity_completion_pass_grade.feature @@ -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" diff --git a/mod/imscp/tests/behat/imscp_activity_completion.feature b/mod/imscp/tests/behat/imscp_activity_completion.feature index 2d9d2bec48156..bd5e79ce240e4 100644 --- a/mod/imscp/tests/behat/imscp_activity_completion.feature +++ b/mod/imscp/tests/behat/imscp_activity_completion.feature @@ -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 | diff --git a/mod/lesson/tests/behat/lesson_activity_completion.feature b/mod/lesson/tests/behat/lesson_activity_completion.feature index 254a666cfbc09..d71b60cc88a35 100644 --- a/mod/lesson/tests/behat/lesson_activity_completion.feature +++ b/mod/lesson/tests/behat/lesson_activity_completion.feature @@ -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" diff --git a/mod/lesson/tests/behat/lesson_completion_pass_grade.feature b/mod/lesson/tests/behat/lesson_completion_pass_grade.feature index 00da02e453a27..c2cfd573c98e6 100644 --- a/mod/lesson/tests/behat/lesson_completion_pass_grade.feature +++ b/mod/lesson/tests/behat/lesson_completion_pass_grade.feature @@ -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" diff --git a/mod/lti/tests/behat/lti_completion_pass_grade.feature b/mod/lti/tests/behat/lti_completion_pass_grade.feature index 4c410e2016947..2a5e80b49e3a1 100644 --- a/mod/lti/tests/behat/lti_completion_pass_grade.feature +++ b/mod/lti/tests/behat/lti_completion_pass_grade.feature @@ -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" diff --git a/mod/page/tests/behat/page_activity_completion.feature b/mod/page/tests/behat/page_activity_completion.feature index c9265abdcb92d..0531b5a7e2ca7 100644 --- a/mod/page/tests/behat/page_activity_completion.feature +++ b/mod/page/tests/behat/page_activity_completion.feature @@ -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 | diff --git a/mod/quiz/tests/behat/quiz_activity_completion.feature b/mod/quiz/tests/behat/quiz_activity_completion.feature index f9047398d7e9c..23d41b5541d5d 100644 --- a/mod/quiz/tests/behat/quiz_activity_completion.feature +++ b/mod/quiz/tests/behat/quiz_activity_completion.feature @@ -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" diff --git a/mod/resource/tests/behat/resource_activity_completion.feature b/mod/resource/tests/behat/resource_activity_completion.feature index 9f2b93d55469e..9169ff32daef7 100644 --- a/mod/resource/tests/behat/resource_activity_completion.feature +++ b/mod/resource/tests/behat/resource_activity_completion.feature @@ -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 | diff --git a/mod/scorm/tests/behat/scorm_activity_completion.feature b/mod/scorm/tests/behat/scorm_activity_completion.feature index 60577a9145ef7..7b02eed466f1c 100644 --- a/mod/scorm/tests/behat/scorm_activity_completion.feature +++ b/mod/scorm/tests/behat/scorm_activity_completion.feature @@ -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. diff --git a/mod/url/tests/behat/url_activity_completion.feature b/mod/url/tests/behat/url_activity_completion.feature index 052c03a7e928f..e220b64d482d8 100644 --- a/mod/url/tests/behat/url_activity_completion.feature +++ b/mod/url/tests/behat/url_activity_completion.feature @@ -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 | diff --git a/mod/wiki/tests/behat/wiki_activity_completion.feature b/mod/wiki/tests/behat/wiki_activity_completion.feature index 8946d25623364..1ec8da7ef1729 100644 --- a/mod/wiki/tests/behat/wiki_activity_completion.feature +++ b/mod/wiki/tests/behat/wiki_activity_completion.feature @@ -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" diff --git a/mod/workshop/tests/behat/workshop_activity_completion.feature b/mod/workshop/tests/behat/workshop_activity_completion.feature index 6e504236446b1..9c2b2ea79063d 100644 --- a/mod/workshop/tests/behat/workshop_activity_completion.feature +++ b/mod/workshop/tests/behat/workshop_activity_completion.feature @@ -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"