mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-76739 lang: Use the fixed strings in the tests, too
This commit is contained in:
parent
975a127325
commit
50ba9dc72c
30 changed files with 120 additions and 120 deletions
|
@ -60,12 +60,12 @@ Feature: Course level forum summary report
|
|||
And I should see "Export posts"
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies | | |
|
||||
| First name / Surname | -3- | -4- | Earliest post | Most recent post |
|
||||
| First name / Last name | -3- | -4- | Earliest post | Most recent post |
|
||||
| Student 1 | 1 | 1 | Thursday, 28 March 2019, 11:50 | Thursday, 6 June 2019, 6:40 |
|
||||
| Student 2 | 0 | 0 | - | - |
|
||||
| Teacher 1 | 1 | 2 | Wednesday, 27 March 2019, 12:10 | Wednesday, 10 July 2019, 9:30 |
|
||||
And the following should not exist in the "forumreport_summary_table" table:
|
||||
| First name / Surname |
|
||||
| First name / Last name |
|
||||
| Student 3 |
|
||||
And the "Forum selected" select box should contain "All forums in course"
|
||||
And the "Forum selected" select box should contain "forum1"
|
||||
|
@ -76,12 +76,12 @@ Feature: Course level forum summary report
|
|||
And I should not see "Export posts"
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies | | |
|
||||
| First name / Surname | -3- | -4- | Earliest post | Most recent post |
|
||||
| First name / Last name | -3- | -4- | Earliest post | Most recent post |
|
||||
| Student 1 | 2 | 3 | Thursday, 25 January 2018, 4:40 | Saturday, 25 January 2020, 11:50 |
|
||||
| Student 2 | 0 | 0 | - | - |
|
||||
| Teacher 1 | 4 | 3 | Sunday, 14 January 2018, 9:00 | Thursday, 26 December 2019, 9:30 |
|
||||
And the following should not exist in the "forumreport_summary_table" table:
|
||||
| First name / Surname |
|
||||
| First name / Last name |
|
||||
| Student 3 |
|
||||
|
||||
Scenario: Course forum summary report correctly formats forum activity names
|
||||
|
@ -106,10 +106,10 @@ Feature: Course level forum summary report
|
|||
And I navigate to "Reports" in current page administration
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies | | |
|
||||
| First name / Surname | -2- | -3- | Earliest post | Most recent post |
|
||||
| First name / Last name | -2- | -3- | Earliest post | Most recent post |
|
||||
| Student 1 | 0 | 1 | Thursday, 25 January 2018, 4:40 | Thursday, 25 January 2018, 4:40 |
|
||||
And the following should not exist in the "forumreport_summary_table" table:
|
||||
| First name / Surname |
|
||||
| First name / Last name |
|
||||
| Student 2 |
|
||||
| Student 3 |
|
||||
| Teacher 1 |
|
||||
|
@ -121,10 +121,10 @@ Feature: Course level forum summary report
|
|||
Then I select "All forums in course" from the "Forum selected" singleselect
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies | | |
|
||||
| First name / Surname | -2- | -3- | Earliest post | Most recent post |
|
||||
| First name / Last name | -2- | -3- | Earliest post | Most recent post |
|
||||
| Student 1 | 2 | 3 | Thursday, 25 January 2018, 4:40 | Saturday, 25 January 2020, 11:50 |
|
||||
And the following should not exist in the "forumreport_summary_table" table:
|
||||
| First name / Surname |
|
||||
| First name / Last name |
|
||||
| Student 2 |
|
||||
| Student 3 |
|
||||
| Teacher 1 |
|
||||
|
|
|
@ -42,7 +42,7 @@ Feature: Report relevant content availability
|
|||
| Teacher 1 | 1 | 0 | 0 | 1 | 2 | 8 |
|
||||
And "select-all-users" "checkbox" should be visible
|
||||
And "First name" "link" should be visible
|
||||
And "Surname" "link" should be visible
|
||||
And "Last name" "link" should be visible
|
||||
And "Number of discussions posted" "link" should be visible
|
||||
And "Number of replies posted" "link" should be visible
|
||||
And "Number of attachments" "link" should be visible
|
||||
|
@ -74,7 +74,7 @@ Feature: Report relevant content availability
|
|||
| Teacher 1 |
|
||||
And "select-all-users" "checkbox" should not exist
|
||||
And "First name" "link" should be visible
|
||||
And "Surname" "link" should be visible
|
||||
And "Last name" "link" should be visible
|
||||
And "Number of discussions posted" "link" should be visible
|
||||
And "Number of replies posted" "link" should be visible
|
||||
And "Number of attachments" "link" should be visible
|
||||
|
|
|
@ -67,7 +67,7 @@ Feature: Groups report filter is available if groups exist
|
|||
Then "Groups" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 1 | 1 |
|
||||
| Student 2 | 0 | 0 |
|
||||
| Teacher 1 | 2 | 2 |
|
||||
|
@ -103,7 +103,7 @@ Feature: Groups report filter is available if groups exist
|
|||
And "Groups (all)" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 1 | 1 |
|
||||
| Student 2 | 0 | 0 |
|
||||
| Teacher 1 | 2 | 2 |
|
||||
|
@ -115,7 +115,7 @@ Feature: Groups report filter is available if groups exist
|
|||
Then "Groups" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 1 | 1 |
|
||||
| Student 2 | 0 | 0 |
|
||||
| Teacher 1 | 2 | 2 |
|
||||
|
@ -128,7 +128,7 @@ Feature: Groups report filter is available if groups exist
|
|||
And "Groups (3)" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 1 | 1 |
|
||||
| Teacher 1 | 1 | 2 |
|
||||
And I should not see "Student 2"
|
||||
|
@ -137,7 +137,7 @@ Feature: Groups report filter is available if groups exist
|
|||
And "Groups (3)" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 1 | 1 |
|
||||
| Teacher 1 | 1 | 2 |
|
||||
And I should not see "Student 2"
|
||||
|
@ -149,7 +149,7 @@ Feature: Groups report filter is available if groups exist
|
|||
Then "Groups" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 0 | 0 |
|
||||
| Student 2 | 1 | 2 |
|
||||
| Teacher 1 | 3 | 1 |
|
||||
|
@ -161,7 +161,7 @@ Feature: Groups report filter is available if groups exist
|
|||
And "Groups (2)" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 0 | 0 |
|
||||
| Student 2 | 1 | 1 |
|
||||
| Teacher 1 | 2 | 1 |
|
||||
|
@ -172,7 +172,7 @@ Feature: Groups report filter is available if groups exist
|
|||
And I navigate to "Reports" in current page administration
|
||||
Then the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 0 | 0 |
|
||||
| Student 2 | 1 | 2 |
|
||||
| Teacher 1 | 3 | 1 |
|
||||
|
@ -183,7 +183,7 @@ Feature: Groups report filter is available if groups exist
|
|||
And "Groups (1)" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 0 | 0 |
|
||||
| Student 2 | 1 | 1 |
|
||||
| Teacher 1 | 1 | 0 |
|
||||
|
@ -196,7 +196,7 @@ Feature: Groups report filter is available if groups exist
|
|||
Then "Groups" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 1 | 1 |
|
||||
| Student 2 | 0 | 0 |
|
||||
| Teacher 1 | 2 | 2 |
|
||||
|
@ -225,7 +225,7 @@ Feature: Groups report filter is available if groups exist
|
|||
And "Groups (2)" "button" should exist
|
||||
Then the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 1 | 1 |
|
||||
| Teacher 1 | 2 | 3 |
|
||||
And I should not see "Student 2"
|
||||
|
@ -234,7 +234,7 @@ Feature: Groups report filter is available if groups exist
|
|||
And "Groups (2)" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
| First name / Last name | -3- | -4- |
|
||||
| Student 1 | 1 | 1 |
|
||||
| Teacher 1 | 2 | 3 |
|
||||
And I should not see "Student 2"
|
||||
|
|
|
@ -54,7 +54,7 @@ Feature: Groups report filter is not available if no groups exist
|
|||
Then "Groups" "button" should not exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions |
|
||||
| First name / Surname | -3- |
|
||||
| First name / Last name | -3- |
|
||||
| Teacher 1 | 2 |
|
||||
| Student 1 | 1 |
|
||||
| Student 2 | 0 |
|
||||
|
|
|
@ -51,7 +51,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
And I follow "Subscribe to forum"
|
||||
And I should see "Student One will be notified of new posts in 'Test forum name'"
|
||||
And I should see "You will be notified of new posts in the forum 'Test forum name'"
|
||||
And I can unsubscribe from this forum
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
|
@ -101,7 +101,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
And I subscribe to this forum
|
||||
And I should see "Student One will be notified of new posts in 'Test forum name'"
|
||||
And I should see "You will be notified of new posts in the forum 'Test forum name'"
|
||||
And I can unsubscribe from this forum
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
|
@ -287,7 +287,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
|
||||
And I follow "Test forum name"
|
||||
And I follow "Subscribe to forum"
|
||||
And I should see "Student One will be notified of new posts in 'Test forum name'"
|
||||
And I should see "You will be notified of new posts in the forum 'Test forum name'"
|
||||
And "Unsubscribe from forum" "link" should exist
|
||||
And I follow "Test post subject one"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe" "link" should exist
|
||||
|
@ -302,10 +302,10 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
And I follow "Test post subject one"
|
||||
And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
|
||||
And I follow "You are not subscribed to this discussion. Click to subscribe"
|
||||
And I should see "Student One will be notified of new posts in 'Test post subject one' of 'Test forum name'"
|
||||
And I should see "You will be notified of new posts in 'Test post subject one' in the forum 'Test forum name'."
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And I follow "Subscribe to forum"
|
||||
And I should see "Student One will be notified of new posts in 'Test forum name'"
|
||||
And I should see "You will be notified of new posts in the forum 'Test forum name'"
|
||||
And "Unsubscribe from forum" "link" should exist
|
||||
And I follow "Test post subject one"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe" "link" should exist
|
||||
|
|
|
@ -95,7 +95,7 @@ Feature: A user can control their own subscription preferences for a forum
|
|||
Then I should see "Subscribe to forum"
|
||||
And I should not see "Unsubscribe from forum"
|
||||
And I follow "Subscribe to forum"
|
||||
And I should see "Student One will be notified of new posts in 'Test forum name'"
|
||||
And I should see "You will be notified of new posts in the forum 'Test forum name'"
|
||||
And I should see "Unsubscribe from forum"
|
||||
And I should not see "Subscribe to forum"
|
||||
|
||||
|
|
|
@ -29,4 +29,4 @@ Feature: Create a glossary entry.
|
|||
| Definition | Dream is the start of a journey |
|
||||
| Keyword(s) | " |
|
||||
And I press "Save changes"
|
||||
Then I should see "Some/All of the entered keywords cannot be used as they are reserved."
|
||||
Then I should see "One or more keywords contain a special character which cannot be used."
|
||||
|
|
|
@ -136,7 +136,7 @@ class validate_quiz_access_test extends \advanced_testcase {
|
|||
*/
|
||||
public function test_no_keys_provided() {
|
||||
$this->expectException(\invalid_parameter_exception::class);
|
||||
$this->expectExceptionMessage('At least one SEB key must be provided.');
|
||||
$this->expectExceptionMessage('At least one Safe Exam Browser key must be provided.');
|
||||
validate_quiz_keys::execute($this->quiz->cmid, 'https://www.example.com/moodle');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue