MDL-82599 lang: Use the fixed strings in tests, too

This commit is contained in:
David Mudrák 2024-08-01 12:58:27 +02:00
parent c5b3abf9f5
commit 7af4e8816f
14 changed files with 29 additions and 29 deletions

View file

@ -52,7 +52,7 @@ Feature: A teacher can delete questions in the question bank
When I am on the "Course 1" "core_question > course question bank" page
And I choose "Delete" action for "Test used question to be deleted" in the question bank
And I should see "This will delete the following question and all its versions:"
And I should see "* Denotes questions which can't be deleted because they are in use. Instead, they will be hidden in the question bank unless you select 'Show old questions'."
And I should see "* Denotes questions which can't be deleted because they are in use. Instead, they will be hidden in the question bank unless you set 'Show hidden questions' to 'Yes'."
And I press "Delete"
Then I should not see "Test used question to be deleted"
And I apply question bank filter "Show hidden questions" with value "Yes"
@ -80,7 +80,7 @@ Feature: A teacher can delete questions in the question bank
| Test questions | Test question to be deleted | Test question to be deleted version 2 |
And I choose "Delete" action for "Test question to be deleted" in the question bank
And I should see "This will delete the following question and all its versions:"
And I should not see "* Denotes questions which can't be deleted because they are in use. Instead, they will be hidden in the question bank unless you select 'Show old questions'."
And I should not see "* Denotes questions which can't be deleted because they are in use. Instead, they will be hidden in the question bank unless you set 'Show hidden questions' to 'Yes'."
And I press "Delete"
Then I should not see "Test question to be deleted"
And I should not see "Test question to be deleted version2"