From bc4af11917e6f87e1c4f65887b02f0ab79ab6028 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Mon, 20 Jan 2025 13:40:36 +0800 Subject: [PATCH] MDL-84249 behat: remove unnecessary javascript tag This commit also make the repeated scenario names unique. --- mod/workshop/tests/behat/workshop_assessment.feature | 3 +-- .../tests/behat/workshop_completion_pass_grade.feature | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/workshop/tests/behat/workshop_assessment.feature b/mod/workshop/tests/behat/workshop_assessment.feature index ebe61a35fb1..fac11c0747d 100644 --- a/mod/workshop/tests/behat/workshop_assessment.feature +++ b/mod/workshop/tests/behat/workshop_assessment.feature @@ -134,5 +134,4 @@ Feature: Workshop submission and assessment And I am on the TestWorkshop "workshop activity" page logged in as student1 Then I should see "Your submission with assessments" - @javascript - Scenario: Add and assess submissions in workshop with javascript enabled + Scenario: As a teacher I can assess submissions in workshop diff --git a/mod/workshop/tests/behat/workshop_completion_pass_grade.feature b/mod/workshop/tests/behat/workshop_completion_pass_grade.feature index a5274059ab7..e67cfe98f96 100644 --- a/mod/workshop/tests/behat/workshop_completion_pass_grade.feature +++ b/mod/workshop/tests/behat/workshop_completion_pass_grade.feature @@ -1,4 +1,4 @@ -@mod @mod_workshop @core_completion @javascript +@mod @mod_workshop @core_completion Feature: Workshop submission and assessment with pass grade activity completion Background: @@ -107,7 +107,8 @@ Feature: Workshop submission and assessment with pass grade activity completion And I press "Re-calculate grades" And I change phase in workshop "TestWorkshop" to "Closed" - Scenario: Add and assess submissions in workshop with javascript enabled + @javascript + Scenario: As teacher, I can see the completion status of students in the workshop activity And I am on the "Course1" course page logged in as student1 And the "Receive a grade" completion condition of "TestWorkshop" is displayed as "done" And the "Receive a passing grade" completion condition of "TestWorkshop" is displayed as "failed"