MDL-55002 lang: Fix behat scenarios using modified strings

This commit is contained in:
David Mudrák 2016-06-27 22:37:08 +02:00
parent 25558b808e
commit 46994de566
4 changed files with 8 additions and 8 deletions

View File

@ -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']);
}
}
}

View File

@ -29,10 +29,10 @@ 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 |
| 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 |
| 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 |
And I define the following frequently used comments:
| Comment 1 |
| Comment 2 |

View File

@ -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

View File

@ -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