MDL-57281 behat: deprecated step definition I navigate to node in

Definition step deprecated and affected tests modified.
This commit is contained in:
Víctor Déniz Falcón
2018-08-20 12:53:26 +01:00
parent a9428fab11
commit 02fda279ed
233 changed files with 711 additions and 581 deletions
@@ -10,7 +10,7 @@ Feature: Enable multiple accounts to have the same email address
Scenario: Enable registration of multiple accounts with the same email address
Given the following config values are set as admin:
| allowaccountssameemail | 1 |
When I navigate to "Add a new user" node in "Site administration>Users>Accounts"
When I navigate to "Users > Accounts > Add a new user" in site administration
And I set the following fields to these values:
| Username | testmultiemailuser1 |
| Choose an authentication method | Manual accounts |
@@ -35,7 +35,7 @@ Feature: Enable multiple accounts to have the same email address
Scenario: Disable registration of multiple accounts with the same email address
Given the following config values are set as admin:
| allowaccountssameemail | 0 |
When I navigate to "Add a new user" node in "Site administration>Users>Accounts"
When I navigate to "Users > Accounts > Add a new user" in site administration
And I set the following fields to these values:
| Username | testmultiemailuser1 |
| Choose an authentication method | Manual accounts |
@@ -20,7 +20,7 @@ Feature: Manage availability conditions
And the following config values are set as admin:
| enableavailability | 1 |
And I am on homepage
And I navigate to "Manage restrictions" node in "Site administration > Plugins > Availability restrictions"
And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
# Having clicked on it, I should also see the list of plugins.
And I should see "Restriction by date"
@@ -34,7 +34,7 @@ Feature: Manage availability conditions
| Course 1 | C1 | topics |
And I log in as "admin"
And I am on site homepage
When I navigate to "Manage restrictions" node in "Site administration > Plugins > Availability restrictions"
When I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
# Check the icon is there (it should be a Hide icon, meaning is currently visible).
Then "Hide" "icon" should exist in the "Restriction by date" "table_row"
@@ -286,7 +286,7 @@ Feature: Set up contextual data for tests
| student1 | CHSB |
| student1 | CHC |
When I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > Cohorts" in site administration
Then the following should exist in the "cohorts" table:
| Name | Cohort size |
| System cohort A | 1 |
@@ -34,7 +34,7 @@ Feature: Verify that all form fields values can be get and set
| wiki | C1 | wiki1 | Test this one | Test this one | Test this one | collaborative | 0 |
And I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Reset" node in "Course administration"
And I navigate to "Reset" in current page administration
# Select (multi-select) - Checking "the select box should contain".
And I expand all fieldsets
And the "Unenrol users" select box should contain "No roles"
@@ -131,12 +131,12 @@ Feature: Verify that all form fields values can be get and set
And the field "two" matches value ""
# Check if field xpath set/match works.
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the field with xpath "//input[@id='id_idnumber']" to "Course id number"
And the field with xpath "//input[@name='idnumber']" matches value "Course id number"
And the field with xpath "//input[@name='idnumber']" does not match value ""
And I press "Save and display"
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And the field "Course ID number" matches value "Course id number"
Scenario: with JS disabled all form fields getters and setters works as expected
@@ -7,7 +7,7 @@ Feature: List the system steps definitions
Background:
Given I am on homepage
And I log in as "admin"
And I navigate to "Acceptance testing" node in "Site administration > Development"
And I navigate to "Development > Acceptance testing" in site administration
@javascript
Scenario: Accessing the list
@@ -6,7 +6,7 @@ Feature: Add customised file types
Scenario: Add a new file type
Given I log in as "admin"
And I navigate to "File types" node in "Site administration > Server"
And I navigate to "Server > File types" in site administration
And I press "Add"
# Try setting all the form fields, not just the optional ones.
And I set the following fields to these values:
@@ -24,7 +24,7 @@ Feature: Add customised file types
Scenario: Update an existing file type
Given I log in as "admin"
And I navigate to "File types" node in "Site administration > Server"
And I navigate to "Server > File types" in site administration
When I click on "Edit 7z" "link"
And I set the following fields to these values:
| Extension | doc |
@@ -37,7 +37,7 @@ Feature: Add customised file types
Scenario: Change the text option (was buggy)
Given I log in as "admin"
And I navigate to "File types" node in "Site administration > Server"
And I navigate to "Server > File types" in site administration
When I click on "Edit 7z" "link"
And I set the following fields to these values:
| Description type | Custom description specified in this form |
@@ -51,7 +51,7 @@ Feature: Add customised file types
Scenario: Try to select a text option without entering a value.
Given I log in as "admin"
And I navigate to "File types" node in "Site administration > Server"
And I navigate to "Server > File types" in site administration
When I click on "Edit dmg" "link"
And I set the field "Description type" to "Custom description"
And I press "Save changes"
@@ -66,7 +66,7 @@ Feature: Add customised file types
Scenario: Delete an existing file type
Given I log in as "admin"
And I navigate to "File types" node in "Site administration > Server"
And I navigate to "Server > File types" in site administration
When I click on "Delete 7z" "link"
Then I should see "Are you absolutely sure you want to remove .7z?"
And I press "Yes"
@@ -74,7 +74,7 @@ Feature: Add customised file types
Scenario: Delete a custom file type
Given I log in as "admin"
And I navigate to "File types" node in "Site administration > Server"
And I navigate to "Server > File types" in site administration
And I press "Add"
And I set the following fields to these values:
| Extension | frog |
@@ -86,7 +86,7 @@ Feature: Add customised file types
Scenario: Revert changes to deleted file type
Given I log in as "admin"
And I navigate to "File types" node in "Site administration > Server"
And I navigate to "Server > File types" in site administration
When I click on "Delete 7z" "link"
And I press "Yes"
And I follow "Restore 7z to Moodle defaults"
@@ -95,7 +95,7 @@ Feature: Add customised file types
Scenario: Revert changes to updated file type
Given I log in as "admin"
And I navigate to "File types" node in "Site administration > Server"
And I navigate to "Server > File types" in site administration
And I click on "Edit 7z" "link"
And I set the following fields to these values:
| Type groups | document |
@@ -110,7 +110,7 @@ Feature: Add customised file types
| fullname | shortname |
| Course 1 | C1 |
And I log in as "admin"
And I navigate to "File types" node in "Site administration > Server"
And I navigate to "Server > File types" in site administration
And I press "Add"
And I set the following fields to these values:
| Extension | frog |
@@ -13,14 +13,14 @@ Feature: View the httpsreplace report
@javascript
Scenario: Go to the HTTPS replace report screen. Make sure broken domains are reported.
When I navigate to "HTTP security" node in "Site administration > Security"
When I navigate to "Security > HTTP security" in site administration
And I follow "HTTPS conversion tool"
And I press "Continue"
Then I should see "intentionally.unavailable"
@javascript
Scenario: Use the find and replace tool.
When I navigate to "HTTP security" node in "Site administration > Security"
When I navigate to "Security > HTTP security" in site administration
And I follow "HTTPS conversion tool"
And I press "Continue"
And I set the field "I understand the risks of this operation" to "1"
@@ -11,29 +11,29 @@ Feature: Manage language packs
Scenario: Install language pack
Given I log in as "admin"
And I navigate to "Language packs" node in "Site administration > Language"
And I navigate to "Language > Language packs" in site administration
When I set the field "Available language packs" to "en_ar"
And I press "Install selected language pack(s)"
Then I should see "Language pack 'en_ar' was successfully installed"
And the "Installed language packs" select box should contain "en_ar"
And I navigate to "Live logs" node in "Site administration > Reports"
And I navigate to "Reports > Live logs" in site administration
And I should see "The language pack 'en_ar' was installed."
And I log out
Scenario: Update language pack
Given outdated langpack 'en_ar' is installed
And I log in as "admin"
And I navigate to "Language packs" node in "Site administration > Language"
And I navigate to "Language > Language packs" in site administration
When I press "Update all installed language packs"
Then I should see "Language pack 'en_ar' was successfully updated"
And I should see "Language pack update completed"
And I navigate to "Live logs" node in "Site administration > Reports"
And I navigate to "Reports > Live logs" in site administration
And I should see "The language pack 'en_ar' was updated."
And I log out
Scenario: Try to uninstall language pack
Given I log in as "admin"
And I navigate to "Language packs" node in "Site administration > Language"
And I navigate to "Language > Language packs" in site administration
And I set the field "Available language packs" to "en_ar"
And I press "Install selected language pack(s)"
When I set the field "Installed language packs" to "en_ar"
@@ -42,17 +42,17 @@ Feature: Manage language packs
Then I should see "Language pack 'en_ar' was uninstalled"
And the "Installed language packs" select box should not contain "en_ar"
And the "Available language packs" select box should contain "en_ar"
And I navigate to "Live logs" node in "Site administration > Reports"
And I navigate to "Reports > Live logs" in site administration
And I should see "The language pack 'en_ar' was removed."
And I should see "Language pack uninstalled"
And I log out
Scenario: Try to uninstall English language pack
Given I log in as "admin"
And I navigate to "Language packs" node in "Site administration > Language"
And I navigate to "Language > Language packs" in site administration
When I set the field "Installed language packs" to "en"
And I press "Uninstall selected language pack(s)"
Then I should see "The English language pack cannot be uninstalled."
And I navigate to "Live logs" node in "Site administration > Reports"
And I navigate to "Reports > Live logs" in site administration
And I should not see "Language pack uninstalled"
And I log out
@@ -6,7 +6,7 @@ Feature: Enable/disable managment of the event monitor
Scenario: Tool is disabled by default.
Given I log in as "admin"
When I navigate to "Event monitoring rules" node in "Site administration > Reports"
When I navigate to "Reports > Event monitoring rules" in site administration
Then I should see "Event monitoring is currently disabled"
And I should see "Enable"
And I should not see "Add a new rule"
+11 -11
View File
@@ -15,10 +15,10 @@ Feature: tool_monitor_rule
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Event monitoring rules" node in "Site administration > Reports"
And I navigate to "Reports > Event monitoring rules" in site administration
And I click on "Enable" "link"
And I am on "Course 1" course homepage
And I navigate to "Event monitoring rules" node in "Course administration > Reports"
And I navigate to "Reports > Event monitoring rules" in current page administration
And I press "Add a new rule"
And I set the following fields to these values:
| name | New rule course level |
@@ -29,7 +29,7 @@ Feature: tool_monitor_rule
| minutes | 1 |
| Notification message | The forum post was created. {modulelink} |
And I press "Save changes"
And I navigate to "Event monitoring rules" node in "Site administration > Reports"
And I navigate to "Reports > Event monitoring rules" in site administration
And I press "Add a new rule"
And I set the following fields to these values:
| name | New rule site level |
@@ -45,7 +45,7 @@ Feature: tool_monitor_rule
Scenario: Add a rule on course level
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Event monitoring rules" node in "Course administration > Reports"
And I navigate to "Reports > Event monitoring rules" in current page administration
When I press "Add a new rule"
And I set the following fields to these values:
| name | New rule |
@@ -65,7 +65,7 @@ Feature: tool_monitor_rule
Scenario: Delete a rule on course level
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Event monitoring rules" node in "Course administration > Reports"
And I navigate to "Reports > Event monitoring rules" in current page administration
When I click on "Delete rule" "link"
Then I should see "Are you sure you want to delete the rule \"New rule course level\"?"
And I press "Continue"
@@ -75,7 +75,7 @@ Feature: tool_monitor_rule
Scenario: Edit a rule on course level
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Event monitoring rules" node in "Course administration > Reports"
And I navigate to "Reports > Event monitoring rules" in current page administration
When I click on "Edit rule" "link"
And I set the following fields to these values:
| name | New rule quiz |
@@ -94,7 +94,7 @@ Feature: tool_monitor_rule
Scenario: Duplicate a rule on course level
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Event monitoring rules" node in "Course administration > Reports"
And I navigate to "Reports > Event monitoring rules" in current page administration
When I click on "Duplicate rule" "link" in the "New rule course level" "table_row"
Then I should see "Rule successfully duplicated"
And "#toolmonitorrules_r1" "css_element" should appear before "#toolmonitorrules_r2" "css_element"
@@ -106,7 +106,7 @@ Feature: tool_monitor_rule
Scenario: Add a rule on site level
Given I log in as "admin"
And I navigate to "Event monitoring rules" node in "Site administration > Reports"
And I navigate to "Reports > Event monitoring rules" in site administration
When I press "Add a new rule"
And I set the following fields to these values:
| name | New rule |
@@ -125,7 +125,7 @@ Feature: tool_monitor_rule
Scenario: Delete a rule on site level
Given I log in as "admin"
And I navigate to "Event monitoring rules" node in "Site administration > Reports"
And I navigate to "Reports > Event monitoring rules" in site administration
When I click on "Delete rule" "link"
Then I should see "Are you sure you want to delete the rule \"New rule site level\"?"
And I press "Continue"
@@ -134,7 +134,7 @@ Feature: tool_monitor_rule
Scenario: Edit a rule on site level
Given I log in as "admin"
And I navigate to "Event monitoring rules" node in "Site administration > Reports"
And I navigate to "Reports > Event monitoring rules" in site administration
When I click on "Edit rule" "link"
And I set the following fields to these values:
| name | New Rule Quiz |
@@ -153,7 +153,7 @@ Feature: tool_monitor_rule
Scenario: Duplicate a rule on site level
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Event monitoring rules" node in "Course administration > Reports"
And I navigate to "Reports > Event monitoring rules" in current page administration
When I click on "Duplicate rule" "link" in the "New rule site level" "table_row"
Then I should see "Rule successfully duplicated"
And "#toolmonitorrules_r2" "css_element" should appear after "#toolmonitorrules_r1" "css_element"
@@ -20,10 +20,10 @@ Feature: tool_monitor_subscriptions
| teacher2 | C1 | teacher |
| teacher2 | C2 | editingteacher |
And I log in as "admin"
And I navigate to "Event monitoring rules" node in "Site administration > Reports"
And I navigate to "Reports > Event monitoring rules" in site administration
And I click on "Enable" "link"
And I am on "Course 1" course homepage
And I navigate to "Event monitoring rules" node in "Course administration > Reports"
And I navigate to "Reports > Event monitoring rules" in current page administration
And I press "Add a new rule"
And I set the following fields to these values:
| name | New rule course level |
@@ -34,7 +34,7 @@ Feature: tool_monitor_subscriptions
| minutes | 1 |
| Notification message | The course was viewed. {modulelink} |
And I press "Save changes"
And I navigate to "Event monitoring rules" node in "Site administration > Reports"
And I navigate to "Reports > Event monitoring rules" in site administration
And I press "Add a new rule"
And I set the following fields to these values:
| name | New rule site level |
@@ -45,7 +45,7 @@ Feature: tool_monitor_subscriptions
| minutes | 1 |
| Notification message | The course was viewed. {modulelink} |
And I press "Save changes"
And I navigate to "Define roles" node in "Site administration > Users > Permissions"
And I navigate to "Users > Permissions > Define roles" in site administration
And I follow "Non-editing teacher"
And I press "Edit"
And I click on "tool/monitor:managerules" "checkbox"
@@ -364,7 +364,7 @@ Feature: User must accept policy managed by this plugin when logging in and sign
And I log out
# Create new policy document.
And I log in as "admin"
And I navigate to "Manage policies" node in "Site administration > Users > Privacy and policies"
And I navigate to "Users > Privacy and policies > Manage policies" in site administration
And I should see "Policies and agreements"
And I should see "New policy"
And I follow "New policy"
@@ -419,7 +419,7 @@ Feature: User must accept policy managed by this plugin when logging in and sign
And I log out
# Create new version of the policy document.
And I log in as "admin"
And I navigate to "Manage policies" node in "Site administration > Users > Privacy and policies"
And I navigate to "Users > Privacy and policies > Manage policies" in site administration
When I follow "Actions"
Then I should see "View"
And I should see "Edit"
@@ -57,7 +57,7 @@ Feature: Backup user data
And I am on "Course 1" course homepage with editing mode on
And I delete "Quiz 1" activity
And I run all adhoc tasks
And I navigate to "Recycle bin" node in "Course administration"
And I navigate to "Recycle bin" in current page administration
And I should see "Quiz 1"
And I click on "Restore" "link" in the "region-main" "region"
And I log out
@@ -48,7 +48,7 @@ Feature: Basic recycle bin functionality
| Assignment name | Test assign |
| Description | Test |
And I delete "Test assign" activity
When I navigate to "Recycle bin" node in "Course administration"
When I navigate to "Recycle bin" in current page administration
Then I should see "Test assign"
And I should see "Contents will be permanently deleted after 7 days"
And I click on "Restore" "link" in the "region-main" "region"
@@ -77,7 +77,7 @@ Feature: Basic recycle bin functionality
And I go to the courses management page
And I should see "Course 2" in the "#course-listing" "css_element"
And I am on "Course 2" course homepage
And I navigate to "Groups" node in "Course administration > Users"
And I navigate to "Users > Groups" in current page administration
And I follow "Overview"
And "Student 1" "text" should exist in the "Group A" "table_row"
And "Student 2" "text" should exist in the "Group A" "table_row"
@@ -92,7 +92,7 @@ Feature: Basic recycle bin functionality
| Description | Test |
And I delete "Test assign" activity
And I run all adhoc tasks
And I navigate to "Recycle bin" node in "Course administration"
And I navigate to "Recycle bin" in current page administration
When I click on "Delete" "link"
Then I should see "Are you sure you want to delete the selected item from the recycle bin?"
And I press "Cancel"
@@ -115,7 +115,7 @@ Feature: Basic recycle bin functionality
And I delete "Test assign 1" activity
And I delete "Test assign 2" activity
And I run all adhoc tasks
And I navigate to "Recycle bin" node in "Course administration"
And I navigate to "Recycle bin" in current page administration
And I should see "Test assign 1"
And I should see "Test assign 2"
When I click on "Delete all" "link"
@@ -7,7 +7,7 @@ Feature: Clear scheduled task fail delay
Background:
Given the scheduled task "\core\task\send_new_user_passwords_task" has a fail delay of "60" seconds
And I log in as "admin"
And I navigate to "Scheduled tasks" node in "Site administration > Server"
And I navigate to "Server > Scheduled tasks" in site administration
Scenario: Clear fail delay
When I click on "Clear" "text" in the "Send new user passwords" "table_row"
@@ -6,7 +6,7 @@ Feature: Manage scheduled tasks
Background:
Given I log in as "admin"
And I navigate to "Scheduled tasks" node in "Site administration > Server"
And I navigate to "Server > Scheduled tasks" in site administration
Scenario: Disable scheduled task
When I click on "Edit task schedule: Log table cleanup" "link" in the "Log table cleanup" "table_row"
@@ -6,7 +6,7 @@ Feature: Run tasks from web interface
Scenario: Run a task
Given I log in as "admin"
When I navigate to "Scheduled tasks" node in "Site administration > Server"
When I navigate to "Server > Scheduled tasks" in site administration
Then I should see "Never" in the "Log table cleanup" "table_row"
And I click on "Run now" "text" in the "Log table cleanup" "table_row"
@@ -21,7 +21,7 @@ Feature: Run tasks from web interface
Scenario: Cancel running a task
Given I log in as "admin"
When I navigate to "Scheduled tasks" node in "Site administration > Server"
When I navigate to "Server > Scheduled tasks" in site administration
And I click on "Run now" "text" in the "Log table cleanup" "table_row"
And I press "Cancel"
# Confirm we're back on the scheduled tasks page by looking for the table.
@@ -31,5 +31,5 @@ Feature: Run tasks from web interface
Given the following config values are set as admin:
| enablerunnow | 0 | tool_task |
When I log in as "admin"
And I navigate to "Scheduled tasks" node in "Site administration > Server"
And I navigate to "Server > Scheduled tasks" in site administration
Then I should not see "Run now"
@@ -9,7 +9,7 @@ Feature: An admin can create courses using a CSV file
| fullname | shortname | category |
| First course | C1 | 0 |
And I log in as "admin"
And I navigate to "Upload courses" node in "Site administration > Courses"
And I navigate to "Courses > Upload courses" in site administration
@javascript
Scenario: Creation of unexisting courses
@@ -9,7 +9,7 @@ Feature: An admin can update courses using a CSV file
| fullname | shortname | category |
| Some random name | C1 | 0 |
And I log in as "admin"
And I navigate to "Upload courses" node in "Site administration > Courses"
And I navigate to "Courses > Upload courses" in site administration
@javascript
Scenario: Updating a course fullname
@@ -14,7 +14,7 @@ Feature: Upload users
| Section 1 | math102 | S1 |
| Section 3 | math102 | S3 |
And I log in as "admin"
And I navigate to "Upload users" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Upload users" in site administration
When I upload "lib/tests/fixtures/upload_users.csv" file to "File" filemanager
And I press "Upload users"
Then I should see "Upload users preview"
@@ -48,7 +48,7 @@ Feature: Upload users
| Section 1 | math102 | S1 |
| Section 3 | math102 | S3 |
And I log in as "admin"
And I navigate to "Upload users" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > Upload users" in site administration
When I upload "lib/tests/fixtures/upload_users.csv" file to "File" filemanager
And I press "Upload users"
And I set the following fields to these values:
@@ -67,19 +67,19 @@ Feature: Upload users
Scenario: Upload users with custom profile fields
# Create user profile field.
Given I log in as "admin"
And I navigate to "User profile fields" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > User profile fields" in site administration
And I set the field "datatype" to "Text area"
And I set the following fields to these values:
| Short name | superfield |
| Name | Super field |
And I click on "Save changes" "button"
# Upload users.
When I navigate to "Upload users" node in "Site administration > Users > Accounts"
When I navigate to "Users > Accounts > Upload users" in site administration
And I upload "lib/tests/fixtures/upload_users_profile.csv" file to "File" filemanager
And I press "Upload users"
And I press "Upload users"
# Check that users were created and the superfield is filled.
And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > Browse list of users" in site administration
And I follow "Tom Jones"
And I should see "Super field"
And I should see "The big guy"
@@ -90,12 +90,9 @@ class behat_tool_usertours extends behat_base {
* @Given /^I open the User tour settings page$/
*/
public function i_open_the_user_tour_settings_page() {
$this->execute('behat_navigation::i_navigate_to_node_in', [
get_string('usertours', 'tool_usertours'),
implode(' > ', [
get_string('administrationsite', 'moodle'),
get_string('appearance', 'admin'),
])
]);
$this->execute('behat_navigation::i_navigate_to_in_site_administration',
get_string('appearance', 'admin') . ' > ' .
get_string('usertours', 'tool_usertours')
);
}
}
@@ -6,7 +6,7 @@ Feature: Test validation of 'Age of digital consent' setting.
Background:
Given I log in as "admin"
And I navigate to "Privacy settings" node in "Site administration > Users > Privacy and policies"
And I navigate to "Users > Privacy and policies > Privacy settings" in site administration
Scenario: Admin provides valid value for 'Age of digital consent'.
Given I set the field "s__agedigitalconsentmap" to multiline:
@@ -20,7 +20,7 @@ Feature: Confirm that conditions on completion no longer cause a bug
# Set up course.
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "Enable completion tracking" to "Yes"
And I press "Save and display"
@@ -64,7 +64,7 @@ Feature: availability_profile
Scenario: Test with custom user profile field
# Add custom field.
Given I log in as "admin"
And I navigate to "User profile fields" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > User profile fields" in site administration
And I set the field "datatype" to "Text input"
And I set the following fields to these values:
| Short name | superfield |
@@ -72,7 +72,7 @@ Feature: availability_profile
And I click on "Save changes" "button"
# Set field value for user.
And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > Browse list of users" in site administration
And I click on ".icon[title=Edit]" "css_element" in the "s@example.com" "table_row"
And I expand all fieldsets
And I set the field "Super field" to "Bananaman"
@@ -30,7 +30,7 @@ Feature: Option to include groups and groupings when importing a course to anoth
Scenario: Include groups and groupings when importing a course to another course
Given I import "Course 1" course into "Course 2" course using this options:
| Initial | Include groups and groupings | 1 |
When I navigate to "Groups" node in "Course administration > Users"
When I navigate to "Users > Groups" in current page administration
Then I should see "Group 1"
And I should see "Group 2"
And I follow "Groupings"
@@ -40,7 +40,7 @@ Feature: Option to include groups and groupings when importing a course to anoth
Scenario: Do not include groups and groupings when importing a course to another course
Given I import "Course 1" course into "Course 2" course using this options:
| Initial | Include groups and groupings | 0 |
When I navigate to "Groups" node in "Course administration > Users"
When I navigate to "Users > Groups" in current page administration
Then I should not see "Group 1"
And I should not see "Group 2"
And I follow "Groupings"
@@ -42,7 +42,7 @@ Feature: Restore Moodle 2 course backups
And I should see "Test forum name"
And I should see "Topic 15"
And I should not see "Topic 16"
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And the field "id_format" matches value "Topics format"
And I press "Cancel"
@@ -66,7 +66,7 @@ Feature: Restore Moodle 2 course backups
And I add a "Forum" to section "1" and I fill the form with:
| Forum name | Test forum post backup name |
| Description | Test forum post backup description |
And I navigate to "Restore" node in "Course administration"
And I navigate to "Restore" in current page administration
And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options:
| Schema | Section 3 | 0 |
Then I should see "Course 1"
@@ -82,7 +82,7 @@ Feature: Restore Moodle 2 course backups
When I restore "test_backup.mbz" backup into a new course using this options:
Then I should see "Topic 1"
And I should see "Test forum name"
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And the field "id_format" matches value "Topics format"
And I set the following fields to these values:
@@ -94,14 +94,14 @@ Feature: Restore Moodle 2 course backups
And I press "Save and display"
And I should see "1 January - 7 January"
And I should see "Test forum name"
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And the field "id_format" matches value "Weekly format"
And I set the following fields to these values:
| id_format | Social format |
And I press "Save and display"
And I should see "An open forum for chatting about anything you want to"
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And the field "id_format" matches value "Social format"
And I press "Cancel"
@@ -118,7 +118,7 @@ Feature: Restore Moodle 2 course backups
| Confirmation | Filename | test_backup.mbz |
And I restore "test_backup.mbz" backup into "Course 2" course using this options:
| Schema | Overwrite course configuration | Yes |
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
Then the field "id_format" matches value "Topics format"
And the field "Course layout" matches value "Show one section per page"
@@ -144,7 +144,7 @@ Feature: Restore Moodle 2 course backups
| Confirmation | Filename | test_backup.mbz |
And I restore "test_backup.mbz" backup into "Course 2" course using this options:
| Schema | Overwrite course configuration | No |
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
Then the field "id_format" matches value "Topics format"
And the field "Course short name" matches value "C2"
@@ -170,10 +170,10 @@ Feature: Restore Moodle 2 course backups
| Initial | Include enrolled users | 0 |
| Confirmation | Filename | test_backup.mbz |
And I am on "Course 2" course homepage
And I navigate to "Restore" node in "Course administration"
And I navigate to "Restore" in current page administration
And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options:
| Schema | Overwrite course configuration | Yes |
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
Then the field "id_format" matches value "Topics format"
And the field "Course layout" matches value "Show one section per page"
@@ -199,10 +199,10 @@ Feature: Restore Moodle 2 course backups
| Initial | Include enrolled users | 0 |
| Confirmation | Filename | test_backup.mbz |
And I am on "Course 2" course homepage
And I navigate to "Restore" node in "Course administration"
And I navigate to "Restore" in current page administration
And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options:
| Schema | Overwrite course configuration | No |
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
Then the field "id_format" matches value "Topics format"
And the field "Course short name" matches value "C2"
@@ -228,10 +228,10 @@ Feature: Restore Moodle 2 course backups
| Initial | Include enrolled users | 0 |
| Confirmation | Filename | test_backup.mbz |
And I am on "Course 4" course homepage
And I navigate to "Restore" node in "Course administration"
And I navigate to "Restore" in current page administration
And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options:
| Schema | Overwrite course configuration | No |
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
Then the field "id_format" matches value "Topics format"
And the field "Course short name" matches value "C4"
@@ -96,11 +96,11 @@ Feature: Restore Moodle 2 course backups with different user data settings
@javascript
Scenario: Restore a backup with user data with site config for including users set to 0
Given I navigate to "General restore defaults" node in "Site administration > Courses > Backups"
Given I navigate to "Courses > Backups > General restore defaults" in site administration
And I set the field "s_restore_restore_general_users" to ""
And I press "Save changes"
And I am on "Course 1" course homepage
And I navigate to "Restore" node in "Course administration"
And I navigate to "Restore" in current page administration
# "User data" marks the user data field for the section
# "-" marks the user data field for the data activity
And I restore "test_backup.mbz" backup into a new course using this options:
@@ -113,11 +113,11 @@ Feature: Restore Moodle 2 course backups with different user data settings
@javascript
Scenario: Restore a backup with user data with local and site config config for including users set to 0
Given I navigate to "General restore defaults" node in "Site administration > Courses > Backups"
Given I navigate to "Courses > Backups > General restore defaults" in site administration
And I set the field "s_restore_restore_general_users" to ""
And I press "Save changes"
And I am on "Course 1" course homepage
And I navigate to "Restore" node in "Course administration"
And I navigate to "Restore" in current page administration
When I restore "test_backup.mbz" backup into a new course using this options:
| Settings | Include enrolled users | 0 |
Then I should see "Test database name"
+4 -3
View File
@@ -10,7 +10,7 @@ Feature: Add badges to the system
@javascript
Scenario: Setting badges settings
Given I navigate to "Badges settings" node in "Site administration > Badges"
Given I navigate to "Badges > Badges settings" in site administration
And I set the field "Default badge issuer name" to "Test Badge Site"
And I set the field "Default badge issuer contact details" to "testuser@example.com"
And I press "Save changes"
@@ -24,12 +24,13 @@ Feature: Add badges to the system
And I press "Customise this page"
# TODO MDL-57120 site "Badges" link not accessible without navigation block.
And I add the "Navigation" block if not present
Given I navigate to "Site badges" node in "Site pages"
And I click on "Site pages" "list_item" in the "Navigation" "block"
Given I click on "Site badges" "link" in the "Navigation" "block"
Then I should see "There are no badges available."
@javascript @_file_upload
Scenario: Add a badge
Given I navigate to "Add a new badge" node in "Site administration > Badges"
Given I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Test badge with 'apostrophe' and other friends (<>&@#) |
| Description | Test badge description |
+15 -13
View File
@@ -20,7 +20,7 @@ Feature: Award badges
And I log in as "teacher1"
And I am on "Course 1" course homepage
# Create course badge 1.
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge 1 |
@@ -37,7 +37,8 @@ Feature: Award badges
And I press "Enable access"
And I press "Continue"
# Badge #2
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I am on "Course 1" course homepage
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge 2 |
@@ -72,7 +73,7 @@ Feature: Award badges
@javascript
Scenario: Award profile badge
Given I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Profile Badge |
| Description | Test badge description |
@@ -110,7 +111,7 @@ Feature: Award badges
| teacher | teacher | 1 | teacher1@example.com |
| student | student | 1 | student1@example.com |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge |
| Description | Site badge description |
@@ -152,7 +153,7 @@ Feature: Award badges
| student2 | C1 | student |
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge |
@@ -194,7 +195,7 @@ Feature: Award badges
| student1 | C1 | student |
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Enable completion tracking | Yes |
And I press "Save and display"
@@ -204,7 +205,7 @@ Feature: Award badges
| Description | Submit your online text |
| id_completion | 1 |
And I am on "Course 1" course homepage
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge |
@@ -243,7 +244,7 @@ Feature: Award badges
| student1 | C1 | student |
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Enable completion tracking | Yes |
And I press "Save and display"
@@ -253,13 +254,13 @@ Feature: Award badges
| Description | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 |
| id_completion | 1 |
And I navigate to "Course completion" node in "Course administration"
And I navigate to "Course completion" in current page administration
And I set the field "id_overall_aggregation" to "2"
And I click on "Condition: Activity completion" "link"
And I set the field "Assignment - Test assignment name" to "1"
And I press "Save changes"
And I am on "Course 1" course homepage
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge |
@@ -309,7 +310,7 @@ Feature: Award badges
And I log in as "teacher1"
And I am on "Course 1" course homepage
# Create course badge 1.
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge 1 |
@@ -334,7 +335,8 @@ Feature: Award badges
And I follow "Recipients (1)"
Then I should see "Recipients (1)"
# Add course badge 2.
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I am on "Course 1" course homepage
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge 2 |
@@ -391,7 +393,7 @@ Feature: Award badges
| student2 | C1 | student |
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge |
+12 -12
View File
@@ -19,7 +19,7 @@ Feature: Award badges based on cohort
| user1 | CH1 |
| user2 | CH2 |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge |
| Description | Site badge description |
@@ -55,7 +55,7 @@ Feature: Award badges based on cohort
| user2 | CH1 |
| user2 | CH3 |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge |
| Description | Site badge description |
@@ -96,7 +96,7 @@ Feature: Award badges based on cohort
| user3 | CH2 |
| user3 | CH3 |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge |
| Description | Site badge description |
@@ -133,7 +133,7 @@ Feature: Award badges based on cohort
| user1 | CH1 |
| user2 | CH2 |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge |
| Description | Site badge description |
@@ -184,7 +184,7 @@ Feature: Award badges based on cohort
| user2 | CH2 |
| user3 | CH2 |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge |
| Description | Site badge description |
@@ -241,7 +241,7 @@ Feature: Award badges based on cohort
| user2 | CH2 |
| user2 | CH2 |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge |
| Description | Site badge description |
@@ -298,7 +298,7 @@ Feature: Award badges based on cohort
| user2 | CH1 |
| user3 | CH2 |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge |
| Description | Site badge description |
@@ -356,7 +356,7 @@ Feature: Award badges based on cohort
| user1 | CH2 |
| user2 | CH2 |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge 1 |
| Description | Site badge description |
@@ -369,7 +369,7 @@ Feature: Award badges based on cohort
And I press "Enable access"
When I press "Continue"
And I should see "Recipients (1)"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge 2 |
| Description | Site badge description |
@@ -411,7 +411,7 @@ Feature: Award badges based on cohort
| user2 | Second | User | second@example.com |
| user3 | Third | User | third@example.com |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge 1 |
| Description | Site badge description |
@@ -426,7 +426,7 @@ Feature: Award badges based on cohort
And I press "Enable access"
When I press "Continue"
And I should see "Recipients (0)"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge 2 |
| Description | Site badge description |
@@ -440,7 +440,7 @@ Feature: Award badges based on cohort
And I press "Save"
And I press "Enable access"
And I press "Continue"
Then I navigate to "Cohorts" node in "Site administration > Users > Accounts"
Then I navigate to "Users > Accounts >Cohorts" in site administration
And I add "First User (first@example.com)" user to "CH1" cohort members
And I add "First User (first@example.com)" user to "CH2" cohort members
And I add "Second User (second@example.com)" user to "CH2" cohort members
+1 -1
View File
@@ -10,7 +10,7 @@ Feature: Award badges based on user profile field
| username | firstname | lastname | email |
| user1 | First | User | first@example.com |
And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Site Badge |
| Description | Site badge description |
+2 -2
View File
@@ -21,7 +21,7 @@ Feature: Test role visibility for the badge administration page
Scenario: Check the default roles are visible
Given I log in as "manager1"
And I am on "Course 1" course homepage
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge |
@@ -37,7 +37,7 @@ Feature: Test role visibility for the badge administration page
Scenario: Check hidden roles are not visible
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I follow "Add a new badge"
And I set the following fields to these values:
| Name | Course Badge |
@@ -6,14 +6,14 @@ Feature: Add a bookmarks to an admin pages
Background:
Given I log in as "admin"
And I navigate to "Scheduled tasks" node in "Site administration > Server"
And I navigate to "Server > Scheduled tasks" in site administration
And I click on "Bookmark this page" "link" in the "Admin bookmarks" "block"
And I log out
# Test bookmark functionality using the "User profile fields" page as our bookmark.
Scenario: Admin page can be bookmarked
Given I log in as "admin"
And I navigate to "User profile fields" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > User profile fields" in site administration
When I click on "Bookmark this page" "link" in the "Admin bookmarks" "block"
Then I should see "User profile fields" in the "Admin bookmarks" "block"
# See the existing bookmark is there too.
@@ -21,14 +21,14 @@ Feature: Add a bookmarks to an admin pages
Scenario: Admin page can be accessed through bookmarks block
Given I log in as "admin"
And I navigate to "Notifications" node in "Site administration"
And I navigate to "Notifications" in site administration
And I click on "Scheduled tasks" "link" in the "Admin bookmarks" "block"
# Verify that we are on the right page.
Then I should see "Scheduled tasks" in the "h1" "css_element"
Scenario: Admin page can be removed from bookmarks
Given I log in as "admin"
And I navigate to "Notifications" node in "Site administration"
And I navigate to "Notifications" in site administration
And I click on "Scheduled tasks" "link" in the "Admin bookmarks" "block"
When I click on "Unbookmark this page" "link" in the "Admin bookmarks" "block"
Then I should see "Bookmark deleted"
@@ -17,7 +17,7 @@ Feature: Enable Block Badges in a course
And I log in as "teacher1"
And I am on "Course 1" course homepage
# Issue badge 1 of 2
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I set the following fields to these values:
| id_name | Badge 1 |
| id_description | Badge 1 |
@@ -34,7 +34,8 @@ Feature: Enable Block Badges in a course
And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
And I press "Award badge"
# Issue Badge 2 of 2
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I am on "Course 1" course homepage
And I navigate to "Badges > Add a new badge" in current page administration
And I set the following fields to these values:
| id_name | Badge 2 |
| id_description | Badge 2 |
@@ -17,7 +17,7 @@ Feature: Enable Block Badges on the dashboard and view awarded badges
And I log in as "teacher1"
And I am on "Course 1" course homepage
# Issue badge 1 of 2
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I set the following fields to these values:
| id_name | Badge 1 |
| id_description | Badge 1 |
@@ -16,13 +16,13 @@ Feature: Enable Block Badges on the frontpage and view awarded badges
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Latest badges" block
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
# Issue badge 1 of 2
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I navigate to "Badges > Add a new badge" in current page administration
And I set the following fields to these values:
| id_name | Badge 1 |
| id_description | Badge 1 |
@@ -10,7 +10,7 @@ Feature: Enable Block blog menu on the frontpage
| student1 | Student | 1 | student1@example.com | S1 |
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Blog menu" block
And I log out
@@ -10,7 +10,7 @@ Feature: Feature: Students can use the recent blog entries block to view recent
| student1 | Student | 1 | student1@example.com | S1 |
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Recent blog entries" block
# TODO MDL-57120 site "Blogs" link not accessible without navigation block.
And I add the "Navigation" block if not present
@@ -19,7 +19,7 @@ Feature: Feature: Students can use the recent blog entries block to view recent
Scenario: Students use the recent blog entries block to view blogs
Given I log in as "student1"
And I am on site homepage
And I navigate to "Site blogs" node in "Site pages"
And I click on "Site blogs" "link" in the "Navigation" "block"
And I follow "Add a new entry"
When I set the following fields to these values:
| Entry title | S1 First Blog |
@@ -35,7 +35,7 @@ Feature: Feature: Students can use the recent blog entries block to view recent
Scenario: Students only see a few entries in the recent blog entries block
Given I log in as "student1"
And I am on site homepage
And I navigate to "Site blogs" node in "Site pages"
And I click on "Site blogs" "link" in the "Navigation" "block"
And I follow "Add a new entry"
# Blog 1 of 5
And I set the following fields to these values:
@@ -89,7 +89,7 @@ Feature: Feature: Students can use the recent blog entries block to view recent
Then I log out
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I configure the "Recent blog entries" block
And I set the following fields to these values:
| id_config_numberofrecentblogentries | 2 |
@@ -129,7 +129,7 @@ Feature: Enable the calendar block in a course and test it's functionality
| student2 | G2 |
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_groupmode | Separate groups |
| id_groupmodeforce | Yes |
@@ -167,7 +167,7 @@ Feature: Enable the calendar block in a course and test it's functionality
| student2 | G2 |
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_groupmode | Separate groups |
| id_groupmodeforce | Yes |
@@ -16,7 +16,7 @@ Feature: View a site event on the frontpage
| id_eventtype | Site |
| id_name | My Site Event |
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Upcoming events" block
And I log out
When I log in as "teacher1"
@@ -10,7 +10,7 @@ Feature: Enable Block comments on the frontpage and view comments
| teacher1 | Teacher | 1 | teacher1@example.com | T1 |
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Comments" block
And I follow "Show comments"
And I add "I'm a comment from admin" comment to comments block
@@ -20,7 +20,7 @@ Feature: Enable Block Completion in a course
Scenario: Add the block to a the course where completion is disabled
Given I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Enable completion tracking | No |
And I press "Save and display"
@@ -46,7 +46,7 @@ Feature: Enable Block Completion in a course
| Require view | 1 |
And I press "Save and return to course"
When I add the "Course completion status" block
And I navigate to "Course completion" node in "Course administration"
And I navigate to "Course completion" in current page administration
And I expand all fieldsets
And I set the following fields to these values:
| Test page name | 1 |
@@ -30,7 +30,7 @@ Feature: Enable Block Completion in a course using activity completion
| Require view | 1 |
And I press "Save and return to course"
And I add the "Course completion status" block
And I navigate to "Course completion" node in "Course administration"
And I navigate to "Course completion" in current page administration
And I expand all fieldsets
And I set the following fields to these values:
| Test page name | 1 |
@@ -51,7 +51,7 @@ Feature: Enable Block Completion in a course using activity completion
| Require view | 1 |
And I press "Save and return to course"
And I add the "Course completion status" block
And I navigate to "Course completion" node in "Course administration"
And I navigate to "Course completion" in current page administration
And I expand all fieldsets
And I set the following fields to these values:
| Test page name | 1 |
@@ -23,7 +23,7 @@ Feature: Enable Block Completion in a course using manual completion by others
Given I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I add the "Course completion status" block
And I navigate to "Course completion" node in "Course administration"
And I navigate to "Course completion" in current page administration
And I expand all fieldsets
And I set the following fields to these values:
| Teacher | 1 |
@@ -36,7 +36,7 @@ Feature: Enable Block Completion in a course using manual completion by others
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Course completion" node in "Course administration > Reports"
And I navigate to "Reports > Course completion" in current page administration
And I follow "Click to mark user complete"
# Running completion task just after clicking sometimes fail, as record
# should be created before the task runs.
@@ -55,7 +55,7 @@ Feature: Enable Block Completion in a course using manual completion by others
Given I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I add the "Course completion status" block
And I navigate to "Course completion" node in "Course administration"
And I navigate to "Course completion" in current page administration
And I expand all fieldsets
And I set the following fields to these values:
| Teacher | 1 |
@@ -71,7 +71,7 @@ Feature: Enable Block Completion in a course using manual completion by others
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Course completion" node in "Course administration > Reports"
And I navigate to "Reports > Course completion" in current page administration
And I follow "Click to mark user complete"
And I log out
And I log in as "student1"
@@ -85,7 +85,7 @@ Feature: Enable Block Completion in a course using manual completion by others
And I log out
And I log in as "teacher2"
And I am on "Course 1" course homepage
And I navigate to "Course completion" node in "Course administration > Reports"
And I navigate to "Reports > Course completion" in current page administration
And I follow "Click to mark user complete"
# Running completion task just after clicking sometimes fail, as record
# should be created before the task runs.
@@ -20,7 +20,7 @@ Feature: Enable Block Completion in a course using manual self completion
And I am on "Course 1" course homepage with editing mode on
And I add the "Course completion status" block
And I add the "Self completion" block
And I navigate to "Course completion" node in "Course administration"
And I navigate to "Course completion" in current page administration
And I expand all fieldsets
And I set the following fields to these values:
| id_criteria_self | 1 |
@@ -28,7 +28,7 @@ Feature: Enable the course_list block on the frontpage and view it's contents
Scenario: Add the course list block on the frontpage and navigate to the course listing
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Courses" block
And I log out
When I log in as "teacher1"
@@ -43,7 +43,7 @@ Feature: Enable the course_list block on the frontpage and view it's contents
Scenario: Add the course list block on the frontpage page and navigate to another course
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Courses" block
And I log out
When I log in as "teacher1"
@@ -58,7 +58,7 @@ Feature: Enable the course_list block on the frontpage and view it's contents
Scenario: Add the course list block on the frontpage page and view as an admin
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
When I add the "Courses" block
Then I should see "Miscellaneous" in the "Course categories" "block"
And I should see "Category 1" in the "Course categories" "block"
@@ -72,7 +72,7 @@ Feature: Enable the course_list block on the frontpage and view it's contents
Scenario: Add the course list block on the frontpage page and view as a guest
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Courses" block
And I log out
When I log in as "guest"
@@ -9,7 +9,7 @@ Feature: Course summary block used on the frontpage
And I am on site homepage
And I turn editing mode on
And I add the "Course/site summary" block
And I navigate to "Edit settings" node in "Front page settings"
And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| summary | Proved the summary block works! |
And I press "Save changes"
+1 -1
View File
@@ -10,7 +10,7 @@ Feature: Login from a block
| testuser | testpass | Test | User | student1@example.com |
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Login" block
Scenario: Login block visible to non-logged in users
@@ -10,7 +10,7 @@ Feature: The logged in user block allows users to view their profile information
| teacher1 | Teacher | One | teacher1@example.com | T1 |
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Logged in user" block
And I log out
@@ -46,7 +46,7 @@ Feature: Expand the courses nodes within the navigation block
And I press "Save changes"
And I turn editing mode off
And I am on "Course 2" course homepage
And I navigate to "Enrolment methods" node in "Course administration > Users"
And I navigate to "Users > Enrolment methods" in current page administration
And I click on "Edit" "link" in the "Guest access" "table_row"
And I set the following fields to these values:
| Allow guest access | Yes |
@@ -13,7 +13,7 @@ Feature: The online users block allow you to see who is currently online on fron
Scenario: View the online users block on the front page and see myself
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
When I add the "Online users" block
Then I should see "Admin User" in the "Online users" "block"
And I should see "1 online user" in the "Online users" "block"
@@ -21,7 +21,7 @@ Feature: The online users block allow you to see who is currently online on fron
Scenario: View the online users block on the front page as a logged in user
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Online users" block
And I log out
And I log in as "student2"
@@ -36,7 +36,7 @@ Feature: The online users block allow you to see who is currently online on fron
Scenario: View the online users block on the front page as a guest
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Online users" block
And I log out
And I log in as "student2"
@@ -54,7 +54,7 @@ Feature: The online users block allow you to see who is currently online on fron
Scenario: Hide/show user's online status from/to other users in the online users block on front page
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Online users" block
And I log out
When I log in as "student1"
@@ -10,7 +10,7 @@ Feature: People Block used on frontpage
| student1 | Sam | Student | student1@example.com |
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "People" block
And I log out
@@ -13,7 +13,7 @@ Feature: The private files block allows users to store files privately in moodle
| teacher1 | Teacher | 1 | teacher1@example.com |
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Private files" block
And I log out
@@ -18,7 +18,7 @@ Feature: The search forums block allows users to search for forum posts on cours
| student1 | C1 | student |
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the field "id_newsitems" to "1"
And I press "Save and display"
And I turn editing mode on
@@ -10,7 +10,7 @@ Feature: The search forums block allows users to search for forum posts on front
| student1 | Student | 1 | student1@example.com | S1 |
And I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Search forums" block
And I log out
@@ -8,7 +8,7 @@ Feature: Add URL to main menu block
Scenario: Add a URL in menu block and ensure it appears
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Main menu" block
When I add a "URL" to section "0" and I fill the form with:
| Name | google |
@@ -8,7 +8,7 @@ Feature: Edit activities in main menu block
Scenario: Edit name of acitivity in-place in site main menu block
Given I log in as "admin"
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Main menu" block
When I add a "Forum" to section "0" and I fill the form with:
| Forum name | My forum name |
@@ -27,7 +27,7 @@ Feature: Edit activities in main menu block
And I set the following administration settings values:
| allowstealth | 1 |
And I am on site homepage
And I navigate to "Turn editing on" node in "Front page settings"
And I navigate to "Turn editing on" in current page administration
And I add the "Main menu" block
When I add a "Forum" to section "0" and I fill the form with:
| Forum name | Visible forum |
@@ -60,7 +60,7 @@ Feature: Edit activities in main menu block
And the field "Availability" matches value "Make available but not shown 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 navigate to "Turn editing off" node in "Front page settings"
And I navigate to "Turn editing off" in current page administration
And "My forum name" activity in site main menu block should be available but hidden from course page
And I log out
And I should not see "My forum name" in the "Main menu" "block"
@@ -10,7 +10,8 @@ Feature: Adding and configuring Flickr block
And I press "Customise this page"
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
And I add the "Navigation" block if not present
And I navigate to "Tags" node in "Site pages"
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Tags" "link" in the "Navigation" "block"
And I add the "Flickr" block
And I configure the "Flickr" block
Then I should see "Flickr block title"
@@ -20,7 +20,7 @@ Feature: Add and configure blocks throughout the site
| manager1 | Acceptance test site | manager |
# Allow at least one role assignment in the block context:
And I log in as "admin"
And I navigate to "Define roles" node in "Site administration > Users > Permissions"
And I navigate to "Users > Permissions > Define roles" in site administration
And I follow "Edit Non-editing teacher role"
And I set the following fields to these values:
| Block | 1 |
+1 -1
View File
@@ -18,7 +18,7 @@ Feature: Blogs can be set to be only visible by the author.
| testuser2 | C1 | student |
And I log in as "admin"
And I am on site homepage
And I navigate to "Blog" node in "Site administration > Appearance"
And I navigate to "Appearance > Blog" in site administration
And I set the following fields to these values:
| Blog visibility | Users can only see their own blog |
And I press "Save changes"
+8 -4
View File
@@ -20,7 +20,8 @@ Feature: Comment on a blog entry
And I press "Save changes"
And I log out
And I log in as "testuser"
And I navigate to "Site blogs" node in "Site pages"
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Site blogs" "link" in the "Navigation" "block"
And I follow "Add a new entry"
And I set the following fields to these values:
| Entry title | Blog post from user 1 |
@@ -32,7 +33,8 @@ Feature: Comment on a blog entry
Scenario: Commenting on my own blog entry
Given I am on site homepage
And I log in as "testuser"
And I navigate to "Site blogs" node in "Site pages"
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Site blogs" "link" in the "Navigation" "block"
And I follow "Blog post from user 1"
And I should see "User 1 blog post content"
And I follow "Comments (0)"
@@ -47,7 +49,8 @@ Feature: Comment on a blog entry
Scenario: Deleting my own comment
Given I am on site homepage
And I log in as "testuser"
And I navigate to "Site blogs" node in "Site pages"
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Site blogs" "link" in the "Navigation" "block"
And I follow "Blog post from user 1"
And I should see "User 1 blog post content"
And I follow "Comments (0)"
@@ -67,7 +70,8 @@ Feature: Comment on a blog entry
Given I am on site homepage
And I log in as "testuser2"
And I am on site homepage
And I navigate to "Site blogs" node in "Site pages"
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Site blogs" "link" in the "Navigation" "block"
And I follow "Blog post from user 1"
When I follow "Comments (0)"
And I set the field "content" to "$My own >nasty< \"string\"!"
+2 -2
View File
@@ -19,7 +19,7 @@ Feature: Delete a blog entry
And I press "Save changes"
And I log out
And I log in as "testuser"
And I navigate to "Site blogs" node in "Site pages"
And I click on "Site blogs" "link" in the "Navigation" "block"
And I follow "Add a new entry"
And I set the following fields to these values:
| Entry title | Blog post one |
@@ -31,7 +31,7 @@ Feature: Delete a blog entry
| Blog entry body | User 1 blog post content |
And I press "Save changes"
And I am on site homepage
And I navigate to "Site blogs" node in "Site pages"
And I click on "Site blogs" "link" in the "Navigation" "block"
Scenario: Delete blog post results in post deleted
Given I follow "Blog post one"
+15 -3
View File
@@ -67,7 +67,11 @@ Feature: Course Category Events
@javascript
Scenario: Manager of a Category can see all child and parent events in their category
Given I log in as "managera"
When I navigate to "Calendar" node in "Site pages"
And I press "Customise this page"
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
When I add the "Navigation" block if not present
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Calendar" "link" in the "Navigation" "block"
Then I should see "FA event"
And I should see "DA1 event"
And I should see "DA2 event"
@@ -76,7 +80,11 @@ Feature: Course Category Events
And I should not see "DB2 event"
And I log out
Given I log in as "managerb"
When I navigate to "Calendar" node in "Site pages"
And I press "Customise this page"
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
When I add the "Navigation" block if not present
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Calendar" "link" in the "Navigation" "block"
Then I should see "FB event"
And I should see "DB1 event"
And I should see "DB2 event"
@@ -87,7 +95,11 @@ Feature: Course Category Events
@javascript
Scenario: Users enrolled in a course can see all child and parent events in their category
Given I log in as "student1"
When I navigate to "Calendar" node in "Site pages"
And I press "Customise this page"
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
When I add the "Navigation" block if not present
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Calendar" "link" in the "Navigation" "block"
Then I should see "FA event"
And I should see "DA1 event"
And I should see "DA2 event"
@@ -48,7 +48,7 @@ Feature: Access visible and hidden cohorts
Scenario: Teacher can see visible cohorts defined in the above contexts
When I log in as "teacher"
And I am on "Course 1" course homepage
And I navigate to "Enrolment methods" node in "Course administration > Users"
And I navigate to "Users > Enrolment methods" in current page administration
And I select "Cohort sync" from the "Add method" singleselect
And I open the autocomplete suggestions list
Then "Cohort in category 1" "autocomplete_suggestions" should exist
@@ -61,10 +61,10 @@ Feature: Access visible and hidden cohorts
And I set the field "Cohort" to "System cohort"
And I press "Add method"
And I am on "Course 1" course homepage
And I navigate to "Enrolled users" node in "Course administration > Users"
And I navigate to "Users > Enrolled users" in current page administration
And I should see "student@example.com"
And I am on "Course 1" course homepage
And I navigate to "Groups" node in "Course administration > Users"
And I navigate to "Users > Groups" in current page administration
And I press "Auto-create groups"
And the "Select members from cohort" select box should contain "Cohort in category 1"
And the "Select members from cohort" select box should contain "System cohort"
@@ -78,7 +78,7 @@ Feature: Access visible and hidden cohorts
Scenario: System manager can see all cohorts defined in the above contexts
When I log in as "user1"
And I am on "Course 1" course homepage
And I navigate to "Enrolment methods" node in "Course administration > Users"
And I navigate to "Users > Enrolment methods" in current page administration
And I select "Cohort sync" from the "Add method" singleselect
And I open the autocomplete suggestions list
Then "Cohort in category 1" "autocomplete_suggestions" should exist
@@ -90,9 +90,10 @@ Feature: Access visible and hidden cohorts
And "System empty cohort" "autocomplete_suggestions" should exist
And I set the field "Cohort" to "System cohort"
And I press "Add method"
And I navigate to "Enrolled users" node in "Course administration > Users"
And I am on "Course 1" course homepage
And I navigate to "Users > Enrolled users" in current page administration
And I should see "student@example.com"
And I navigate to "Groups" node in "Course administration > Users"
And I navigate to "Users > Groups" in current page administration
And I press "Auto-create groups"
And the "Select members from cohort" select box should contain "Cohort in category 1"
And the "Select members from cohort" select box should contain "System cohort"
@@ -106,7 +107,7 @@ Feature: Access visible and hidden cohorts
Scenario: Category manager can see all cohorts defined in his category and visible cohorts defined above
When I log in as "user2"
And I am on "Course 1" course homepage
And I navigate to "Enrolment methods" node in "Course administration > Users"
And I navigate to "Users > Enrolment methods" in current page administration
And I select "Cohort sync" from the "Add method" singleselect
And I open the autocomplete suggestions list
Then "Cohort in category 1" "autocomplete_suggestions" should exist
@@ -118,9 +119,10 @@ Feature: Access visible and hidden cohorts
And "System empty cohort" "autocomplete_suggestions" should exist
And I set the field "Cohort" to "System cohort"
And I press "Add method"
And I navigate to "Enrolled users" node in "Course administration > Users"
And I am on "Course 1" course homepage
And I navigate to "Users > Enrolled users" in current page administration
And I should see "student@example.com"
And I navigate to "Groups" node in "Course administration > Users"
And I navigate to "Users > Groups" in current page administration
And I press "Auto-create groups"
And the "Select members from cohort" select box should contain "Cohort in category 1"
And the "Select members from cohort" select box should contain "System cohort"
+1 -1
View File
@@ -12,7 +12,7 @@ Feature: Add cohorts of users
| user3 | Third | User | third@example.com |
| user4 | Forth | User | forth@example.com |
And I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Cohorts" in site administration
And I follow "Add new cohort"
And I set the following fields to these values:
| Name | Test cohort name |
+3 -4
View File
@@ -50,13 +50,12 @@ class behat_cohort extends behat_base {
if (!$this->getSession()->getPage()->find('css', 'input#cohort_search_q')) {
// With JS enabled we should expand a few tree nodes.
$parentnodes = get_string('administrationsite') . ' > ' .
get_string('users', 'admin') . ' > ' .
$parentnodes = get_string('users', 'admin') . ' > ' .
get_string('accounts', 'admin');
$this->execute("behat_general::i_am_on_homepage");
$this->execute("behat_navigation::i_navigate_to_node_in",
array(get_string('cohorts', 'cohort'), $parentnodes)
$this->execute("behat_navigation::i_navigate_to_in_site_administration",
$parentnodes . ' > ' . get_string('cohorts', 'cohort')
);
}
@@ -21,7 +21,7 @@ Feature: Upload users to a cohort
And I am on "Course 2" course homepage
And I add "Cohort sync" enrolment method with:
| Cohort | Cohort 2 |
When I navigate to "Upload users" node in "Site administration > Users > Accounts"
When I navigate to "Users > Accounts > Upload users" in site administration
And I upload "lib/tests/fixtures/upload_users_cohorts.csv" file to "File" filemanager
And I press "Upload users"
And I press "Upload users"
+6 -6
View File
@@ -14,7 +14,7 @@ Feature: A privileged user can create cohorts using a CSV file
@javascript
Scenario: Upload cohorts with default System context as admin
When I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Cohorts" in site administration
And I follow "Upload cohorts"
And I upload "cohort/tests/fixtures/uploadcohorts1.csv" file to "File" filemanager
And I click on "Preview" "button"
@@ -53,7 +53,7 @@ Feature: A privileged user can create cohorts using a CSV file
@javascript @_file_upload
Scenario: Upload cohorts with default category context as admin
When I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Cohorts" in site administration
And I follow "Upload cohorts"
And I upload "cohort/tests/fixtures/uploadcohorts1.csv" file to "File" filemanager
And I set the field "Default context" to "Cat 1 / Cat 3"
@@ -70,7 +70,7 @@ Feature: A privileged user can create cohorts using a CSV file
And I should see "Uploaded 6 cohorts"
And I press "Continue"
And I should see "Category: Cat 3: available cohorts (3)"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Cohorts" in site administration
And I follow "All cohorts"
And the following should exist in the "cohorts" table:
| Category | Name | Cohort ID | Description | Cohort size | Source |
@@ -113,7 +113,7 @@ Feature: A privileged user can create cohorts using a CSV file
| name | idnumber |
| Cohort | cohortid2 |
When I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Cohorts" in site administration
And I follow "Upload cohorts"
And I upload "cohort/tests/fixtures/uploadcohorts1.csv" file to "File" filemanager
And I click on "Preview" "button"
@@ -131,7 +131,7 @@ Feature: A privileged user can create cohorts using a CSV file
@javascript @_file_upload
Scenario: Upload cohorts with different ways of specifying context
When I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Cohorts" in site administration
And I follow "Upload cohorts"
And I upload "cohort/tests/fixtures/uploadcohorts2.csv" file to "File" filemanager
And I click on "Preview" "button"
@@ -165,7 +165,7 @@ Feature: A privileged user can create cohorts using a CSV file
@javascript @_file_upload
Scenario: Upload cohorts with theme
When I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Cohorts" in site administration
And I follow "Upload cohorts"
And I upload "cohort/tests/fixtures/uploadcohorts4.csv" file to "File" filemanager
And I click on "Preview" "button"
+2 -2
View File
@@ -29,7 +29,7 @@ Feature: View cohort list
Scenario: Admin can see system cohorts and all cohorts
When I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Cohorts" in site administration
Then I should see "System cohort"
And I should not see "Cohort in category"
And I follow "All cohorts"
@@ -41,7 +41,7 @@ Feature: View cohort list
Scenario: Manager can see system cohorts and all cohorts
When I log in as "user1"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts >Cohorts" in site administration
Then I should see "System cohort"
And I should not see "Cohort in category"
And I follow "All cohorts"
+3 -2
View File
@@ -84,9 +84,10 @@ class behat_completion extends behat_base {
*/
public function go_to_the_current_course_activity_completion_report() {
$completionnode = get_string('pluginname', 'report_progress');
$reportsnode = get_string('courseadministration') . ' > ' . get_string('reports');
$reportsnode = get_string('reports');
$this->execute("behat_navigation::i_navigate_to_node_in", array($completionnode, $reportsnode));
$this->execute("behat_navigation::i_navigate_to_in_current_page_administration",
$reportsnode . ' > ' . $completionnode);
}
/**
@@ -36,5 +36,4 @@ Feature: Allow students to manually mark an activity as complete
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Reports > Activity completion" in current page administration
And "Student First" user has completed "Test forum name" activity
+4 -4
View File
@@ -135,14 +135,14 @@ class behat_course extends behat_base {
*/
public function i_go_to_the_courses_management_page() {
$parentnodes = get_string('administrationsite') . ' > ' . get_string('courses', 'admin');
$parentnodes = get_string('courses', 'admin');
// Go to home page.
$this->execute("behat_general::i_am_on_homepage");
// Navigate to course management page via navigation block.
$this->execute("behat_navigation::i_navigate_to_node_in",
array(get_string('coursemgmt', 'admin'), $parentnodes)
// Navigate to course management via system administration.
$this->execute("behat_navigation::i_navigate_to_in_site_administration",
array($parentnodes . ' > ' . get_string('coursemgmt', 'admin'))
);
}
+6 -4
View File
@@ -34,14 +34,14 @@ Feature: Tagging courses
Scenario: Set course tags using the course edit form
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
Then I should see "Mathematics" in the ".form-autocomplete-selection" "css_element"
And I set the following fields to these values:
| Tags | Algebra |
And I press "Save and display"
And I am on "Course 2" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Tags | Mathematics, Geometry |
And I press "Save and display"
@@ -50,7 +50,8 @@ Feature: Tagging courses
And I press "Customise this page"
# TODO MDL-57120 "Tags" link not accessible without navigation block.
And I add the "Navigation" block if not present
And I navigate to "Tags" node in "Site pages"
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Tags" "link" in the "Navigation" "block"
And I follow "Mathematics"
Then I should see "Course 1"
And I should see "Course 2"
@@ -86,7 +87,8 @@ Feature: Tagging courses
And I press "Customise this page"
# TODO MDL-57120 "Tags" link not accessible without navigation block.
And I add the "Navigation" block if not present
And I navigate to "Tags" node in "Site pages"
And I click on "Site pages" "list_item" in the "Navigation" "block"
And I click on "Tags" "link" in the "Navigation" "block"
And I follow "Mathematics"
Then I should see "Course 1"
And I should see "Course 2"
+2 -2
View File
@@ -8,7 +8,7 @@ Feature: Keyholder role is listed as course contact
And the following "categories" exist:
| name | category | idnumber |
| Cat 1 | 0 | CAT1 |
And I navigate to "Define roles" node in "Site administration > Users > Permissions"
And I navigate to "Users > Permissions > Define roles" in site administration
And I click on "Add a new role" "button"
And I click on "Continue" "button"
And I set the following fields to these values:
@@ -18,7 +18,7 @@ Feature: Keyholder role is listed as course contact
| contextlevel50 | 1 |
| enrol/self:holdkey | 1 |
And I click on "Create this role" "button"
And I navigate to "Courses" node in "Site administration > Appearance"
And I navigate to "Appearance > Courses" in site administration
And I click on "Keyholder" "checkbox"
And I press "Save changes"
And the following "users" exist:
@@ -12,7 +12,7 @@ Feature: The maximum number of weeks/topics in a course can be configured
| user | course | role |
| manager1 | Acceptance test site | manager |
And I log in as "admin"
And I navigate to "Course default settings" node in "Site administration > Courses"
And I navigate to "Courses > Course default settings" in site administration
@javascript
Scenario: The number of sections can be increased and the limits are applied to courses
+1 -1
View File
@@ -26,7 +26,7 @@ Feature: Rename roles in a course
| Your word for 'Teacher' | Lecturer |
| Your word for 'Student' | Learner |
And I press "Save and display"
And I navigate to "Enrolled users" node in "Course administration > Users"
And I navigate to "Users > Enrolled users" in current page administration
Then I should see "Lecturer" in the "Teacher 1" "table_row"
And I should see "Learner" in the "Student 1" "table_row"
+2 -2
View File
@@ -22,7 +22,7 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
| Description | Test forum description |
Scenario: Allow guest access without password
Given I navigate to "Enrolment methods" node in "Course administration > Users"
Given I navigate to "Users > Enrolment methods" in current page administration
And I click on "Edit" "link" in the "Guest access" "table_row"
And I set the following fields to these values:
| Allow guest access | Yes |
@@ -34,7 +34,7 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
Then I should not see "Subscribe to this forum"
Scenario: Allow guest access with password
Given I navigate to "Enrolment methods" node in "Course administration > Users"
Given I navigate to "Users > Enrolment methods" in current page administration
And I click on "Edit" "link" in the "Guest access" "table_row"
And I set the following fields to these values:
| Allow guest access | Yes |
+3 -3
View File
@@ -16,9 +16,9 @@ Feature: Check that settings are adhered to when creating an enrolment plugin
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Manage enrol plugins" node in "Site administration > Plugins > Enrolments"
And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administration
And I click on "Enable" "link" in the "Publish as LTI tool" "table_row"
And I navigate to "Publish as LTI tool" node in "Site administration > Plugins > Enrolments"
And I navigate to "Plugins > Enrolments > Publish as LTI tool" in site administration
And I set the following fields to these values:
| Email display | Allow everyone to see my email address |
| City/town | Perth |
@@ -31,7 +31,7 @@ Feature: Check that settings are adhered to when creating an enrolment plugin
Scenario: As an admin set site-wide settings for the enrolment plugin and ensure they are used
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Enrolment methods" node in "Course administration > Users"
And I navigate to "Users > Enrolment methods" in current page administration
And I select "Publish as LTI tool" from the "Add method" singleselect
When I expand all fieldsets
Then the field "Email display" matches value "Allow everyone to see my email address"
+2 -3
View File
@@ -15,7 +15,7 @@ Feature: Check that the page listing the shared external tools is functioning as
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Manage enrol plugins" node in "Site administration > Plugins > Enrolments"
And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administration
And I click on "Enable" "link" in the "Publish as LTI tool" "table_row"
And I log out
@@ -25,13 +25,12 @@ Feature: Check that the page listing the shared external tools is functioning as
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
And I navigate to "Enrolment methods" node in "Course administration > Users"
And I navigate to "Users > Enrolment methods" in current page administration
And I select "Publish as LTI tool" from the "Add method" singleselect
And I set the following fields to these values:
| Custom instance name | Assignment - LTI |
| Tool to be published | Test assignment name |
And I press "Add method"
And I navigate to "Published as LTI tools" node in "Course administration"
And I should see "Assignment - LTI" in the ".generaltable" "css_element"
When I click on "Disable" "link" in the "Assignment - LTI" "table_row"
Then ".dimmed_text" "css_element" should exist in the "Assignment - LTI" "table_row"
+11 -7
View File
@@ -32,7 +32,7 @@ Feature: Enrolments are synchronised with meta courses
| student1 | C4C4 | student | 0 |
| student2 | C4C4 | student | 1 |
And I log in as "admin"
And I navigate to "Manage enrol plugins" node in "Site administration > Plugins > Enrolments"
And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administration
And I click on "Enable" "link" in the "Course meta link" "table_row"
And I am on course index
@@ -40,7 +40,8 @@ Feature: Enrolments are synchronised with meta courses
When I am on "Course 3" course homepage
And I add "Course meta link" enrolment method with:
| Link course | C1C1 |
And I navigate to "Enrolled users" node in "Course administration > Users"
And I am on "Course 3" course homepage
And I navigate to "Users > Enrolled users" in current page administration
Then I should see "No groups" in the "Student 1" "table_row"
And I should see "No groups" in the "Student 4" "table_row"
@@ -53,7 +54,8 @@ Feature: Enrolments are synchronised with meta courses
And I add "Course meta link" enrolment method with:
| Link course | C2C2 |
| Add to group | Groupcourse 2 |
And I navigate to "Enrolled users" node in "Course administration > Users"
And I am on "Course 3" course homepage
And I navigate to "Users > Enrolled users" in current page administration
Then I should see "Groupcourse 1" in the "Student 1" "table_row"
And I should see "Groupcourse 1" in the "Student 2" "table_row"
And I should see "Groupcourse 1" in the "Student 3" "table_row"
@@ -68,12 +70,13 @@ Feature: Enrolments are synchronised with meta courses
And I add "Course meta link" enrolment method with:
| Link course | C1C1 |
| Add to group | Create new group |
And I navigate to "Enrolled users" node in "Course administration > Users"
And I am on "Course 3" course homepage
And I navigate to "Users > Enrolled users" in current page administration
Then I should see "Course 1 course" in the "Student 1" "table_row"
And I should see "Course 1 course" in the "Student 2" "table_row"
And I should see "Course 1 course" in the "Student 3" "table_row"
And I should see "Course 1 course" in the "Student 4" "table_row"
And I navigate to "Groups" node in "Course administration > Users"
And I navigate to "Users > Groups" in current page administration
And the "Groups" select box should contain "Course 1 course (4)"
Scenario: Backup and restore of meta enrolment instance
@@ -96,10 +99,11 @@ Feature: Enrolments are synchronised with meta courses
And I press "Perform restore"
And I trigger cron
And I am on "Course 5 copy 1" course homepage
And I navigate to "Enrolment methods" node in "Course administration > Users"
And I navigate to "Users > Enrolment methods" in current page administration
Then I should see "Course meta link (Course 1)"
And I should see "Course meta link (Course 2)"
And I navigate to "Enrolled users" node in "Course administration > Users"
And I am on "Course 5 copy 1" course homepage
And I navigate to "Users > Enrolled users" in current page administration
And I should see "Groupcourse 1" in the "Student 1" "table_row"
And I should see "Groupcourse 1" in the "Student 2" "table_row"
And I should see "Groupcourse 1" in the "Student 3" "table_row"
+2 -2
View File
@@ -13,7 +13,7 @@ Feature: Users can be defined as key holders in courses where self enrolment is
| fullname | shortname | format |
| Course 1 | C1 | topics |
And I log in as "admin"
And I navigate to "Define roles" node in "Site administration > Users > Permissions"
And I navigate to "Users > Permissions > Define roles" in site administration
And I click on "Add a new role" "button"
And I click on "Continue" "button"
And I set the following fields to these values:
@@ -22,7 +22,7 @@ Feature: Users can be defined as key holders in courses where self enrolment is
| contextlevel50 | 1 |
| enrol/self:holdkey | 1 |
And I click on "Create this role" "button"
And I navigate to "Courses" node in "Site administration > Appearance"
And I navigate to "Appearance > Courses" in site administration
And I set the following fields to these values:
| Key holder | 1 |
And I press "Save changes"
+6 -6
View File
@@ -48,9 +48,9 @@ class behat_enrol extends behat_base {
*/
public function i_add_enrolment_method_with($enrolmethod, TableNode $table) {
// Navigate to enrolment method page.
$parentnodes = get_string('courseadministration') . ' > ' . get_string('users', 'admin');
$this->execute("behat_navigation::i_navigate_to_node_in",
array(get_string('type_enrol_plural', 'plugin'), $parentnodes)
$parentnodes = get_string('users', 'admin');
$this->execute("behat_navigation::i_navigate_to_in_current_page_administration",
array($parentnodes .' > '. get_string('type_enrol_plural', 'plugin'))
);
// Select enrolment method.
@@ -87,9 +87,9 @@ class behat_enrol extends behat_base {
public function i_enrol_user_as($userfullname, $rolename) {
// Navigate to enrolment page.
$parentnodes = get_string('courseadministration') . ' > ' . get_string('users', 'admin');
$this->execute("behat_navigation::i_navigate_to_node_in",
array(get_string('enrolledusers', 'enrol'), $parentnodes)
$parentnodes = get_string('users', 'admin');
$this->execute("behat_navigation::i_navigate_to_in_current_page_administration",
array($parentnodes . ' > '. get_string('enrolledusers', 'enrol'))
);
$this->execute("behat_forms::press_button", get_string('enrolusers', 'enrol'));
+3 -2
View File
@@ -16,11 +16,12 @@ Feature: User can be enrolled into a course
Scenario: User can be enrolled without javascript
When I enrol "Studie One" user as "Student"
And I navigate to "Enrolled users" node in "Course administration > Users"
And I am on "Course 001" course homepage
And I navigate to "Users > Enrolled users" in current page administration
Then I should see "Studie One"
@javascript
Scenario: User can be enrolled with javascript enrol element
When I enrol "Studie One" user as "Student"
And I navigate to "Enrolled users" node in "Course administration > Users"
And I navigate to "Users > Enrolled users" in current page administration
Then I should see "Studie One"
+2 -2
View File
@@ -22,7 +22,7 @@ Feature: Test role visibility for the participants page
Scenario: Check the default roles are visible
Given I log in as "manager1"
And I follow "Course 1"
When I navigate to "Enrolled users" node in "Course administration > Users"
When I navigate to "Users > Enrolled users" in current page administration
Then "Learner 1" row "Roles" column of "participants" table should contain "Student"
And "Teacher 1" row "Roles" column of "participants" table should contain "Teacher"
And "Manager 1" row "Roles" column of "participants" table should contain "Manager"
@@ -31,7 +31,7 @@ Feature: Test role visibility for the participants page
Scenario: Do not allow managers to view any roles but manager and check they are hidden
Given I log in as "teacher1"
And I am on "Course 1" course homepage
When I navigate to "Enrolled users" node in "Course administration > Users"
When I navigate to "Users > Enrolled users" in current page administration
Then "Learner 1" row "Roles" column of "participants" table should contain "Student"
And "Teacher 1" row "Roles" column of "participants" table should contain "Teacher"
And "Manager 1" row "Roles" column of "participants" table should not contain "Manager"
@@ -16,7 +16,7 @@ Feature: Add a new custom file type
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "File types" node in "Site administration>Server"
And I navigate to "Server > File types" in site administration
And I press "Add a new file type"
And I set the following fields to these values:
| Extension | mdlr |
+2 -2
View File
@@ -15,7 +15,7 @@ Feature: Course files
When I log in as "admin"
And I am on "Course 1" course homepage
Then "Legacy course files" "link" should exist in current page administration
And I navigate to "Legacy course files" node in "Course administration"
And I navigate to "Legacy course files" in current page administration
And I press "Edit legacy course files"
And "Add..." "link" should be visible
And "Create folder" "link" should be visible
@@ -31,7 +31,7 @@ Feature: Course files
When I log in as "admin"
And I am on "Course 1" course homepage
Then "Legacy course files" "link" should exist in current page administration
And I navigate to "Legacy course files" node in "Course administration"
And I navigate to "Legacy course files" in current page administration
And I press "Edit legacy course files"
And "Add..." "link" should not be visible
And "Create folder" "link" should not be visible
+3 -3
View File
@@ -26,7 +26,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
Scenario: Hide minimum grade
When I click on "Edit assign Assignment1" "link"
And I should see "Minimum grade"
Then I navigate to "General settings" node in "Site administration > Grades"
Then I navigate to "Grades > General settings" in site administration
And I set the field "Show minimum grade" to "0"
And I press "Save changes"
And I am on "Course 1" course homepage
@@ -37,7 +37,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
@javascript
Scenario: Hide calculation icons
And "Edit calculation for Course total" "link" should exist
When I navigate to "Grader report" node in "Site administration > Grades > Report settings"
When I navigate to "Grades > Report settings > Grader report" in site administration
And I set the field "Show calculations" to "0"
And I press "Save changes"
And I am on "Course 1" course homepage
@@ -47,7 +47,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
@javascript
Scenario: Disable category overriding
And "tr .course input[type='text']" "css_element" should exist
Then I navigate to "Grade category settings" node in "Site administration > Grades"
Then I navigate to "Grades > Grade category settings" in site administration
And I set the field "Allow category grades to be manually overridden" to "0"
And I press "Save changes"
And I am on "Course 1" course homepage
+2 -1
View File
@@ -42,7 +42,8 @@ Feature: Average grades are displayed in the gradebook
And I press "Save changes"
And I turn editing mode off
# Suspend a user
And I navigate to "Enrolled users" node in "Course administration > Users"
And I am on "Course 1" course homepage
And I navigate to "Users > Enrolled users" in current page administration
And I click on "Edit enrolment" "link" in the "Student 2" "table_row"
And I set the following fields to these values:
| Status | Suspended |
@@ -17,7 +17,7 @@ Feature: Editing a grade item
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "admin"
And I navigate to "Scales" node in "Site administration > Grades"
And I navigate to "Grades > Scales" in site administration
And I press "Add a new scale"
And I set the following fields to these values:
| Name | ABCDEF |
+2 -2
View File
@@ -35,9 +35,9 @@ Feature: Student and teacher's view of aggregated grade items is consistent when
And I press "Save changes"
And I set "=[[a4]]/2" calculation for grade item "calculated" with idnumbers:
| Sub category 1 | sub1 |
And I navigate to "Overview report" node in "Site administration > Grades > Report settings"
And I navigate to "Grades > Report settings > Overview report" in site administration
And I set the field "s__grade_report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items"
And I navigate to "User report" node in "Site administration > Grades > Report settings"
And I navigate to "Grades > Report settings > User report" in site administration
And I set the field "s__grade_report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items"
And I press "Save changes"
When I log out
@@ -17,7 +17,7 @@ Feature: Grade item validation
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "admin"
And I navigate to "Scales" node in "Site administration > Grades"
And I navigate to "Grades > Scales" in site administration
And I press "Add a new scale"
And I set the following fields to these values:
| Name | ABCDEF |
@@ -31,7 +31,7 @@ Feature: We can view the logs for any changes to grade letters.
| id_gradeletter11 | |
| id_gradeboundary11 | |
And I press "Save changes"
When I navigate to "Live logs" node in "Site administration > Reports"
When I navigate to "Reports > Live logs" in site administration
Then I should see "Grade letter created"
And I should see "Grade letter updated"
And I should see "Grade letter deleted"
@@ -14,7 +14,7 @@ Feature: We can change the grading type and maximum grade point values
| activity | course | idnumber | name | intro |
| assign | C1 | assign1| Test Assignment 1 | Test Assignment 1 |
And I log in as "admin"
And I navigate to "General settings" node in "Site administration > Grades"
And I navigate to "Grades > General settings" in site administration
And I set the following fields to these values:
| Grade point maximum | 900 |
| Grade point default | 800 |
@@ -92,7 +92,7 @@ Feature: We can change the grading type and maximum grade point values
And I set the field "grade[modgrade_type]" to "point"
And I set the field "grade[modgrade_point]" to "600"
And I press "Save and display"
And I navigate to "General settings" node in "Site administration > Grades"
And I navigate to "Grades > General settings" in site administration
And I set the following fields to these values:
| Grade point maximum | 100 |
And I press "Save changes"
+1 -1
View File
@@ -9,7 +9,7 @@ Feature: View gradebook when scales are used
And I set the following administration settings values:
| grade_report_showranges | 1 |
| grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
And I navigate to "Scales" node in "Site administration > Grades"
And I navigate to "Grades > Scales" in site administration
And I press "Add a new scale"
And I set the following fields to these values:
| Name | Letterscale |
@@ -20,7 +20,7 @@ Feature: Control the aggregation of the scales
And I set the following administration settings values:
| grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
| grade_report_user_showcontributiontocoursetotal | 1 |
And I navigate to "Scales" node in "Site administration > Grades"
And I navigate to "Grades > Scales" in site administration
And I press "Add a new scale"
And I set the following fields to these values:
| Name | Letterscale |
@@ -6,7 +6,7 @@ Feature: We can view the logs for any changes to grade scales.
Scenario: I edit scales and then view the logs.
Given I log in as "admin"
And I navigate to "Scales" node in "Site administration > Grades"
And I navigate to "Grades > Scales" in site administration
# Add a scale
And I press "Add a new scale"
And I set the following fields to these values:
@@ -21,7 +21,7 @@ Feature: We can view the logs for any changes to grade scales.
And I set the following fields to these values:
| id_scale | ONE,TWO,THREE |
And I press "Save changes"
When I navigate to "Live logs" node in "Site administration > Reports"
When I navigate to "Reports > Live logs" in site administration
Then I should see "Scale created"
And I should see "Scale updated"
And I should see "Scale deleted"
@@ -9,7 +9,7 @@ Feature: View gradebook when single item scales are used
And I set the following administration settings values:
| grade_report_showranges | 1 |
| grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
And I navigate to "Scales" node in "Site administration > Grades"
And I navigate to "Grades > Scales" in site administration
And I press "Add a new scale"
And I set the following fields to these values:
| Name | Singleitem |
+1 -1
View File
@@ -58,7 +58,7 @@ Feature: Group overview
Scenario: Filter the overview in various different ways
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Groups" node in "Course administration > Users"
And I navigate to "Users > Groups" in current page administration
And I follow "Overview"
# Grouping All and Group All filter
+2 -2
View File
@@ -30,7 +30,7 @@ Feature: Test role visibility for the groups management page
Scenario: Check the default roles are visible
Given I log in as "manager1"
And I am on "Course 1" course homepage
And I navigate to "Groups" node in "Course administration > Users"
And I navigate to "Users > Groups" in current page administration
When I set the field "groups" to "Group 1 (3)"
And I press "Show members for group"
Then "optgroup[label='No roles']" "css_element" should not exist in the "#members" "css_element"
@@ -42,7 +42,7 @@ Feature: Test role visibility for the groups management page
Scenario: Do not allow managers to view any roles and check they are hidden
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Groups" node in "Course administration > Users"
And I navigate to "Users > Groups" in current page administration
When I set the field "groups" to "Group 1 (3)"
And I press "Show members for group"
Then "optgroup[label='No roles']" "css_element" should exist in the "#members" "css_element"
+10 -10
View File
@@ -15,12 +15,12 @@ Feature: Atto Autosave
| teacher1 | C1 | editingteacher |
| teacher2 | C1 | editingteacher |
And I log in as "admin"
And I navigate to "Atto toolbar settings" node in "Site administration > Plugins > Text editors > Atto HTML editor"
And I navigate to "Plugins > Text editors > Atto HTML editor > Atto toolbar settings" in site administration
And I set the field "Autosave frequency" to "3"
And I set the field with xpath "//select[@name='s_editor_atto_autosavefrequency[u]']" to "seconds"
And I click on "Save changes" "button"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the field with xpath "//select[@name='summary_editor[format]']" to "1"
And I click on "Save and display" "button"
And I log out
@@ -29,14 +29,14 @@ Feature: Atto Autosave
Scenario: Restore a draft
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the field "Course summary" to "This is my draft"
# Wait for the autosave
And I wait "5" seconds
And I log out
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
# Wait for the autorestore
And I wait "2" seconds
Then I should see "This is my draft"
@@ -45,7 +45,7 @@ Feature: Atto Autosave
Scenario: Do not restore a draft if files have been modified
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the field "Course summary" to "This is my draft"
# Wait for the autosave
And I wait "5" seconds
@@ -55,7 +55,7 @@ Feature: Atto Autosave
And I upload "lib/editor/atto/tests/fixtures/moodle-logo.png" file to "Files" filemanager
And I click on "Save changes" "button"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the field "Course summary" to "<p>Image test</p>"
And I select the text in the "Course summary" Atto editor
And I click on "Insert or edit image" "button"
@@ -71,26 +71,26 @@ Feature: Atto Autosave
And I log out
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
Then I should not see "This is my draft"
@javascript
Scenario: Do not restore a draft if text has been modified
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the field "Course summary" to "This is my draft"
# Wait for the autosave
And I wait "5" seconds
And I log out
And I log in as "teacher2"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the field "Course summary" to "Modified text"
And I click on "Save and display" "button"
And I log out
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
Then I should not see "This is my draft"
And I should see "Modified text"

Some files were not shown because too many files have changed in this diff Show More