Skip to content

Commit

Permalink
MDL-70550 lang: Use the fixed strings in Behat tests, too
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Jan 8, 2021
1 parent 8e080c9 commit 2fba82e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion grade/tests/behat/grade_to_pass.feature
Expand Up @@ -209,7 +209,7 @@ Feature: We can set the grade to pass value
| Ratings > Grade to pass | 90 |
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on
And I click on "Edit forum Rating grade for Test Forum 1" "link"
And I click on "Edit forum Test Forum 1 rating" "link"
And I expand all fieldsets
Then the field "Grade to pass" matches value "90"
And I set the field "Grade to pass" to "80"
Expand Down
2 changes: 1 addition & 1 deletion mod/assign/tests/behat/steps_blind_marking.feature
Expand Up @@ -26,7 +26,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
| Online text | 1 |
| File submissions | 0 |
| Use marking workflow | Yes |
| Blind marking | Yes |
| Anonymous submissions | Yes |
And I log out
# Add a submission.
And I log in as "student1"
Expand Down
20 changes: 10 additions & 10 deletions mod/forum/tests/behat/grade_forum.feature
Expand Up @@ -63,11 +63,11 @@ Feature: I can grade a students interaction across a forum
And I turn editing mode on

# There shouldn't be any Ratings grade item.
Then I should see "Whole forum grade"
But I should not see "Rating grade"
Then I should see "Test Forum 1 whole forum"
But I should not see "Test Forum 1 rating"

# The values saved should be reflected here.
Given I click on "Edit forum Whole forum grade for Test Forum 1" "link"
Given I click on "Edit forum Test Forum 1 whole forum" "link"
When I expand all fieldsets
Then the field "Maximum grade" matches value "10"
Then the field "Grade to pass" matches value "4"
Expand Down Expand Up @@ -120,11 +120,11 @@ Feature: I can grade a students interaction across a forum
And I turn editing mode on

# There shouldn't be any Whole forum grade gradeitem.
Then I should see "Rating grade"
But I should not see "Whole forum grade"
Then I should see "Test Forum 1 rating"
But I should not see "Test Forum 1 whole forum"

# The values saved should be reflected here.
Given I click on "Edit forum Rating grade for Test Forum 1" "link"
Given I click on "Edit forum Test Forum 1 rating" "link"
When I expand all fieldsets
Then the field "Maximum grade" matches value "10"
Then the field "Grade to pass" matches value "4"
Expand All @@ -151,18 +151,18 @@ Feature: I can grade a students interaction across a forum
And I turn editing mode on

# There shouldn't be any Whole forum grade gradeitem.
Then I should see "Rating grade"
And I should see "Whole forum grade"
Then I should see "Test Forum 1 rating"
And I should see "Test Forum 1 whole forum"

# The values saved should be reflected here.
Given I click on "Edit forum Rating grade for Test Forum 1" "link"
Given I click on "Edit forum Test Forum 1 rating" "link"
When I expand all fieldsets
Then the field "Maximum grade" matches value "100"
Then the field "Grade to pass" matches value "40"
And I should see "Peers" in the "Parent category" "fieldset"
And I press "cancel"

Given I click on "Edit forum Whole forum grade for Test Forum 1" "link"
Given I click on "Edit forum Test Forum 1 whole forum" "link"
When I expand all fieldsets
Then the field "Maximum grade" matches value "10"
Then the field "Grade to pass" matches value "4"
Expand Down

0 comments on commit 2fba82e

Please sign in to comment.