MDL-77416 lang: Use fixed strings in tests
This commit is contained in:
@@ -20,7 +20,7 @@ Feature: Contact the privacy officer
|
||||
And I click on "Send" "button" in the "Contact the privacy officer" "dialogue"
|
||||
Then I should see "Your request has been submitted to the privacy officer"
|
||||
And I click on "Data requests" "link"
|
||||
And I should see "Hello DPO!" in the "General inquiry" "table_row"
|
||||
And I should see "Hello DPO!" in the "General enquiry" "table_row"
|
||||
|
||||
Scenario: Contacting the privacy officer when not enabled
|
||||
When I log in as "student1"
|
||||
|
||||
@@ -462,7 +462,7 @@ Feature: User must accept policy managed by this plugin when logging in and sign
|
||||
And I am on site homepage
|
||||
And I change window size to "large"
|
||||
And I follow "Log in"
|
||||
When I press "Log in as a guest"
|
||||
When I press "Access as a guest"
|
||||
Then I should see "If you continue browsing this website, you agree to our policies"
|
||||
# Confirm when navigating, the pop-up policies are displayed.
|
||||
When I am on the "My courses" page
|
||||
@@ -626,7 +626,7 @@ Feature: User must accept policy managed by this plugin when logging in and sign
|
||||
And I am on site homepage
|
||||
And I follow "Log in"
|
||||
# First log in as a guest
|
||||
And I press "Log in as a guest"
|
||||
And I press "Access as a guest"
|
||||
# Now sign up
|
||||
And I follow "Log in"
|
||||
When I click on "Create new account" "link"
|
||||
|
||||
@@ -55,7 +55,7 @@ Feature: display_availability
|
||||
And I set the field "x[month]" to "March"
|
||||
And I press "Save and return to course"
|
||||
|
||||
# Add a Page with 2 restrictions - one is set to hide from students if failed.
|
||||
# Add a Page with 2 restrictions - one is set to Hide on course page if failed.
|
||||
And I add a "Page" to section "2"
|
||||
And I set the following fields to these values:
|
||||
| Name | Page 2 |
|
||||
|
||||
@@ -57,8 +57,8 @@ Feature: Edit activities in main menu block
|
||||
And I click on "Edit settings" "link" in the "My forum name" activity in site main menu block
|
||||
And I expand all fieldsets
|
||||
And the "Availability" select box should contain "Show on course page"
|
||||
And the "Availability" select box should contain "Hide from students"
|
||||
And the field "Availability" matches value "Make available but not shown on course page"
|
||||
And the "Availability" select box should contain "Hide on course page"
|
||||
And the field "Availability" matches value "Make available but don't show on course page"
|
||||
And I press "Save and return to course"
|
||||
And "My forum name" activity in site main menu block should be available but hidden from course page
|
||||
And I turn editing mode off
|
||||
|
||||
@@ -67,8 +67,8 @@ Feature: Edit activities in social activities block
|
||||
And I click on "Edit settings" "link" in the "My forum name" activity in social activities block
|
||||
And I expand all fieldsets
|
||||
And the "Availability" select box should contain "Show on course page"
|
||||
And the "Availability" select box should contain "Hide from students"
|
||||
And the field "Availability" matches value "Make available but not shown on course page"
|
||||
And the "Availability" select box should contain "Hide on course page"
|
||||
And the field "Availability" matches value "Make available but don't show on course page"
|
||||
And I press "Save and return to course"
|
||||
And "My forum name" activity in social activities block should be available but hidden from course page
|
||||
And I turn editing mode off
|
||||
|
||||
@@ -57,8 +57,8 @@ Feature: Toggle activities visibility from the course page
|
||||
And I click on "Edit settings" "link" in the "Test forum name" activity
|
||||
And I expand all fieldsets
|
||||
And the "Availability" select box should contain "Show on course page"
|
||||
And the "Availability" select box should not contain "Make available but not shown on course page"
|
||||
And the field "Availability" matches value "Hide from students"
|
||||
And the "Availability" select box should not contain "Make available but don't show on course page"
|
||||
And the field "Availability" matches value "Hide on course page"
|
||||
And I press "Save and return to course"
|
||||
And "Test forum name" activity should be hidden
|
||||
And I turn editing mode off
|
||||
@@ -100,10 +100,10 @@ Feature: Toggle activities visibility from the course page
|
||||
And I open "Test forum name" actions menu
|
||||
And I click on "Edit settings" "link" in the "Test forum name" activity
|
||||
And I expand all fieldsets
|
||||
And the "Availability" select box should contain "Hide from students"
|
||||
And the "Availability" select box should contain "Make available but not shown on course page"
|
||||
And the "Availability" select box should contain "Hide on course page"
|
||||
And the "Availability" select box should contain "Make available but don't show on course page"
|
||||
And the "Availability" select box should not contain "Show on course page"
|
||||
And I set the field "Availability" to "Make available but not shown on course page"
|
||||
And I set the field "Availability" to "Make available but don't show on course page"
|
||||
And I press "Save and return to course"
|
||||
And "Test forum name" activity should be available but hidden from course page
|
||||
And I turn editing mode off
|
||||
@@ -142,8 +142,8 @@ Feature: Toggle activities visibility from the course page
|
||||
And I click on "Edit settings" "link" in the "Test assignment name" activity
|
||||
And I expand all fieldsets
|
||||
And the "Availability" select box should contain "Show on course page"
|
||||
And the "Availability" select box should contain "Hide from students"
|
||||
And the field "Availability" matches value "Make available but not shown on course page"
|
||||
And the "Availability" select box should contain "Hide on course page"
|
||||
And the field "Availability" matches value "Make available but don't show on course page"
|
||||
And I press "Save and return to course"
|
||||
And "Test assignment name" activity should be available but hidden from course page
|
||||
And I turn editing mode off
|
||||
|
||||
@@ -21,7 +21,7 @@ Feature: Show/hide course sections
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test hidden forum 11 name |
|
||||
| Description | Test hidden forum 11 description |
|
||||
| Availability | Hide from students |
|
||||
| Availability | Hide on course page |
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test hidden forum 12 name |
|
||||
| Description | Test hidden forum 12 description |
|
||||
@@ -29,7 +29,7 @@ Feature: Show/hide course sections
|
||||
And I add a "Forum" to section "2" and I fill the form with:
|
||||
| Forum name | Test hidden forum 21 name |
|
||||
| Description | Test hidden forum 21 description |
|
||||
| Availability | Hide from students |
|
||||
| Availability | Hide on course page |
|
||||
And I add a "Forum" to section "2" and I fill the form with:
|
||||
| Forum name | Test hidden forum 22 name |
|
||||
| Description | Test hidden forum 22 description |
|
||||
@@ -37,7 +37,7 @@ Feature: Show/hide course sections
|
||||
And I add a "Forum" to section "3" and I fill the form with:
|
||||
| Forum name | Test hidden forum 31 name |
|
||||
| Description | Test hidden forum 31 description |
|
||||
| Availability | Hide from students |
|
||||
| Availability | Hide on course page |
|
||||
And I add a "Forum" to section "3" and I fill the form with:
|
||||
| Forum name | Test hidden forum 32 name |
|
||||
| Description | Test hidden forum 32 description |
|
||||
|
||||
@@ -25,7 +25,7 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
|
||||
| Custom instance name | Test student enrolment |
|
||||
And I log out
|
||||
When I am on "Course 1" course homepage
|
||||
And I press "Log in as a guest"
|
||||
And I press "Access as a guest"
|
||||
Then I should see "Guests cannot access this course. Please log in."
|
||||
And I press "Continue"
|
||||
And I should see "Log in"
|
||||
|
||||
@@ -208,7 +208,7 @@ Feature: Assign user override
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Availability" to "Hide from students"
|
||||
And I set the field "Availability" to "Hide on course page"
|
||||
And I click on "Save and display" "button"
|
||||
When I navigate to "Overrides" in current page administration
|
||||
And I press "Add user override"
|
||||
|
||||
@@ -57,5 +57,5 @@ Feature: Add forum activities and discussions
|
||||
| Forum type | single |
|
||||
| Group mode | 1 |
|
||||
When I press "Save and display"
|
||||
Then I should see "Separate groups cannot be used with single discussion topic"
|
||||
And I should see "Single discussion topic cannot be used with separate groups"
|
||||
Then I should see "Separate groups can't be used with a single simple discussion."
|
||||
And I should see "A single simple discussion can't be used with separate groups."
|
||||
|
||||
@@ -97,7 +97,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||
And I am on the "Forced Forum 2" "forum activity editing" page
|
||||
And I set the following fields to these values:
|
||||
| Subscription mode | Forced subscription |
|
||||
| Availability | Hide from students |
|
||||
| Availability | Hide on course page |
|
||||
And I press "Save and return to course"
|
||||
And I am on the "Forced Forum 2" "forum activity" page
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
|
||||
@@ -28,7 +28,7 @@ Feature: Guest and not logged users could see the option to add new post or repl
|
||||
| Message | How awesome is this forum discussion? |
|
||||
And I log out
|
||||
And I am on "Course 1" course homepage
|
||||
When I press "Log in as a guest"
|
||||
When I press "Access as a guest"
|
||||
And I am on the "Forum" "forum activity" page
|
||||
Then I should not see "Add discussion topic"
|
||||
And I should see "Forum discussion 1"
|
||||
@@ -47,7 +47,7 @@ Feature: Guest and not logged users could see the option to add new post or repl
|
||||
| forum | Forum (single discussion) | C1 | forum | single |
|
||||
And I log out
|
||||
And I am on "Course 1" course homepage
|
||||
When I press "Log in as a guest"
|
||||
When I press "Access as a guest"
|
||||
And I am on the "Forum (single discussion)" "forum activity" page
|
||||
Then I should not see "Add discussion topic"
|
||||
And I should see "Forum (single discussion)"
|
||||
@@ -62,7 +62,7 @@ Feature: Guest and not logged users could see the option to add new post or repl
|
||||
| Message | How awesome is this forum discussion? |
|
||||
And I log out
|
||||
And I am on "Course 1" course homepage
|
||||
When I press "Log in as a guest"
|
||||
When I press "Access as a guest"
|
||||
And I am on the "Forum" "forum activity" page
|
||||
Then I should not see "Add discussion topic"
|
||||
And I should see "Forum discussion 1"
|
||||
@@ -79,7 +79,7 @@ Feature: Guest and not logged users could see the option to add new post or repl
|
||||
| Message | How awesome is this forum discussion? |
|
||||
And I log out
|
||||
And I am on "Course 1" course homepage
|
||||
When I press "Log in as a guest"
|
||||
When I press "Access as a guest"
|
||||
And I am on the "Forum" "forum activity" page
|
||||
Then I should see "Add discussion topic"
|
||||
And I click on "Add discussion topic" "link"
|
||||
@@ -107,7 +107,7 @@ Feature: Guest and not logged users could see the option to add new post or repl
|
||||
| forum | Forum (single discussion) | C1 | forum | single |
|
||||
And I log out
|
||||
And I am on "Course 1" course homepage
|
||||
When I press "Log in as a guest"
|
||||
When I press "Access as a guest"
|
||||
And I am on the "Forum (single discussion)" "forum activity" page
|
||||
And I should see "Forum (single discussion)"
|
||||
Then I should see "Reply"
|
||||
@@ -130,7 +130,7 @@ Feature: Guest and not logged users could see the option to add new post or repl
|
||||
| Message | How awesome is this forum discussion? |
|
||||
And I log out
|
||||
And I am on "Course 1" course homepage
|
||||
When I press "Log in as a guest"
|
||||
When I press "Access as a guest"
|
||||
And I am on the "Forum" "forum activity" page
|
||||
Then I should see "Add discussion topic"
|
||||
And I click on "Add discussion topic" "link"
|
||||
|
||||
@@ -42,6 +42,6 @@ Feature: Students can reply to a discussion in page.
|
||||
| post | Discussion contents 1, third message |
|
||||
| privatereply | 1 |
|
||||
Then I should see "Discussion contents 1, third message"
|
||||
Then I should see "This is a private reply. It is only visible to you and anyone with the capability to view private replies, such as teachers or managers."
|
||||
Then I should see "This is a private reply. (Teachers and other users with the capability to view private replies can also see it.)"
|
||||
When I reload the page
|
||||
Then I should see "Discussion contents 1, third message"
|
||||
|
||||
@@ -57,8 +57,8 @@ Feature: Check label visibility works
|
||||
And "Swanky label" actions menu should not have "Make unavailable" item
|
||||
And I click on "Edit settings" "link" in the "Swanky label" activity
|
||||
And I expand all fieldsets
|
||||
And the "Availability" select box should contain "Hide from students"
|
||||
And the "Availability" select box should not contain "Make available but not shown on course page"
|
||||
And the "Availability" select box should contain "Hide on course page"
|
||||
And the "Availability" select box should not contain "Make available but don't show on course page"
|
||||
And the "Availability" select box should not contain "Show on course page"
|
||||
And I log out
|
||||
And I log in as "student"
|
||||
|
||||
@@ -329,7 +329,7 @@ Feature: Lesson user override
|
||||
Scenario: Create a user override when the lesson is not available to the student
|
||||
Given I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1
|
||||
And I expand all fieldsets
|
||||
And I set the field "Availability" to "Hide from students"
|
||||
And I set the field "Availability" to "Hide on course page"
|
||||
And I click on "Save and display" "button"
|
||||
When I navigate to "Overrides" in current page administration
|
||||
And I follow "Add user override"
|
||||
|
||||
@@ -344,8 +344,8 @@ class rule_test extends \advanced_testcase {
|
||||
// Check that correct error message is returned.
|
||||
$errormsg = $this->make_rule()->prevent_access();
|
||||
$this->assertNotEmpty($errormsg);
|
||||
$this->assertStringContainsString("The config key or browser exam keys could not be validated. "
|
||||
. "Please ensure you are using the Safe Exam Browser with correct configuration file.", $errormsg);
|
||||
$this->assertStringContainsString("The Safe Exam Browser keys could not be validated. "
|
||||
. "Check that you're using Safe Exam Browser with the correct configuration file.", $errormsg);
|
||||
$this->assertStringContainsString($this->get_seb_download_link(), $errormsg);
|
||||
$this->assertStringContainsString($this->get_seb_launch_link(), $errormsg);
|
||||
$this->assertStringContainsString($this->get_seb_config_download_link(), $errormsg);
|
||||
@@ -601,8 +601,8 @@ class rule_test extends \advanced_testcase {
|
||||
// Check that correct error message is returned.
|
||||
$errormsg = $this->make_rule()->prevent_access();
|
||||
$this->assertNotEmpty($errormsg);
|
||||
$this->assertStringContainsString("The config key or browser exam keys could not be validated. "
|
||||
. "Please ensure you are using the Safe Exam Browser with correct configuration file.", $errormsg);
|
||||
$this->assertStringContainsString("The Safe Exam Browser keys could not be validated. "
|
||||
. "Check that you're using Safe Exam Browser with the correct configuration file.", $errormsg);
|
||||
|
||||
if ($downloadseblink) {
|
||||
$this->assertStringContainsString($this->get_seb_download_link(), $errormsg);
|
||||
|
||||
Reference in New Issue
Block a user