MDL-86383 lang: Use the fixed strings in tests, too
This commit is contained in:
@@ -79,7 +79,7 @@ Feature: An administrator can browse user accounts
|
||||
Scenario: Delete a user account
|
||||
Given I navigate to "Users > Accounts > Browse list of users" in site administration
|
||||
And I press "Delete" action in the "User One" report row
|
||||
And I should see "Are you absolutely sure you want to completely delete the user User One" in the "Delete user" "dialogue"
|
||||
And I should see "Are you sure you want to delete user User One" in the "Delete user" "dialogue"
|
||||
And I click on "Delete" "button" in the "Delete user" "dialogue"
|
||||
Then I should see "Deleted user User One"
|
||||
And I should not see "User One" in the "reportbuilder-table" "table"
|
||||
|
||||
@@ -62,12 +62,12 @@ Feature: Display and choose from the available activities in course
|
||||
Given I open the activity chooser
|
||||
When I click on "Information about the Forum activity" "button" in the "Add an activity or resource" "dialogue"
|
||||
And I click on "Collaboration" "button" in the "help" "core_course > Activity chooser screen"
|
||||
Then I should see "Tools for collaborative learning" in the "Add an activity or resource" "dialogue"
|
||||
Then I should see "Activities for collaborative learning" in the "Add an activity or resource" "dialogue"
|
||||
And "Assignment" "link" should not exist in the "collaboration" "core_course > Activity chooser tab"
|
||||
And "Database" "link" should exist in the "collaboration" "core_course > Activity chooser tab"
|
||||
And I click on "Information about the Forum activity" "button" in the "collaboration" "core_course > Activity chooser tab"
|
||||
And I click on "Communication" "button" in the "help" "core_course > Activity chooser screen"
|
||||
And I should see "Activities that facilitate real-time communication" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Activities for real-time communication" in the "Add an activity or resource" "dialogue"
|
||||
And "Choice" "link" should exist in the "communication" "core_course > Activity chooser tab"
|
||||
|
||||
Scenario: The teacher can hide the activity summary in the activity chooser
|
||||
@@ -219,22 +219,22 @@ Feature: Display and choose from the available activities in course
|
||||
And I should see "Book" in the "all" "core_course > Activity chooser tab"
|
||||
# Assessment tab.
|
||||
And I click on "Assessment" "link" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Activities that allow evaluation and measurement of student" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Activities that support evaluation and measurement of student understanding" in the "Add an activity or resource" "dialogue"
|
||||
And "Book" "link" should not exist in the "assessment" "core_course > Activity chooser tab"
|
||||
And "Assignment" "link" should exist in the "assessment" "core_course > Activity chooser tab"
|
||||
# Collaboration tab.
|
||||
And I click on "Collaboration" "link" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Tools for collaborative learning" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Activities for collaborative learning" in the "Add an activity or resource" "dialogue"
|
||||
And "Assignment" "link" should not exist in the "collaboration" "core_course > Activity chooser tab"
|
||||
And "Database" "link" should exist in the "collaboration" "core_course > Activity chooser tab"
|
||||
# Communication tab.
|
||||
And I click on "Communication" "link" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Activities that facilitate real-time communication" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Activities for real-time communication" in the "Add an activity or resource" "dialogue"
|
||||
And "Database" "link" should not exist in the "communication" "core_course > Activity chooser tab"
|
||||
And "Choice" "link" should exist in the "communication" "core_course > Activity chooser tab"
|
||||
# Resources tab.
|
||||
And I click on "Resources" "link" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Activities and tools to organise and display course materials" in the "Add an activity or resource" "dialogue"
|
||||
And I should see "Activities and tools for organising and displaying course materials" in the "Add an activity or resource" "dialogue"
|
||||
And "Choice" "link" should not exist in the "content" "core_course > Activity chooser tab"
|
||||
And "File" "link" should exist in the "content" "core_course > Activity chooser tab"
|
||||
# Interactive content tab.
|
||||
|
||||
@@ -98,7 +98,7 @@ Feature: Toggle activities visibility from the course page
|
||||
And "Test forum name" activity should be hidden
|
||||
And I click on "Test forum name" "link" in the "Recent activity" "block"
|
||||
And I should see "Test forum name"
|
||||
And I should see "There are no discussion topics yet in this forum"
|
||||
And I should see "There are no discussion topics yet in this forum."
|
||||
|
||||
@javascript
|
||||
Scenario: Activities can be made available but not visible on a course page
|
||||
|
||||
@@ -71,7 +71,7 @@ Feature: Delete activity tags during course reset
|
||||
And I press "Continue"
|
||||
And I am on the "Test Forum" "forum activity" page
|
||||
# Confirm discussion is deleted when `Delete all posts` was checked.
|
||||
And I <forumview> see "There are no discussion topics yet in this forum"
|
||||
And I <forumview> see "There are no discussion topics yet in this forum."
|
||||
# Confirm all discussion tags are deleted.
|
||||
And I should not see "SampleTag"
|
||||
And I should not see "DiscussionTag"
|
||||
|
||||
@@ -13,7 +13,7 @@ Feature: An administrator can make Moodle to use self-hosted TinyMCE
|
||||
And I set the field "TinyMCE path" to "lib/abc"
|
||||
And I click on "Save changes" "button"
|
||||
And I should see "Some settings were not changed due to an error."
|
||||
And I should see "TinyMCE not found at this path. Make sure the path is correct and includes tinymce.min.js"
|
||||
And I should see "TinyMCE files not found. Make sure the path is correct and the folder includes tinymce.min.js."
|
||||
And I set the field "TinyMCE path" to "lib/editor/tiny/js/tinymce"
|
||||
And I click on "Save changes" "button"
|
||||
And I should not see "TinyMCE not found at this path. Make sure the path is correct and includes tinymce.min.js"
|
||||
And I should not see "TinyMCE files not found. Make sure the path is correct and the folder includes tinymce.min.js."
|
||||
|
||||
@@ -21,7 +21,7 @@ Feature: A teacher or admin can view subscriptions tab
|
||||
When I navigate to "Subscriptions" in current page administration
|
||||
Then I should see "View subscribers" in the "//div[@class='urlselect']//option[@selected]" "xpath_element"
|
||||
And I should see "Subscribers"
|
||||
And I should see "There are no subscribers yet for this forum"
|
||||
And I should see "There are no subscribers yet for this forum."
|
||||
|
||||
Scenario: A teacher selects forced subscription and subscribers selector is not visible
|
||||
Given I am on the "Test forum name" "forum activity" page logged in as teacher
|
||||
@@ -49,7 +49,7 @@ Feature: A teacher or admin can view subscriptions tab
|
||||
|
||||
Scenario: A teacher selects reports tab and verify the heading
|
||||
Given I am on the "Test forum name" "forum activity" page logged in as teacher
|
||||
And I should see "There are no discussion topics yet in this forum" in the "//div[contains(@class, 'alert-info')]" "xpath_element"
|
||||
And I should see "There are no discussion topics yet in this forum." in the "//div[contains(@class, 'alert-info')]" "xpath_element"
|
||||
And I navigate to "Reports" in current page administration
|
||||
And I should see "Forum summary report"
|
||||
And I should see "Nothing to display" in the "//div[contains(@class, 'alert-info')]" "xpath_element"
|
||||
|
||||
@@ -27,7 +27,7 @@ Feature: Changes to the subscription mode of a forum can change subcribers of a
|
||||
Given I am on the "Test forum name" "forum activity" page logged in as teacher
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
When I select "Auto subscription" from the "Subscription mode" singleselect
|
||||
Then I should not see "There are no subscribers yet for this forum"
|
||||
Then I should not see "There are no subscribers yet for this forum."
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
And the following should exist in the "subscribers-table" table:
|
||||
| Full name | Email address |
|
||||
|
||||
@@ -32,7 +32,7 @@ Feature: Deleting users
|
||||
And I press "Add to selection"
|
||||
And I set the field "id_action" to "Delete"
|
||||
And I press "Go"
|
||||
And I should see "Are you absolutely sure you want to completely delete the user User Four, including their enrolments, activity and other user data?"
|
||||
And I should see "Are you sure you want to delete user User Four, including data such as profile details, enrolments, group and cohort membership and some user activity data?"
|
||||
And I press "Yes"
|
||||
And I should see "Changes saved"
|
||||
And I press "Continue"
|
||||
@@ -49,7 +49,7 @@ Feature: Deleting users
|
||||
And I press "Add to selection"
|
||||
And I set the field "id_action" to "Delete"
|
||||
And I press "Go"
|
||||
And I should see "Are you absolutely sure you want to completely delete the user User Four, User Three, including their enrolments, activity and other user data?"
|
||||
And I should see "Are you sure you want to delete user User Four, User Three, including data such as profile details, enrolments, group and cohort membership and some user activity data?"
|
||||
And I press "Yes"
|
||||
And I should see "Changes saved"
|
||||
And I press "Continue"
|
||||
@@ -64,7 +64,7 @@ Feature: Deleting users
|
||||
And I click on "User Four" "checkbox"
|
||||
And I click on "User Three" "checkbox"
|
||||
And I set the field "Bulk user actions" to "Delete"
|
||||
And I should see "Are you absolutely sure you want to completely delete the user User Four, User Three, including their enrolments, activity and other user data?"
|
||||
And I should see "Are you sure you want to delete user User Four, User Three, including data such as profile details, enrolments, group and cohort membership and some user activity data?"
|
||||
And I press "Yes"
|
||||
And I should see "Changes saved"
|
||||
And I press "Continue"
|
||||
|
||||
Reference in New Issue
Block a user