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

This commit is contained in:
David Mudrák 2024-05-29 21:57:55 +02:00 committed by Jun Pataleta
parent b12afc89e4
commit 0091b1a153
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
5 changed files with 23 additions and 23 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -168,7 +168,7 @@ Feature: Setup multiple grades for a quiz
| Listening | 3 | 0 |
When I am on the "Quiz 1" "mod_quiz > multiple grades setup" page logged in as teacher
And I press "Setup a grade for each section"
And I press "Set up a grade for each section"
Then "Reading" "table_row" should exist in the "mod_quiz-grade-item-list" "table"
And "Listening" "table_row" should exist in the "mod_quiz-grade-item-list" "table"