mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-55002 lang: Fix behat scenarios using modified strings
This commit is contained in:
parent
25558b808e
commit
46994de566
@ -57,7 +57,7 @@ class behat_gradingform_guide extends behat_base {
|
||||
* @param TableNode $guide
|
||||
*/
|
||||
public function i_define_the_following_marking_guide(TableNode $guide) {
|
||||
$steptableinfo = '| Criterion name | Description for students | Description for markers | Maximum mark |';
|
||||
$steptableinfo = '| Criterion name | Description for students | Description for markers | Maximum score |';
|
||||
|
||||
if ($criteria = $guide->getHash()) {
|
||||
$addcriterionbutton = $this->find_button(get_string('addcriterion', 'gradingform_guide'));
|
||||
@ -92,7 +92,7 @@ class behat_gradingform_guide extends behat_base {
|
||||
$this->set_guide_field_value($criterionroot . '[descriptionmarkers]', $criterion['Description for markers']);
|
||||
|
||||
// Set the field value for the Max score field.
|
||||
$this->set_guide_field_value($criterionroot . '[maxscore]', $criterion['Maximum mark']);
|
||||
$this->set_guide_field_value($criterionroot . '[maxscore]', $criterion['Maximum score']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ Feature: Marking guides can be created and edited
|
||||
| Name | Assignment 1 marking guide |
|
||||
| Description | Marking guide test description |
|
||||
And I define the following marking guide:
|
||||
| Criterion name | Description for students | Description for markers | Maximum mark |
|
||||
| Criterion name | Description for students | Description for markers | Maximum score |
|
||||
| Guide criterion A | Guide A description for students | Guide A description for markers | 30 |
|
||||
| Guide criterion B | Guide B description for students | Guide B description for markers | 30 |
|
||||
| Guide criterion C | Guide C description for students | Guide C description for markers | 40 |
|
||||
|
@ -20,7 +20,7 @@ Feature: Add tools
|
||||
And I follow "Add preconfigured tool"
|
||||
And I set the following fields to these values:
|
||||
| Tool name | Teaching Tool 1 |
|
||||
| Show when creating activities | Show in activity chooser and as preconfigured tool |
|
||||
| Tool configuration usage | Show in activity chooser and as a preconfigured tool |
|
||||
And I set the field "Tool base URL/cartridge URL" to local url "/mod/lti/tests/fixtures/tool_provider.html"
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
|
@ -33,7 +33,7 @@ Feature: Configure tool types
|
||||
And I press "Add"
|
||||
Then I should see "Enter your consumer key and shared secret"
|
||||
And I press "Save changes"
|
||||
And I should see "Failed to create new tool. Please check the url and try again."
|
||||
And I should see "Failed to create new tool. Please check the URL and try again."
|
||||
|
||||
@javascript
|
||||
Scenario: Attempt to add a tool type from a configuration URL, then cancel
|
||||
|
Loading…
x
Reference in New Issue
Block a user