MDL-81982 lang: Use fixed strings in tests, too

This commit is contained in:
David Mudrák
2024-06-05 10:24:38 +08:00
committed by Jun Pataleta
parent edf57cb689
commit d14d574b47
4 changed files with 22 additions and 22 deletions
@@ -1,5 +1,5 @@
@editor @editor_tiny @tiny_equation
Feature: Tiny equation editor
Feature: Equation editor
To teach maths to students, I need to write equations
@javascript
@@ -6,7 +6,7 @@ Feature: Tiny noautolink
Scenario: Insert a link, add and remove the auto-link prevention
Given I log in as "admin"
And I navigate to "Plugins > Text editors > TinyMCE editor > General settings" in site administration
And I click on "Enable Tiny no auto-link" "link"
And I click on "Enable No auto-link" "link"
When I open my profile in edit mode
And I set the field "Description" to "<p>https://moodle.org</p>"
@@ -8,23 +8,23 @@ Feature: An administrator can manage TinyMCE subplugins
Scenario: An administrator can control the enabled state of TinyMCE subplugins using JavaScript
Given I am logged in as "admin"
And I navigate to "Plugins > Text editors > TinyMCE editor > General settings" in site administration
When I click on "Disable Tiny equation editor" "link"
Then I should see "Tiny equation editor disabled."
And "Disable Tiny equation editor" "link" should not exist
But "Enable Tiny equation editor" "link" should exist
When I click on "Enable Tiny equation editor" "link"
Then I should see "Tiny equation editor enabled."
And "Enable Tiny equation editor" "link" should not exist
But "Disable Tiny equation editor" "link" should exist
When I click on "Disable Equation editor" "link"
Then I should see "Equation editor disabled."
And "Disable Equation editor" "link" should not exist
But "Enable Equation editor" "link" should exist
When I click on "Enable Equation editor" "link"
Then I should see "Equation editor enabled."
And "Enable Equation editor" "link" should not exist
But "Disable Equation editor" "link" should exist
Scenario: An administrator can control the enabled state of TinyMCE subplugins without JavaScript
Given I am logged in as "admin"
And I navigate to "Plugins > Text editors > TinyMCE editor > General settings" in site administration
When I click on "Disable Tiny equation editor" "link"
Then I should see "Tiny equation editor disabled."
And "Disable Tiny equation editor" "link" should not exist
But "Enable Tiny equation editor" "link" should exist
When I click on "Enable Tiny equation editor" "link"
Then I should see "Tiny equation editor enabled."
And "Enable Tiny equation editor" "link" should not exist
But "Disable Tiny equation editor" "link" should exist
When I click on "Disable Equation editor" "link"
Then I should see "Equation editor disabled."
And "Disable Equation editor" "link" should not exist
But "Enable Equation editor" "link" should exist
When I click on "Enable Equation editor" "link"
Then I should see "Equation editor enabled."
And "Enable Equation editor" "link" should not exist
But "Disable Equation editor" "link" should exist
@@ -130,15 +130,15 @@ Feature: Basic use of the Manual grading report
And I click on "update grades" "link" in the "Short answer 001" "table_row"
When I set the following fields to these values:
| Questions per page | 0 |
Then I should see "You must enter a number that is greater than 0."
Then I should see "You must enter a whole number that is greater than 0."
And I set the following fields to these values:
| Questions per page | -1 |
And I press "Change options"
And I should see "You must enter a number that is greater than 0."
And I should see "You must enter a whole number that is greater than 0."
And I set the following fields to these values:
| Questions per page | abc |
And I press "Change options"
And I should see "You must enter a number that is greater than 0."
And I should see "You must enter a whole number that is greater than 0."
And I set the following fields to these values:
| Questions per page | 1 |
And I press "Change options"
@@ -152,7 +152,7 @@ Feature: Basic use of the Manual grading report
And I follow "Also show questions that have been graded automatically"
And I click on "update grades" "link" in the "Short answer 001" "table_row"
Then I should see "Attempt number 1 for S1 Student1 (student1, S1000, student1@example.com, little yellow frog)"
And I should not see "You must enter a number that is greater than 0."
And I should not see "You must enter a whole number that is greater than 0."
Scenario: A marker cannot access the report in separate group
Given user "student1" has attempted "Quiz 1" with responses: