From 7b935ca87b3f4b979876cbb4b09dcb32d37e606d Mon Sep 17 00:00:00 2001 From: abgreeve Date: Wed, 10 Nov 2021 14:27:59 +0800 Subject: [PATCH] MDL-71912 behat: Assignment navigation related behat fixes. --- .../block_completionstatus_activity_completion.feature | 8 ++++---- lib/form/tests/behat/modgrade_validation.feature | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature b/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature index 231eacd50ae..eee001e9365 100644 --- a/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature +++ b/blocks/completionstatus/tests/behat/block_completionstatus_activity_completion.feature @@ -67,7 +67,7 @@ Feature: Enable Block Completion in a course using activity completion And I follow "More details" And I should see "Yes" in the "Activity completion" "table_row" - @javascript @skip_interim + @javascript Scenario: Add the block to a the course and add course completion items with passing grade Given I am on the "Test assign name" "assign activity" page logged in as teacher1 And I navigate to "Settings" in current page administration @@ -78,7 +78,7 @@ Feature: Enable Block Completion in a course using activity completion | gradepass | 50 | And I press "Save and return to course" And I am on the "Test assign name" "assign activity" page - And I navigate to "View all submissions" in current page administration + And I follow "View all submissions" And I click on "Grade" "link" in the "Student" "table_row" And I set the field "Grade out of 100" to "53" And I set the field "Notify students" to "0" @@ -101,7 +101,7 @@ Feature: Enable Block Completion in a course using activity completion And I should see "Achieving grade, Achieving passing grade" in the "Activity completion" "table_row" And I should see "Yes" in the "Activity completion" "table_row" - @javascript @skip_interim + @javascript Scenario: Add the block to a the course and add course completion items with failing grade. Given I am on the "Test assign name" "assign activity" page logged in as teacher1 And I navigate to "Settings" in current page administration @@ -112,7 +112,7 @@ Feature: Enable Block Completion in a course using activity completion | gradepass | 50 | And I press "Save and return to course" And I am on the "Test assign name" "assign activity" page - And I navigate to "View all submissions" in current page administration + And I follow "View all submissions" And I click on "Grade" "link" in the "Student" "table_row" And I set the field "Grade out of 100" to "49" And I set the field "Notify students" to "0" diff --git a/lib/form/tests/behat/modgrade_validation.feature b/lib/form/tests/behat/modgrade_validation.feature index d6e71f7add3..fa2fbe253aa 100644 --- a/lib/form/tests/behat/modgrade_validation.feature +++ b/lib/form/tests/behat/modgrade_validation.feature @@ -150,10 +150,10 @@ Feature: Using the activity grade form element Then I should see "You cannot change the type, as grades already exist for this item." And the "Maximum grade" "field" should be disabled - @javascript @skip_interim + @javascript Scenario: Attempting to change the maximum grade when no rescaling option has been chosen Given I am on the "Test assignment name" "assign activity" page logged in as teacher1 - And I navigate to "View all submissions" in current page administration + And I follow "View all submissions" And I click on "Grade" "link" in the "Student 1" "table_row" And I set the field "Grade out of 100" to "50" And I press "Save changes"