Commit ad30fde4 authored by David Mudrák's avatar David Mudrák
Browse files

MDL-71425 lang: Fix reworded strings in tests

parent 49efd0b4
......@@ -37,7 +37,7 @@ Feature: The online users block allow you to see who is currently online on fron
When I log in as "student1"
And I am on site homepage
Then I should not see "Admin User" in the "Online users" "block"
And I should see "Other Users (1)" in the "Online users" "block"
And I should see "Other users (1)" in the "Online users" "block"
And I should see "Student 1" in the "Online users" "block"
And I should see "Student 2" in the "Online users" "block"
And I should see "3 online users" in the "Online users" "block"
......@@ -79,7 +79,7 @@ Feature: The online users block allow you to see who is currently online on fron
And I am on site homepage
Then I should see "2 online user" in the "Online users" "block"
And I should not see "Admin" in the "Online users" "block"
And I should see "Other Users (1)" in the "Online users" "block"
And I should see "Other users (1)" in the "Online users" "block"
And I should see "Student 2" in the "Online users" "block"
And I should not see "Student 1" in the "Online users" "block"
And I log out
......@@ -94,7 +94,7 @@ Feature: The online users block allow you to see who is currently online on fron
And I am on site homepage
Then I should see "3 online users" in the "Online users" "block"
And I should not see "Admin" in the "Online users" "block"
And I should see "Other Users (1)" in the "Online users" "block"
And I should see "Other users (1)" in the "Online users" "block"
And I should see "Student 2" in the "Online users" "block"
And I should see "Student 1" in the "Online users" "block"
......@@ -138,7 +138,7 @@ Feature: The online users block allow you to see who is currently online on fron
And I am on site homepage
And I should see "2 online user" in the "Online users" "block"
And I should not see "Admin" in the "Online users" "block"
And I should see "Other Users (1)" in the "Online users" "block"
And I should see "Other users (1)" in the "Online users" "block"
And I should see "Student 2" in the "Online users" "block"
And I should not see "Student 1" in the "Online users" "block"
And I log out
......@@ -148,6 +148,6 @@ Feature: The online users block allow you to see who is currently online on fron
When I am on site homepage
Then I should see "3 online users" in the "Online users" "block"
And I should not see "Admin" in the "Online users" "block"
And I should see "Other Users (1)" in the "Online users" "block"
And I should see "Other users (1)" in the "Online users" "block"
And I should see "Student 2" in the "Online users" "block"
And I should see "Student 1" in the "Online users" "block"
......@@ -37,7 +37,7 @@ Feature: Allow teachers to edit the visibility of completion conditions in a cou
And I am on "Course 1" course homepage with editing mode on
And I navigate to "Edit settings" in current page administration
When I set the following fields to these values:
| Show completion conditions | No |
| Show activity completion conditions | No |
And I click on "Save and display" "button"
# Automatic completion conditions should not be displayed on the course homepage if show completion conditions is disabled.
And there should be no completion information shown for "Test choice auto"
......@@ -54,7 +54,7 @@ Feature: Allow teachers to edit the visibility of completion conditions in a cou
Scenario Outline: Default showcompletionconditions value in course form on course creation
Given I log in as "admin"
And I navigate to "Courses > Course default settings" in site administration
And I set the field "Show completion conditions" to "<siteshowcompletion>"
And I set the field "Show activity completion conditions" to "<siteshowcompletion>"
And I press "Save changes"
When I navigate to "Courses > Add a new course" in site administration
Then the field "showcompletionconditions" matches value "<expected>"
......@@ -67,14 +67,14 @@ Feature: Allow teachers to edit the visibility of completion conditions in a cou
Scenario Outline: Default showcompletionconditions displayed when editing a course with disabled completion tracking
Given I log in as "admin"
And I navigate to "Courses > Course default settings" in site administration
And I set the field "Show completion conditions" to "<siteshowcompletion>"
And I set the field "Show activity completion conditions" to "<siteshowcompletion>"
And I press "Save changes"
And I am on "Course 1" course homepage with editing mode on
And I navigate to "Edit settings" in current page administration
And I set the field "Enable completion tracking" to "No"
And I press "Save and display"
And I navigate to "Edit settings" in current page administration
Then the field "Show completion conditions" matches value "<expected>"
Then the field "Show activity completion conditions" matches value "<expected>"
Examples:
| siteshowcompletion | expected |
......
......@@ -207,7 +207,7 @@ Feature: Render H5P content using filters
And I click on "Save and display" "button"
And I switch to "h5p-iframe" class iframe
# Library is disabled, so an error should be displayed.
Then I should see "This file can't be displayed because its content-type is disabled."
Then I should see "This file can't be displayed because its content type is disabled."
And I should not see "Lorum ipsum"
And I switch to the main frame
And I navigate to "H5P > Manage H5P content types" in site administration
......@@ -220,7 +220,7 @@ Feature: Render H5P content using filters
# Switch to iframe created by embed.php page.
And I switch to "h5p-iframe" class iframe
And I should see "Lorum ipsum"
And I should not see "This file can't be displayed because its content-type is disabled."
And I should not see "This file can't be displayed because its content type is disabled."
And I switch to the main frame
And I navigate to "H5P > Manage H5P content types" in site administration
And I click on "Disable" "link" in the "Accordion" "table_row"
......@@ -228,6 +228,6 @@ Feature: Render H5P content using filters
# Library is disabled again, so an error should be displayed.
And I follow "PageName1"
And I switch to "h5p-iframe" class iframe
And I should see "This file can't be displayed because its content-type is disabled."
And I should see "This file can't be displayed because its content type is disabled."
And I should not see "Lorum ipsum"
And I switch to the main frame
......@@ -13,4 +13,4 @@ Feature: We can use the user report
And I am on "Course 1" course homepage
And I navigate to "View > User report" in the course gradebook
And I select "All users (0)" from the "Select all or one user" singleselect
Then I should see "No students enrolled in this course yet"
Then I should see "There are no students enrolled in this course."
......@@ -133,7 +133,7 @@ class secondary_test extends \advanced_testcase {
*/
public function test_setting_initialise_provider(): array {
return [
'Testing in a course context' => ['course', 'coursehome', 'courseheader', 'Course Page'],
'Testing in a course context' => ['course', 'coursehome', 'courseheader', 'Course page'],
'Testing in a module context' => ['module', 'modulepage', 'activityheader', 'Activity'],
'Testing in a site admin' => ['system', 'siteadminnode', 'menu', 'Site administration'],
];
......
......@@ -25,7 +25,7 @@ Feature: In an assignment, teacher can view the feedback for a previous attempt.
| Description | Submit your PDF file |
| assignsubmission_file_enabled | 1 |
| Maximum number of uploaded files | 2 |
| Attempts reopened | Manually |
| Additional attempts | Manually |
| Maximum attempts | Unlimited |
And I log out
And I log in as "student1"
......
......@@ -24,7 +24,7 @@ Feature: In an assignment, students start a new attempt based on their previous
| Description | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 |
| assignsubmission_file_enabled | 0 |
| Attempts reopened | Manually |
| Additional attempts | Manually |
| Hide grader identity from students | Yes |
And I log out
And I log in as "student1"
......@@ -96,7 +96,7 @@ Feature: In an assignment, students start a new attempt based on their previous
| assignsubmission_onlinetext_enabled | 1 |
| assignsubmission_file_enabled | 0 |
| Students submit in groups | Yes |
| Attempts reopened | Manually |
| Additional attempts | Manually |
| Maximum attempts | 3 |
| Group mode | Separate groups |
And I log out
......
......@@ -22,7 +22,7 @@ Feature: View activity completion in the assignment activity
And I expand all fieldsets
And I set the following fields to these values:
| Enable completion tracking | Yes |
| Show completion conditions | Yes |
| Show activity completion conditions | Yes |
And I press "Save and display"
And the following "activity" exists:
| activity | assign |
......@@ -35,7 +35,7 @@ Feature: View activity completion in the assignment activity
| grade[modgrade_point] | 100 |
@javascript
Scenario: The manual completion button will be shown on the course page if the Show completion conditions is set to Yes
Scenario: The manual completion button will be shown on the course page if the Show activity completion conditions is set to Yes
Given I am on "Course 1" course homepage
# Teacher view.
And the manual completion button for "Music history" should exist
......@@ -50,11 +50,11 @@ Feature: View activity completion in the assignment activity
And the manual completion button of "Music history" is displayed as "Done"
@javascript
Scenario: The manual completion button will not be shown on the course page if the Show completion conditions is set to No
Scenario: The manual completion button will not be shown on the course page if the Show activity completion conditions is set to No
Given I am on "Course 1" course homepage with editing mode on
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "Show completion conditions" to "No"
And I set the field "Show activity completion conditions" to "No"
And I press "Save and display"
# Teacher view.
And the manual completion button for "Music history" should not exist
......
......@@ -26,7 +26,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
| Description | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 |
| assignfeedback_comments_enabled | 1 |
| Attempts reopened | Manually |
| Additional attempts | Manually |
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
......
......@@ -171,12 +171,12 @@ Feature: View the grading status of an assignment
| Online text | I'm the student's second submission |
And I press "Save changes"
And I log out
# Teacher marks the submission again after noticing the 'Graded - follow up submission received'.
# Teacher marks the submission again after noticing the 'Graded - follow-up submission received'.
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And I should see "Graded - follow up submission received" in the "Student 1" "table_row"
And I should see "Graded - follow-up submission received" in the "Student 1" "table_row"
And I wait "10" seconds
And I click on "Grade" "link" in the "Student 1" "table_row"
And I should see "1 of 1"
......
......@@ -168,7 +168,7 @@ Feature: Group assignment submissions
| assignsubmission_onlinetext_enabled | 1 |
| assignsubmission_file_enabled | 0 |
| Students submit in groups | Yes |
| Attempts reopened | Manually |
| Additional attempts | Manually |
| Group mode | No groups |
| Require group to make submission | No |
And I log out
......
......@@ -25,7 +25,7 @@ Feature: Submissions are unlocked when a new attempt is given
| Assignment name | Test assignment name |
| Description | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 |
| Attempts reopened | Automatically until pass |
| Additional attempts | Automatically until pass |
| Grade to pass | 50 |
And I log out
And I log in as "student1"
......@@ -59,7 +59,7 @@ Feature: Submissions are unlocked when a new attempt is given
| Assignment name | Test assignment name |
| Description | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 |
| Attempts reopened | Manually |
| Additional attempts | Manually |
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
......
......@@ -22,7 +22,7 @@ Feature: View activity completion information in the book activity
And I expand all fieldsets
And I set the following fields to these values:
| Enable completion tracking | Yes |
| Show completion conditions | Yes |
| Show activity completion conditions | Yes |
And I press "Save and display"
And the following "activity" exists:
| activity | book |
......
......@@ -22,7 +22,7 @@ Feature: View activity completion information in the chat activity
And I expand all fieldsets
And I set the following fields to these values:
| Enable completion tracking | Yes |
| Show completion conditions | Yes |
| Show activity completion conditions | Yes |
And I press "Save and display"
And I log out
......
......@@ -22,7 +22,7 @@ Feature: View activity completion in the database activity
And I expand all fieldsets
And I set the following fields to these values:
| Enable completion tracking | Yes |
| Show completion conditions | Yes |
| Show activity completion conditions | Yes |
And I press "Save and display"
And the following "activity" exists:
| activity | data |
......
......@@ -22,7 +22,7 @@ Feature: View activity completion in the feedback activity
And I expand all fieldsets
And I set the following fields to these values:
| Enable completion tracking | Yes |
| Show completion conditions | Yes |
| Show activity completion conditions | Yes |
And I press "Save and display"
And the following "activity" exists:
| activity | feedback |
......
......@@ -22,7 +22,7 @@ Feature: View activity completion information in the folder activity
And I expand all fieldsets
And I set the following fields to these values:
| Enable completion tracking | Yes |
| Show completion conditions | Yes |
| Show activity completion conditions | Yes |
And I press "Save and display"
And I log out
......
......@@ -22,7 +22,7 @@ Feature: View activity completion in the forum activity
And I expand all fieldsets
And I set the following fields to these values:
| Enable completion tracking | Yes |
| Show completion conditions | Yes |
| Show activity completion conditions | Yes |
And I press "Save and display"
And the following "activity" exists:
| activity | forum |
......
......@@ -22,7 +22,7 @@ Feature: View activity completion in the glossary activity
And I expand all fieldsets
And I set the following fields to these values:
| Enable completion tracking | Yes |
| Show completion conditions | Yes |
| Show activity completion conditions | Yes |
And I press "Save and display"
And the following "activity" exists:
| activity | glossary |
......
......@@ -22,7 +22,7 @@ Feature: View activity completion information in the h5p activity
And I expand all fieldsets
And I set the following fields to these values:
| Enable completion tracking | Yes |
| Show completion conditions | Yes |
| Show activity completion conditions | Yes |
And I press "Save and display"
And I am on "Course 1" course homepage with editing mode on
And I add a "H5P" to section "1"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment