Skip to content

Commit

Permalink
StudentQuiz: Fix behat failed
Browse files Browse the repository at this point in the history
Update using server-side validation.
  • Loading branch information
hieuvu committed Sep 16, 2024
1 parent 9c59561 commit d43eb2c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/behat/filter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d43eb2c

Please sign in to comment.