From d43eb2c709f730ee64311b537f4b581af6e8c1cf Mon Sep 17 00:00:00 2001 From: hieuvu Date: Mon, 16 Sep 2024 11:12:27 +0700 Subject: [PATCH] StudentQuiz: Fix behat failed Update using server-side validation. --- tests/behat/filter.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/behat/filter.feature b/tests/behat/filter.feature index 2a72bd13..b1e78131 100644 --- a/tests/behat/filter.feature +++ b/tests/behat/filter.feature @@ -27,33 +27,45 @@ Feature: Filtering in Studentquiz view. When I am on the "StudentQuiz Test 1" "mod_studentquiz > View" page logged in as "admin" And I click on "Show more..." "link" Then I set the field "Rating value" to "TF 01" + And I press "id_submitbutton" And I should see "You must enter a number here." And I set the field "Rating value" to "" + And I press "id_submitbutton" And I should not see "You must enter a number here." And I set the field "Difficulty value" to "TF 01" + And I press "id_submitbutton" And I should see "You must enter a number here." And I set the field "Difficulty value" to "" + And I press "id_submitbutton" And I should not see "You must enter a number here." And I set the field "Comments value" to "TF 01" + And I press "id_submitbutton" And I should see "You must enter a number here." And I set the field "Comments value" to "" + And I press "id_submitbutton" And I should not see "You must enter a number here." And I set the field "My attempts value" to "TF 01" + And I press "id_submitbutton" And I should see "You must enter a number here." And I set the field "My attempts value" to "" + And I press "id_submitbutton" And I should not see "You must enter a number here." And I set the field "My difficulty value" to "TF 01" + And I press "id_submitbutton" And I should see "You must enter a number here." And I set the field "My difficulty value" to "" + And I press "id_submitbutton" And I should not see "You must enter a number here." And I set the field "My Rating value" to "TF 01" + And I press "id_submitbutton" And I should see "You must enter a number here." And I set the field "My Rating value" to "" + And I press "id_submitbutton" And I should not see "You must enter a number here." And I set the following fields to these values: