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

This commit is contained in:
David Mudrák 2021-12-06 21:39:35 +01:00
parent 558b4c826d
commit 46e2e2020d
16 changed files with 47 additions and 47 deletions

View file

@ -81,7 +81,7 @@ Feature: Enable Block Completion in a course using activity completion
And I follow "View all submissions" And I follow "View all submissions"
And I click on "Grade" "link" in the "Student" "table_row" And I click on "Grade" "link" in the "Student" "table_row"
And I set the field "Grade out of 100" to "53" And I set the field "Grade out of 100" to "53"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage with editing mode on And I am on "Course 1" course homepage with editing mode on
And I add the "Course completion status" block And I add the "Course completion status" block
@ -115,7 +115,7 @@ Feature: Enable Block Completion in a course using activity completion
And I follow "View all submissions" And I follow "View all submissions"
And I click on "Grade" "link" in the "Student" "table_row" And I click on "Grade" "link" in the "Student" "table_row"
And I set the field "Grade out of 100" to "49" And I set the field "Grade out of 100" to "49"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage with editing mode on And I am on "Course 1" course homepage with editing mode on
And I add the "Course completion status" block And I add the "Course completion status" block

View file

@ -9,7 +9,7 @@ Feature: Course summary block used on the frontpage
And I am on site homepage And I am on site homepage
And I turn editing mode on And I turn editing mode on
And I add the "Course/site summary" block And I add the "Course/site summary" block
And I navigate to "Front page > Front page settings" in site administration And I navigate to "Site home > Site home settings" in site administration
And I set the following fields to these values: And I set the following fields to these values:
| summary | Proved the summary block works! | | summary | Proved the summary block works! |
And I press "Save changes" And I press "Save changes"

View file

@ -58,7 +58,7 @@ Feature: Add URL to main menu block
And I add the "Main menu" block And I add the "Main menu" block
And I configure the "Main menu" block And I configure the "Main menu" block
And I set the following fields to these values: And I set the following fields to these values:
| Page contexts | Display on the front page and any pages added to the front page | | Page contexts | Display on the site home and any pages added to the site home. |
And I press "Save changes" And I press "Save changes"
And I add a "URL" to section "0" and I fill the form with: And I add a "URL" to section "0" and I fill the form with:
| Name | reference link | | Name | reference link |

View file

@ -29,30 +29,30 @@ Feature: Activities content download can be controlled
| downloadcoursecontentallowed | 1 | | downloadcoursecontentallowed | 1 |
And I log out And I log out
Scenario: "Include in course downloads (if that feature is enabled)" field default is set to "Yes" if nothing has been set Scenario: "Include in course content download" field default is set to "Yes" if nothing has been set
Given I am on the Page1 "Page Activity editing" page logged in as admin Given I am on the Page1 "Page Activity editing" page logged in as admin
Then the field "Include in course downloads (if that feature is enabled)" matches value "Yes" Then the field "Include in course content download" matches value "Yes"
Scenario: "Include in course downloads (if that feature is enabled)" field is not visible if course content is disabled on site level Scenario: "Include in course content download" field is not visible if course content is disabled on site level
Given I log in as "admin" Given I log in as "admin"
And the following config values are set as admin: And the following config values are set as admin:
| downloadcoursecontentallowed | 0 | | downloadcoursecontentallowed | 0 |
And I am on the Page1 "Page Activity editing" page And I am on the Page1 "Page Activity editing" page
Then "Include in course downloads (if that feature is enabled)" "select" should not exist Then "Include in course content download" "select" should not exist
Scenario: "Include in course downloads (if that feature is enabled)" field is visible even if course content is disabled on course level Scenario: "Include in course content download" field is visible even if course content is disabled on course level
Given I log in as "admin" Given I log in as "admin"
And I am on "Course 1" course homepage And I am on "Course 1" course homepage
And I navigate to "Settings" in current page administration And I navigate to "Settings" in current page administration
When I set the field "Enable download course content" to "No" When I set the field "Enable download course content" to "No"
And I press "Save and display" And I press "Save and display"
And I am on the Page1 "Page Activity editing" page And I am on the Page1 "Page Activity editing" page
Then "Include in course downloads (if that feature is enabled)" "select" should exist Then "Include in course content download" "select" should exist
Scenario: "Include in course downloads (if that feature is enabled)" field should be visible but not editable for users without configuredownloadcontent capability Scenario: "Include in course content download" field should be visible but not editable for users without configuredownloadcontent capability
Given I log in as "manager1" Given I log in as "manager1"
And I am on the Folder1 "Folder Activity editing" page And I am on the Folder1 "Folder Activity editing" page
And "Include in course downloads (if that feature is enabled)" "field" should exist And "Include in course content download" "field" should exist
And I log out And I log out
And I log in as "admin" And I log in as "admin"
When I set the following system permissions of "Manager" role: When I set the following system permissions of "Manager" role:
@ -61,6 +61,6 @@ Feature: Activities content download can be controlled
And I log out And I log out
And I log in as "manager1" And I log in as "manager1"
And I am on the Folder1 "Folder Activity editing" page And I am on the Folder1 "Folder Activity editing" page
Then I should see "Include in course downloads (if that feature is enabled)" Then I should see "Include in course content download"
And I should see "No" And I should see "No"
And "Include in course downloads (if that feature is enabled)" "select" should not exist And "Include in course content download" "select" should not exist

View file

@ -1,5 +1,5 @@
@core @core_course @core @core_course
Feature: Front page displays items in different modes Feature: Site home displays items in different modes
In order to show a clean and clear list of the site categories and course In order to show a clean and clear list of the site categories and course
As an admin As an admin
I need to set different frontpage display modes I need to set different frontpage display modes
@ -27,7 +27,7 @@ Feature: Front page displays items in different modes
@javascript @javascript
Scenario: Displays a list of categories Scenario: Displays a list of categories
When I set the following administration settings values: When I set the following administration settings values:
| Front page items when logged in | List of categories | | Site home items when logged in | List of categories |
| Maximum category depth | 2 | | Maximum category depth | 2 |
And I am on site homepage And I am on site homepage
Then I should see "Category A" in the "region-main" "region" Then I should see "Category A" in the "region-main" "region"
@ -43,7 +43,7 @@ Feature: Front page displays items in different modes
@javascript @javascript
Scenario: Displays a combo list Scenario: Displays a combo list
When I set the following administration settings values: When I set the following administration settings values:
| Front page items when logged in | Combo list | | Site home items when logged in | Combo list |
| Maximum category depth | 2 | | Maximum category depth | 2 |
And I am on site homepage And I am on site homepage
Then I should see "Category A" in the "region-main" "region" Then I should see "Category A" in the "region-main" "region"

View file

@ -1,5 +1,5 @@
@core @core_course @core @core_course
Feature: Front page topic section Feature: Site home topic section
In order to show a display activities in the frontpage In order to show a display activities in the frontpage
As an admin As an admin
I need to edit the frontpage topic section I need to edit the frontpage topic section

View file

@ -115,7 +115,7 @@ Feature: View activity completion in the assignment activity
And I follow "View all submissions" And I follow "View all submissions"
And I click on "Grade" "link" in the "Vinnie Student1" "table_row" And I click on "Grade" "link" in the "Vinnie Student1" "table_row"
And I set the field "Grade out of 100" to "33" And I set the field "Grade out of 100" to "33"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I follow "View all submissions" And I follow "View all submissions"
And I log out And I log out

View file

@ -57,7 +57,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Grade out of 100" to "50" And I set the field "Grade out of 100" to "50"
And I set the field "Marking workflow state" to "In review" And I set the field "Marking workflow state" to "In review"
And I set the field "Feedback comments" to "Great job!" And I set the field "Feedback comments" to "Great job!"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions" And I follow "View all submissions"
@ -66,7 +66,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Grade out of 100" to "50" And I set the field "Grade out of 100" to "50"
And I set the field "Marking workflow state" to "In review" And I set the field "Marking workflow state" to "In review"
And I set the field "Feedback comments" to "Great job!" And I set the field "Feedback comments" to "Great job!"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions" And I follow "View all submissions"
@ -81,7 +81,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
Then I should not see "Student 1 (student1@example.com)" Then I should not see "Student 1 (student1@example.com)"
And I should not see "Student 2 (student2@example.com)" And I should not see "Student 2 (student2@example.com)"
And I set the field "Marking workflow state" to "Released" And I set the field "Marking workflow state" to "Released"
And I set the field "Notify students" to "No" And I set the field "Notify student" to "No"
And I press "Save changes" And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions" And I follow "View all submissions"
@ -129,7 +129,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
Then I should see "Student 1 (student1@example.com)" Then I should see "Student 1 (student1@example.com)"
And I should see "Student 2 (student2@example.com)" And I should see "Student 2 (student2@example.com)"
And I set the field "Marking workflow state" to "Released" And I set the field "Marking workflow state" to "Released"
And I set the field "Notify students" to "No" And I set the field "Notify student" to "No"
And I press "Save changes" And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions" And I follow "View all submissions"

View file

@ -31,7 +31,7 @@ Feature: Check that the assignment grade can be updated correctly
Then I follow "View all submissions" Then I follow "View all submissions"
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50" And I set the field "Grade out of 100" to "50"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I follow "View all submissions" And I follow "View all submissions"
And "Student 1" row "Grade" column of "generaltable" table should contain "50.00" And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
@ -65,7 +65,7 @@ Feature: Check that the assignment grade can be updated correctly
When I follow "View all submissions" When I follow "View all submissions"
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50" And I set the field "Grade out of 100" to "50"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I follow "View all submissions" And I follow "View all submissions"
Then "Student 1" row "Grade" column of "generaltable" table should contain "50.00" Then "Student 1" row "Grade" column of "generaltable" table should contain "50.00"

View file

@ -35,7 +35,7 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
And I follow "View all submissions" And I follow "View all submissions"
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "allocatedmarker" to "Marker 1" And I set the field "allocatedmarker" to "Marker 1"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I click on "Edit settings" "link" And I click on "Edit settings" "link"

View file

@ -42,7 +42,7 @@ Feature: In an assignment, teachers can change filters in the grading app
And I should not see "Test assignment name &" And I should not see "Test assignment name &"
And I set the field "allocatedmarker" to "Marker 1" And I set the field "allocatedmarker" to "Marker 1"
And I set the field "workflowstate" to "In marking" And I set the field "workflowstate" to "In marking"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I am on the "Test assignment name &" Activity page And I am on the "Test assignment name &" Activity page
@ -62,7 +62,7 @@ Feature: In an assignment, teachers can change filters in the grading app
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "allocatedmarker" to "Marker 1" And I set the field "allocatedmarker" to "Marker 1"
And I set the field "workflowstate" to "In marking" And I set the field "workflowstate" to "In marking"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I am on the "Test assignment name &" Activity page And I am on the "Test assignment name &" Activity page

View file

@ -46,7 +46,7 @@ Feature: View the grading status of an assignment
And I set the field "Grade out of 100" to "50" And I set the field "Grade out of 100" to "50"
And I set the field "Marking workflow state" to "In review" And I set the field "Marking workflow state" to "In review"
And I set the field "Feedback comments" to "Great job! Lol, not really." And I set the field "Feedback comments" to "Great job! Lol, not really."
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions" And I follow "View all submissions"
@ -80,7 +80,7 @@ Feature: View the grading status of an assignment
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I should see "1 of 1" And I should see "1 of 1"
And I set the field "Marking workflow state" to "In marking" And I set the field "Marking workflow state" to "In marking"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions" And I follow "View all submissions"

View file

@ -40,7 +40,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I set the field "Grade out of 100" to "50" And I set the field "Grade out of 100" to "50"
And I set the field "Marking workflow state" to "In review" And I set the field "Marking workflow state" to "In review"
And I set the field "Feedback comments" to "Great job! Lol, not really." And I set the field "Feedback comments" to "Great job! Lol, not really."
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I follow "View all submissions" And I follow "View all submissions"
And I should see "In review" in the "I'm the student's first submission" "table_row" And I should see "In review" in the "I'm the student's first submission" "table_row"
@ -49,7 +49,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
Scenario: Student identities are revealed after releasing the grades. Scenario: Student identities are revealed after releasing the grades.
When I click on "Grade" "link" in the "I'm the student's first submission" "table_row" When I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
And I set the field "Marking workflow state" to "Ready for release" And I set the field "Marking workflow state" to "Ready for release"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I follow "View all submissions" And I follow "View all submissions"
And I should see "Ready for release" in the "I'm the student's first submission" "table_row" And I should see "Ready for release" in the "I'm the student's first submission" "table_row"
@ -71,7 +71,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
Scenario: Student identities are revealed before releasing the grades. Scenario: Student identities are revealed before releasing the grades.
When I click on "Grade" "link" in the "I'm the student's first submission" "table_row" When I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
And I set the field "Marking workflow state" to "Ready for release" And I set the field "Marking workflow state" to "Ready for release"
And I set the field "Notify students" to "0" And I set the field "Notify student" to "0"
And I press "Save changes" And I press "Save changes"
And I follow "View all submissions" And I follow "View all submissions"
And I should see "Ready for release" in the "I'm the student's first submission" "table_row" And I should see "Ready for release" in the "I'm the student's first submission" "table_row"

View file

@ -63,7 +63,7 @@ Feature: Anonymous feedback
@javascript @javascript
Scenario: Complete anonymous feedback and view analysis on the front page as an authenticated user Scenario: Complete anonymous feedback and view analysis on the front page as an authenticated user
And I log in as "admin" And I log in as "admin"
And I set the following system permissions of "Authenticated user on frontpage" role: And I set the following system permissions of "Authenticated user on site home" role:
| capability | permission | | capability | permission |
| mod/feedback:viewanalysepage | Allow | | mod/feedback:viewanalysepage | Allow |
And I log out And I log out

View file

@ -59,7 +59,7 @@ Feature: Non anonymous feedback
@javascript @javascript
Scenario: Complete non anonymous feedback and view analysis on the front page as an authenticated user Scenario: Complete non anonymous feedback and view analysis on the front page as an authenticated user
And I log in as "admin" And I log in as "admin"
And I set the following system permissions of "Authenticated user on frontpage" role: And I set the following system permissions of "Authenticated user on site home" role:
| capability | permission | | capability | permission |
| mod/feedback:viewanalysepage | Allow | | mod/feedback:viewanalysepage | Allow |
And I log out And I log out

View file

@ -111,12 +111,12 @@ Feature: Show statistics in question bank
And I select "Questions" from the "questionbankactionselect" singleselect And I select "Questions" from the "questionbankactionselect" singleselect
When I navigate to "Question bank" in current page administration When I navigate to "Question bank" in current page administration
And I select "Questions" from the "questionbankactionselect" singleselect And I select "Questions" from the "questionbankactionselect" singleselect
And I should see "likely" in the "TF1" "table_row" And I should see "Likely" in the "TF1" "table_row"
And I should see "unlikely" in the "TF2" "table_row" And I should see "Unlikely" in the "TF2" "table_row"
And I should see "unlikely" in the "TF3" "table_row" And I should see "Unlikely" in the "TF3" "table_row"
And I should see "likely" in the "TF4" "table_row" And I should see "Likely" in the "TF4" "table_row"
And I should see "likely" in the ".alert-warning" "css_element" And I should see "Likely" in the ".alert-warning" "css_element"
And I should see "unlikely" in the ".alert-success" "css_element" And I should see "Unlikely" in the ".alert-success" "css_element"
Scenario: View discrimination index in question bank, bad questions Scenario: View discrimination index in question bank, bad questions
Given user "student1" has attempted "Quiz 2" with responses: Given user "student1" has attempted "Quiz 2" with responses:
@ -134,9 +134,9 @@ Feature: Show statistics in question bank
When I am on the "Course 1" course page logged in as admin When I am on the "Course 1" course page logged in as admin
When I navigate to "Question bank" in current page administration When I navigate to "Question bank" in current page administration
And I select "Questions" from the "questionbankactionselect" singleselect And I select "Questions" from the "questionbankactionselect" singleselect
And I should see "likely" in the "TF1" "table_row" And I should see "Likely" in the "TF1" "table_row"
And I should see "very likely" in the "TF2" "table_row" And I should see "Very likely" in the "TF2" "table_row"
And I should see "very likely" in the "TF3" "table_row" And I should see "Very likely" in the "TF3" "table_row"
And I should see "likely" in the "TF4" "table_row" And I should see "Likely" in the "TF4" "table_row"
And I should see "very likely" in the ".alert-danger" "css_element" And I should see "Very likely" in the ".alert-danger" "css_element"
And I should see "likely" in the ".alert-warning" "css_element" And I should see "Likely" in the ".alert-warning" "css_element"