mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-72093 navigation: Update behat tests
This commit is contained in:
parent
ecf8e77f19
commit
7d821080f0
@ -223,7 +223,7 @@ Feature: Set up contextual data for tests
|
||||
And I should see "Test assignment description"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment name with scale"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And the field "Type" matches value "Scale"
|
||||
|
||||
@javascript
|
||||
|
@ -72,7 +72,7 @@ Feature: Edit capabilities
|
||||
@javascript
|
||||
Scenario: Edit permissions escapes role names correctly
|
||||
When I am on the "C1" "Course" page logged in as "admin"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Your word for 'Teacher' | Teacher >= editing |
|
||||
| Your word for 'Non-editing teacher' | Teacher < "editing" |
|
||||
|
@ -56,13 +56,13 @@ Feature: Verify that all form fields values can be get and set
|
||||
And I press "Save"
|
||||
Then I should see "Student page contents" in the "region-main" "region"
|
||||
# Select (multi-select) - Checking "I set the field".
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
# Checkbox - Checking "I set the field" and "The field matches value" ticked.
|
||||
And I set the field "Force format" to "1"
|
||||
And I press "Save and return to course"
|
||||
And I am on the "Test this one" "wiki activity" page
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the field "Force format" matches value "1"
|
||||
And the field "Force format" does not match value ""
|
||||
@ -70,7 +70,7 @@ Feature: Verify that all form fields values can be get and set
|
||||
And I set the field "Force format" to ""
|
||||
And I press "Save and return to course"
|
||||
And I am on the "Test this one" "wiki activity" page
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the field "Force format" matches value ""
|
||||
And the field "Force format" does not match value "1"
|
||||
@ -79,7 +79,7 @@ Feature: Verify that all form fields values can be get and set
|
||||
| Force format | 1 |
|
||||
And I press "Save and return to course"
|
||||
And I am on the "Test this one" "wiki activity" page
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the following fields match these values:
|
||||
| Force format | 1 |
|
||||
@ -90,7 +90,7 @@ Feature: Verify that all form fields values can be get and set
|
||||
| Force format | |
|
||||
And I press "Save and return to course"
|
||||
And I am on the "Test this one" "wiki activity" page
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the following fields match these values:
|
||||
| Force format | |
|
||||
@ -102,7 +102,7 @@ Feature: Verify that all form fields values can be get and set
|
||||
# Select (simple) - Checking "I set the field".
|
||||
And I set the field "Group mode" to "Separate groups"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And the following fields match these values:
|
||||
| Default format | NWiki |
|
||||
| Group mode | Separate groups |
|
||||
@ -135,12 +135,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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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
|
||||
@ -171,7 +171,7 @@ Feature: Verify that all form fields values can be get and set
|
||||
And the "available[day]" "field" should be enabled
|
||||
And the field "deadline[enabled]" matches value "1"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And the field "available[enabled]" matches value "1"
|
||||
And the "available[day]" "field" should be enabled
|
||||
And the field "deadline[enabled]" matches value "1"
|
||||
|
@ -12,7 +12,7 @@ Feature: Behat steps for interacting with form work
|
||||
When I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
# Just get to any form.
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Course full name" in the "General" "fieldset" to "Frog"
|
||||
And I set the following fields in the "Appearance" "fieldset" to these values:
|
||||
| Show activity reports | Yes |
|
||||
|
@ -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" in current page administration
|
||||
And I navigate to "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"
|
||||
|
@ -41,7 +41,7 @@ Feature: edit_availability
|
||||
| intro | pageintro |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Page1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
Then "Restrict access" "fieldset" should not exist
|
||||
|
||||
Given I am on "Course 1" course homepage
|
||||
@ -60,7 +60,7 @@ Feature: edit_availability
|
||||
| intro | pageintro |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Page2"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
Then "Restrict access" "fieldset" should exist
|
||||
|
||||
Given I am on "Course 1" course homepage
|
||||
@ -220,7 +220,7 @@ Feature: edit_availability
|
||||
|
||||
# Check the button still works after saving and editing.
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the "Add group/grouping access restriction" "button" should be disabled
|
||||
And I should see "Grouping" in the "Restrict access" "fieldset"
|
||||
|
@ -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" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the field "id_format" matches value "Topics format"
|
||||
And I press "Cancel"
|
||||
@ -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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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"
|
||||
@ -173,7 +173,7 @@ Feature: Restore Moodle 2 course backups
|
||||
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" in current page administration
|
||||
And I navigate to "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"
|
||||
@ -202,7 +202,7 @@ Feature: Restore Moodle 2 course backups
|
||||
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" in current page administration
|
||||
And I navigate to "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"
|
||||
@ -231,7 +231,7 @@ Feature: Restore Moodle 2 course backups
|
||||
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" in current page administration
|
||||
And I navigate to "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"
|
||||
|
@ -214,7 +214,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" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
And I press "Save and display"
|
||||
@ -261,7 +261,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" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
And I press "Save and display"
|
||||
|
@ -32,7 +32,7 @@ Feature: Award badges with separate groups
|
||||
| teacher2 | CA |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Group mode" to "Separate groups"
|
||||
And I press "Save and display"
|
||||
|
@ -31,7 +31,7 @@ Feature: The activity results block doesn't display student scores for unsupport
|
||||
| id_config_nameformat | Display full names |
|
||||
And I press "Save changes"
|
||||
When I follow "Test assignment"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_grade_modgrade_type | None |
|
||||
And I press "Save and return to course"
|
||||
|
@ -41,7 +41,7 @@ Feature: The activity results block displays students high scores in group as sc
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_grade_modgrade_type | Scale |
|
||||
| id_grade_modgrade_scale | My Scale |
|
||||
|
@ -54,7 +54,7 @@ Feature: The activity results block displays student in group high scores as sca
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| assignsubmission_file_enabled | 0 |
|
||||
| id_grade_modgrade_type | Scale |
|
||||
|
@ -47,7 +47,7 @@ Feature: The activity results block displays student in visible groups scores
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test assignment"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Group mode | Visible groups |
|
||||
And I press "Save and return to course"
|
||||
|
@ -42,7 +42,7 @@ Feature: The activity results block displays student low scores as scales
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test assignment"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_grade_modgrade_type | Scale |
|
||||
| id_grade_modgrade_scale | My Scale |
|
||||
|
@ -59,7 +59,7 @@ Feature: The activity results block displays students in groups low scores as sc
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_grade_modgrade_type | Scale |
|
||||
| id_grade_modgrade_scale | My Scale |
|
||||
|
@ -123,7 +123,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" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_groupmode | Separate groups |
|
||||
| id_groupmodeforce | Yes |
|
||||
@ -159,7 +159,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" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_groupmode | Separate groups |
|
||||
| id_groupmodeforce | Yes |
|
||||
|
@ -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" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | No |
|
||||
And I press "Save and display"
|
||||
@ -40,7 +40,7 @@ Feature: Enable Block Completion in a course
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test page name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Completion tracking | Show activity as complete when conditions are met |
|
||||
| Require view | 1 |
|
||||
|
@ -24,7 +24,7 @@ Feature: Enable Block Completion in a course using activity completion
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test page name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Completion tracking | Show activity as complete when conditions are met |
|
||||
| Require view | 1 |
|
||||
@ -45,7 +45,7 @@ Feature: Enable Block Completion in a course using activity completion
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test page name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Completion tracking | Show activity as complete when conditions are met |
|
||||
| Require view | 1 |
|
||||
|
@ -72,7 +72,7 @@ Feature: Random glossary entry block linking to global glossary
|
||||
And I log in as "admin"
|
||||
And I am on "Course 2" course homepage
|
||||
And I follow "Tips and Tricks"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And I set the field "globalglossary" to "0"
|
||||
And I press "Save and return to course"
|
||||
And I am on "Course 1" course homepage
|
||||
|
@ -28,7 +28,7 @@ Feature: Course overview block show users their progress on courses
|
||||
|
||||
Scenario: User complete activity and verify his progress
|
||||
Given I am on the "Test choice 1" "choice activity" page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Completion tracking | Show activity as complete when conditions are met |
|
||||
| id_completionview | 1 |
|
||||
|
@ -33,14 +33,14 @@ Feature: Latest announcements block displays the course latest news
|
||||
Then I should see "Discussion One" in the "Latest announcements" "block"
|
||||
And I should see "Discussion Two" in the "Latest announcements" "block"
|
||||
And I should see "Discussion Three" in the "Latest announcements" "block"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Number of announcements | 2 |
|
||||
And I press "Save and display"
|
||||
And I should not see "Discussion One" in the "Latest announcements" "block"
|
||||
And I should see "Discussion Two" in the "Latest announcements" "block"
|
||||
And I should see "Discussion Three" in the "Latest announcements" "block"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Number of announcements | 0 |
|
||||
And I press "Save and display"
|
||||
|
@ -60,25 +60,25 @@ Feature: View structural changes in recent activity block
|
||||
|
||||
And I am on "Course 1" course homepage
|
||||
And I click on "ForumVisibleGroupsG1" "link"
|
||||
And I click on "Edit settings" "link"
|
||||
And I click on "Settings" "link"
|
||||
And I set the following fields to these values:
|
||||
| Access restrictions | Grouping: Grouping 1 |
|
||||
And I press "Save and return to course"
|
||||
|
||||
And I click on "ForumSeparateGroupsG1" "link"
|
||||
And I click on "Edit settings" "link"
|
||||
And I click on "Settings" "link"
|
||||
And I set the following fields to these values:
|
||||
| Access restrictions | Grouping: Grouping 1 |
|
||||
And I press "Save and return to course"
|
||||
|
||||
And I click on "ForumVisibleGroupsG2" "link"
|
||||
And I click on "Edit settings" "link"
|
||||
And I click on "Settings" "link"
|
||||
And I set the following fields to these values:
|
||||
| Access restrictions | Grouping: Grouping 2 |
|
||||
And I press "Save and return to course"
|
||||
|
||||
And I click on "ForumSeparateGroupsG2" "link"
|
||||
And I click on "Edit settings" "link"
|
||||
And I click on "Settings" "link"
|
||||
And I set the following fields to these values:
|
||||
| Access restrictions | Grouping: Grouping 2 |
|
||||
And I press "Save and return to course"
|
||||
@ -170,7 +170,7 @@ Feature: View structural changes in recent activity block
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "ForumNew"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| name | ForumUpdated |
|
||||
And I press "Save and return to course"
|
||||
|
@ -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" in current page administration
|
||||
And I navigate to "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
|
||||
@ -41,7 +41,7 @@ Feature: The search forums block allows users to search for forum posts on cours
|
||||
| Message | My message |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Announcements"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "id_visible" to "0"
|
||||
And I press "Save and return to course"
|
||||
|
@ -21,7 +21,7 @@ Feature: Block appearances
|
||||
And I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test survey name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Survey type | ATTLS (20 item version) |
|
||||
And I press "Save and return to course"
|
||||
|
@ -25,7 +25,7 @@ Feature: Allow to mark course as completed without cron for activity completion
|
||||
| description | Test assignment description |
|
||||
And I log in as "admin"
|
||||
And I am on "Completion course" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Enable completion tracking" to "Yes"
|
||||
And I click on "Save and display" "button"
|
||||
|
@ -101,7 +101,7 @@ class behat_completion extends behat_base {
|
||||
$toggle = strtolower($completionstatus) == 'enabled' ? get_string('yes') : get_string('no');
|
||||
|
||||
// Go to course editing.
|
||||
$this->execute("behat_general::click_link", get_string('editsettings'));
|
||||
$this->execute("behat_general::click_link", get_string('settings'));
|
||||
|
||||
// Expand all the form fields.
|
||||
$this->execute("behat_forms::i_expand_all_fieldsets");
|
||||
|
@ -28,7 +28,7 @@ Feature: Allow teachers to bulk edit activity completion rules in a course.
|
||||
| assign | C1 | a4 | Test assignment four | Submit nothing! | 150 |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
And I press "Save and display"
|
||||
|
@ -20,7 +20,7 @@ Feature: Show activity completion status or activity completion configuration on
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
And I press "Save and display"
|
||||
|
@ -25,7 +25,7 @@ Feature: Completion with no calendar capabilites
|
||||
And I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_completionexpected_enabled | 1 |
|
||||
| id_completionexpected_day | 1 |
|
||||
@ -43,7 +43,7 @@ Feature: Completion with no calendar capabilites
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test forum name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_completionexpected_year | 2018 |
|
||||
And I press "Save and return to course"
|
||||
|
@ -35,7 +35,7 @@ Feature: Allow teachers to edit the visibility of completion conditions in a cou
|
||||
Scenario: Completion condition displaying setting can be disabled at course level
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
When I set the following fields to these values:
|
||||
| Show activity completion conditions | No |
|
||||
And I click on "Save and display" "button"
|
||||
@ -70,10 +70,10 @@ Feature: Allow teachers to edit the visibility of completion conditions in a cou
|
||||
And I set the field "Show activity completion conditions" to "<siteshowcompletion>"
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Enable completion tracking" to "No"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
Then the field "Show activity completion conditions" matches value "<expected>"
|
||||
|
||||
Examples:
|
||||
|
@ -25,7 +25,7 @@ Feature: Allow teachers to edit the default activity completion rules in a cours
|
||||
| assign | C1 | a1 | Test assignment one | Submit something! | 300 |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
And I press "Save and display"
|
||||
|
@ -19,7 +19,7 @@ Feature: Allow students to manually mark an activity as complete
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
And I press "Save and display"
|
||||
|
@ -21,7 +21,7 @@ Feature: Restrict sections availability through completion or grade conditions
|
||||
Scenario: Show section greyed-out to student when completion condition is not satisfied
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
And I press "Save and display"
|
||||
|
@ -16,7 +16,7 @@ Feature: Edit format course to Single Activity format
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Course full name | My first course |
|
||||
| Course short name | myfirstcourse |
|
||||
|
@ -97,7 +97,7 @@ Feature: Change number of discussions displayed
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
Scenario: When number of discussions is decreased fewer discussions appear
|
||||
Given I navigate to "Edit settings" in current page administration
|
||||
Given I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| numdiscussions | 5 |
|
||||
When I press "Save and display"
|
||||
@ -106,7 +106,7 @@ Feature: Change number of discussions displayed
|
||||
And I should not see "This is forum post six"
|
||||
|
||||
Scenario: When number of discussions is decreased to less than 1 only 1 discussion should appear
|
||||
Given I navigate to "Edit settings" in current page administration
|
||||
Given I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| numdiscussions | -1 |
|
||||
When I press "Save and display"
|
||||
@ -115,7 +115,7 @@ Feature: Change number of discussions displayed
|
||||
And I should not see "This is forum post ten"
|
||||
|
||||
Scenario: When number of discussions is increased more discussions appear
|
||||
Given I navigate to "Edit settings" in current page administration
|
||||
Given I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| numdiscussions | 9 |
|
||||
When I press "Save and display"
|
||||
|
@ -33,7 +33,7 @@ Feature: Edit completion settings of an activity
|
||||
Then I should see "Completion options unlocked"
|
||||
And I set the field "Completion tracking" to "Students can manually mark the activity as completed"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
Then the field "Completion tracking" matches value "Students can manually mark the activity as completed"
|
||||
|
||||
@ -45,6 +45,6 @@ Feature: Edit completion settings of an activity
|
||||
When I click on "id_completionexpected_enabled" "checkbox"
|
||||
And I set the field "id_completionexpected_year" to "2013"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
Then the field "id_completionexpected_year" matches value "2013"
|
||||
|
@ -20,7 +20,7 @@ Feature: Toggle activities groups mode from the course page
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Description | Test forum description |
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Group mode | No groups |
|
||||
| Force group mode | No |
|
||||
|
@ -21,7 +21,7 @@ Feature: Allow teachers to edit the visibility of activity dates in a course
|
||||
Scenario: Activity dates setting can be enabled to display activity dates in a course
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
When I set the following fields to these values:
|
||||
| Show activity dates | Yes |
|
||||
And I click on "Save and display" "button"
|
||||
@ -38,7 +38,7 @@ Feature: Allow teachers to edit the visibility of activity dates in a course
|
||||
Scenario: Activity dates setting can be disabled to hide activity dates in a course
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
When I set the following fields to these values:
|
||||
| Show activity dates | No |
|
||||
And I click on "Save and display" "button"
|
||||
|
@ -24,7 +24,7 @@ Feature: Access to downloading course content can be controlled
|
||||
Scenario: Site admins can remove the download course content feature
|
||||
Given I log in as "admin"
|
||||
And I am on "Hockey 101" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Enable download course content" to "Yes"
|
||||
And I press "Save and display"
|
||||
And "Download course content" "link" should exist in current page administration
|
||||
@ -32,7 +32,7 @@ Feature: Access to downloading course content can be controlled
|
||||
| downloadcoursecontentallowed | 0 |
|
||||
And I am on "Hockey 101" course homepage
|
||||
Then "Download course content" "link" should not exist in current page administration
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I should not see "Enable download course content"
|
||||
|
||||
Scenario: Site admins can set the default value for whether download course content is enabled in courses
|
||||
@ -49,12 +49,12 @@ Feature: Access to downloading course content can be controlled
|
||||
Given I log in as "teacher1"
|
||||
When I am on "Hockey 101" course homepage
|
||||
And "Download course content" "link" should not exist in current page administration
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I should see "Enable download course content"
|
||||
And I set the field "Enable download course content" to "Yes"
|
||||
And I press "Save and display"
|
||||
Then "Download course content" "link" should exist in current page administration
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Enable download course content" to "No"
|
||||
And I press "Save and display"
|
||||
And "Download course content" "link" should not exist in current page administration
|
||||
@ -69,7 +69,7 @@ Feature: Access to downloading course content can be controlled
|
||||
And I log in as "teacher1"
|
||||
And I am on "Hockey 101" course homepage
|
||||
And "Download course content" "link" should exist in current page administration
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And "Enable download course content" "select" should exist
|
||||
And I log out
|
||||
# Remove teacher's capabilities for download course content.
|
||||
@ -83,7 +83,7 @@ Feature: Access to downloading course content can be controlled
|
||||
When I log in as "teacher1"
|
||||
And I am on "Hockey 101" course homepage
|
||||
Then "Download course content" "link" should not exist in current page administration
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I should see "Enable download course content"
|
||||
And I should see "Site default (Yes)"
|
||||
And "Enable download course content" "select" should not exist
|
||||
@ -91,7 +91,7 @@ Feature: Access to downloading course content can be controlled
|
||||
Scenario: Students require a capability to access the download course content feature in a course
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Hockey 101" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Enable download course content" to "Yes"
|
||||
And I press "Save and display"
|
||||
And I log out
|
||||
|
@ -40,10 +40,10 @@ Feature: Courses can be set up to display dates relative to the user's enrolment
|
||||
| Course short name | C2 |
|
||||
| Relative dates mode | No |
|
||||
And I am on "Course 1" course homepage
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
Then the "Relative dates mode" "select" should be disabled
|
||||
And the field "Relative dates mode" matches value "Yes"
|
||||
And I am on "Course 2" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And the "Relative dates mode" "select" should be disabled
|
||||
And the field "Relative dates mode" matches value "No"
|
||||
|
@ -25,7 +25,7 @@ Feature: Tagging courses
|
||||
| teacher2 | c2 | teacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Tags | Mathematics |
|
||||
And I press "Save and display"
|
||||
@ -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" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
Then "Mathematics" "autocomplete_suggestions" should exist
|
||||
And I set the following fields to these values:
|
||||
| Tags | Mathematics, Algebra |
|
||||
And I press "Save and display"
|
||||
And I am on "Course 2" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Tags | Mathematics, Geometry |
|
||||
And I press "Save and display"
|
||||
|
@ -37,7 +37,7 @@ Feature: Fields locked control who is able to edit it
|
||||
| Locked | Yes |
|
||||
And I click on "Save changes" "button" in the "Adding a new Short text" "dialogue"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field1 | testcontent1 |
|
||||
| Test field2 | testcontent2 |
|
||||
@ -48,7 +48,7 @@ Feature: Fields locked control who is able to edit it
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the field "Test field1" matches value "testcontent1"
|
||||
And I should not see "Test field2"
|
||||
|
@ -32,7 +32,7 @@ Feature: The visibility of fields control where they are displayed
|
||||
And I log out
|
||||
Then I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | testcontent |
|
||||
And I press "Save and display"
|
||||
@ -52,7 +52,7 @@ Feature: The visibility of fields control where they are displayed
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | testcontent |
|
||||
And I press "Save and display"
|
||||
@ -72,7 +72,7 @@ Feature: The visibility of fields control where they are displayed
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | testcontent |
|
||||
And I press "Save and display"
|
||||
|
@ -17,7 +17,7 @@ Feature: Edit course settings
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Course full name | Edited course fullname |
|
||||
| Course short name | Edited course shortname |
|
||||
@ -27,7 +27,7 @@ Feature: Edit course settings
|
||||
And I should not see "C1"
|
||||
And I should see "Edited course fullname"
|
||||
And I should see "Edited course shortname"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And the field "Course full name" matches value "Edited course fullname"
|
||||
And the field "Course short name" matches value "Edited course shortname"
|
||||
And the field "Course summary" matches value "Edited course summary"
|
||||
|
@ -19,7 +19,7 @@ Feature: Force group mode in a course
|
||||
And I add a "Chat" to section "1" and I fill the form with:
|
||||
| Name of this chat room | Chat room |
|
||||
| Description | Chat description |
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
|
||||
@javascript
|
||||
Scenario: Forced group mode using separate groups
|
||||
|
@ -33,7 +33,7 @@ Feature: Activities can be moved between sections
|
||||
And I should not see "Test forum name" in the "Topic 1" "section"
|
||||
|
||||
Scenario: Move activities in the course home with Javascript disabled using paged mode
|
||||
Given I navigate to "Edit settings" in current page administration
|
||||
Given I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Course layout | Show one section per page |
|
||||
And I press "Save and display"
|
||||
@ -42,7 +42,7 @@ Feature: Activities can be moved between sections
|
||||
And I should not see "Test forum name" in the "Topic 1" "section"
|
||||
|
||||
Scenario: Move activities in a course section with Javascript disabled using paged mode
|
||||
Given I navigate to "Edit settings" in current page administration
|
||||
Given I navigate to "Settings" in current page administration
|
||||
And the following "activity" exists:
|
||||
| activity | forum |
|
||||
| course | C1 |
|
||||
|
@ -31,7 +31,7 @@ Feature: Sections can be moved
|
||||
| activity | name | intro | course | idnumber | section |
|
||||
| forum | Test forum name | Test forum name description | C1 | forum1 | 1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Course layout | Show one section per page |
|
||||
And I press "Save and display"
|
||||
@ -45,7 +45,7 @@ Feature: Sections can be moved
|
||||
| activity | name | intro | course | idnumber | section |
|
||||
| forum | Test forum name | Test forum name description | C1 | forum1 | 2 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Course layout | Show one section per page |
|
||||
And I press "Save and display"
|
||||
|
@ -21,7 +21,7 @@ Feature: Rename roles within a course
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Your word for 'Non-editing teacher' | Tutor |
|
||||
| Your word for 'Student' | Learner |
|
||||
@ -44,7 +44,7 @@ Feature: Rename roles within a course
|
||||
And the "Assign role" select box should contain "Learner (Student)"
|
||||
And I click on "Cancel" "button" in the "Enrol users" "dialogue"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Your word for 'Non-editing teacher' | |
|
||||
| Your word for 'Student' | |
|
||||
|
@ -20,7 +20,7 @@ Feature: Rename roles in a course
|
||||
Scenario: Teacher can rename roles
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I should see "Role renaming"
|
||||
When I set the following fields to these values:
|
||||
| Your word for 'Teacher' | Lecturer |
|
||||
@ -46,6 +46,6 @@ Feature: Rename roles in a course
|
||||
And I follow "Log out"
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
Then I should not see "Role renaming"
|
||||
And I should not see "Your word for 'Teacher'"
|
||||
|
@ -57,7 +57,7 @@ Feature: View subfolders in a course in-line
|
||||
And I set the field "New folder name" to "Test sub subfolder"
|
||||
And I click on "button.fp-dlg-butcreate" "css_element" in the "div.fp-mkdir-dlg" "css_element"
|
||||
And I press "Save changes"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
When I set the field "Display folder contents" to "Inline on a course page"
|
||||
And I press "Save and return to course"
|
||||
Then I should see "Test subfolder 1"
|
||||
|
@ -69,7 +69,7 @@ Feature: Managers can manage course custom fields checkbox
|
||||
And I am on site homepage
|
||||
Then I should see "Test field: Yes"
|
||||
When I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Test field" to ""
|
||||
And I press "Save and display"
|
||||
|
@ -68,7 +68,7 @@ Feature: Managers can manage course custom fields date
|
||||
Then I log in as "teacher1"
|
||||
When I am on site homepage
|
||||
When I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
Then "#id_customfield_testfield_hour" "css_element" should be visible
|
||||
Then "#id_customfield_testfield_minute" "css_element" should be visible
|
||||
@ -95,7 +95,7 @@ Feature: Managers can manage course custom fields date
|
||||
Then I log in as "teacher1"
|
||||
When I am on site homepage
|
||||
When I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
Then "#id_customfield_testfield_hour" "css_element" should not be visible
|
||||
Then "#id_customfield_testfield_minute" "css_element" should not be visible
|
||||
|
@ -73,7 +73,7 @@ Feature: Managers can manage course custom fields text
|
||||
And I log out
|
||||
Then I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| See more on website | course/view.php?id=35 |
|
||||
And I press "Save and display"
|
||||
@ -102,7 +102,7 @@ Feature: Managers can manage course custom fields text
|
||||
And I log out
|
||||
Then I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | 1234 |
|
||||
And I press "Save and display"
|
||||
@ -131,7 +131,7 @@ Feature: Managers can manage course custom fields text
|
||||
When I am on site homepage
|
||||
Then I should see "Test field: testdefault"
|
||||
When I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
Then the "value" attribute of "#id_customfield_testfield" "css_element" should contain "testdefault"
|
||||
When I set the following fields to these values:
|
||||
| Test field | |
|
||||
|
@ -53,7 +53,7 @@ Feature: Default value for the textarea custom field can contain images
|
||||
# Teacher will see the image when editing existing course.
|
||||
And I log in as "teacher"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
Then "//img[contains(@src, 'draftfile.php') and contains(@src, '/gd-logo.png') and @alt='Example']" "xpath_element" should exist in the "Test field" "form_row"
|
||||
# Save the course without changing the default value.
|
||||
|
@ -28,7 +28,7 @@ Feature: Teachers can edit course custom fields
|
||||
Scenario: Display custom fields on course edit form
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
Then I should see "Category for test"
|
||||
And I should see "Field 1"
|
||||
@ -57,7 +57,7 @@ Feature: Teachers can edit course custom fields
|
||||
| customfield_f4[year] | 2019 |
|
||||
| Field 5 | b |
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And the following fields match these values:
|
||||
| Course full name | Course 2 |
|
||||
| Course short name | C2 |
|
||||
@ -90,7 +90,7 @@ Feature: Teachers can edit course custom fields
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
Then the image at "//div[contains(@class, 'fitem')][contains(., 'Field 1')]/following-sibling::div[1]//img[contains(@src, 'pluginfile.php') and contains(@src, '/core_customfield/description/') and @alt='Example']" "xpath_element" should be identical to "lib/tests/fixtures/gd-logo.png"
|
||||
And I log out
|
||||
|
@ -31,7 +31,7 @@ Feature: Requiredness The course custom fields can be mandatory or not
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I press "Save and display"
|
||||
Then I should see "You must supply a value here"
|
||||
And I set the field "Test field" to "some value"
|
||||
@ -52,7 +52,7 @@ Feature: Requiredness The course custom fields can be mandatory or not
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I press "Save and display"
|
||||
Then I should see "Course 1"
|
||||
And I should see "Topic 1"
|
||||
|
@ -33,12 +33,12 @@ Feature: Uniqueness The course custom fields can be mandatory or not
|
||||
Scenario: A course custom field with unique data must not allow same data in same field in different courses
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | testcontent |
|
||||
And I press "Save and display"
|
||||
And I am on "Course 2" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | testcontent |
|
||||
And I press "Save and display"
|
||||
@ -47,12 +47,12 @@ Feature: Uniqueness The course custom fields can be mandatory or not
|
||||
Scenario: A course custom field with unique data must not compare with itself
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | testcontent |
|
||||
And I press "Save and display"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | testcontent |
|
||||
And I press "Save and display"
|
||||
@ -62,12 +62,12 @@ Feature: Uniqueness The course custom fields can be mandatory or not
|
||||
Scenario: A course custom field with unique data must allow empty data
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | |
|
||||
And I press "Save and display"
|
||||
And I am on "Course 2" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Test field | |
|
||||
And I press "Save and display"
|
||||
|
@ -51,7 +51,7 @@ Feature: We can set the grade to pass value
|
||||
| assign | Test Assignment 1 | Submit your online text | C1 | 1 | assign1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Assignment 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| assignsubmission_onlinetext_enabled | 1 |
|
||||
| grade[modgrade_type] | Point |
|
||||
@ -64,7 +64,7 @@ Feature: We can set the grade to pass value
|
||||
Then the field "Grade to pass" matches value "25"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test Assignment 1"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And I expand all fieldsets
|
||||
And I set the field "Grade to pass" to "30"
|
||||
And I press "Save and return to course"
|
||||
@ -78,7 +78,7 @@ Feature: We can set the grade to pass value
|
||||
| assign | Test Assignment 1 | Submit your online text | C1 | 1 | assign1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Assignment 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| grade[modgrade_type] | Scale |
|
||||
| grade[modgrade_scale] | Test Scale 1 |
|
||||
@ -93,7 +93,7 @@ Feature: We can set the grade to pass value
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test Assignment 1"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And the field "Grade to pass" matches value "4"
|
||||
|
||||
Scenario: Set a invalid grade to pass for an assignment activity using scales
|
||||
@ -102,7 +102,7 @@ Feature: We can set the grade to pass value
|
||||
| assign | Test Assignment 1 | Submit your online text | C1 | 1 | assign1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Assignment 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| grade[modgrade_type] | Scale |
|
||||
| grade[modgrade_scale] | Test Scale 1 |
|
||||
@ -116,7 +116,7 @@ Feature: We can set the grade to pass value
|
||||
| workshop | Test Workshop 1 | Test workshop | C1 | 1 | workshop1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Workshop 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| grade | 80 |
|
||||
| Submission grade to pass | 40 |
|
||||
@ -137,7 +137,7 @@ Feature: We can set the grade to pass value
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test Workshop 1"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And the field "Submission grade to pass" matches value "45"
|
||||
And the field "Assessment grade to pass" matches value "15"
|
||||
|
||||
@ -147,7 +147,7 @@ Feature: We can set the grade to pass value
|
||||
| workshop | Test Workshop 1 | Test workshop | C1 | 1 | workshop1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Workshop 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| grade | 80 |
|
||||
| Submission grade to pass | 90 |
|
||||
@ -163,7 +163,7 @@ Feature: We can set the grade to pass value
|
||||
| quiz | Test Quiz 1 | C1 | 1 | quiz1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Quiz 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Grade to pass | 9.5 |
|
||||
And I press "Save and return to course"
|
||||
@ -176,7 +176,7 @@ Feature: We can set the grade to pass value
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test Quiz 1"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And the field "Grade to pass" matches value "8.00"
|
||||
|
||||
Scenario: Set a valid grade to pass for lesson activity
|
||||
@ -185,7 +185,7 @@ Feature: We can set the grade to pass value
|
||||
| lesson | Test Lesson 1 | Test | C1 | 1 | lesson1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Lesson 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Grade to pass | 90 |
|
||||
And I press "Save and return to course"
|
||||
@ -198,7 +198,7 @@ Feature: We can set the grade to pass value
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test Lesson 1"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And the field "Grade to pass" matches value "80"
|
||||
|
||||
Scenario: Set a valid grade to pass for database activity
|
||||
@ -207,7 +207,7 @@ Feature: We can set the grade to pass value
|
||||
| data | Test Database 1 | Test | C1 | 1 | data1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Database 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
| Ratings > Aggregate type | Average of ratings |
|
||||
@ -222,7 +222,8 @@ Feature: We can set the grade to pass value
|
||||
And I set the field "Grade to pass" to "80"
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I click on "Edit settings" "link" in the "Test Database 1" activity
|
||||
And I follow "Test Database 1"
|
||||
And I follow "Settings"
|
||||
And the field "Grade to pass" matches value "80"
|
||||
|
||||
Scenario: Set an invalid grade to pass for forum activity
|
||||
@ -231,7 +232,7 @@ Feature: We can set the grade to pass value
|
||||
| forum | Test Forum 1 | Test | C1 | 1 | forum1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Forum 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
| Ratings > Aggregate type | Average of ratings |
|
||||
@ -247,7 +248,7 @@ Feature: We can set the grade to pass value
|
||||
| forum | Test Forum 1 | Test | C1 | 1 | forum1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Forum 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
| Ratings > Aggregate type | Average of ratings |
|
||||
@ -263,7 +264,7 @@ Feature: We can set the grade to pass value
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test Forum 1"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And the field "Ratings > Grade to pass" matches value "80"
|
||||
|
||||
Scenario: Set a valid grade to pass for glossary activity
|
||||
@ -272,7 +273,7 @@ Feature: We can set the grade to pass value
|
||||
| glossary | Test Glossary 1 | Test | C1 | 1 | glossary1 |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test Glossary 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Ratings > Aggregate type | Average of ratings |
|
||||
| id_scale_modgrade_type | Point |
|
||||
@ -287,5 +288,5 @@ Feature: We can set the grade to pass value
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test Glossary 1"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And the field "Grade to pass" matches value "80"
|
||||
|
@ -28,13 +28,13 @@ Feature: We can enter in grades and view reports from the gradebook
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment name 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Description | Submit your online text |
|
||||
| assignsubmission_onlinetext_enabled | 1 |
|
||||
And I press "Save and return to course"
|
||||
And I follow "Test assignment name 2"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Description | Submit your online text |
|
||||
| assignsubmission_onlinetext_enabled | 1 |
|
||||
|
@ -23,7 +23,7 @@ Feature: The description of a group can be viewed by students and teachers
|
||||
Scenario: A student can see the group description when visible groups are set. Teachers can see group details.
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Group mode | Visible groups |
|
||||
And I press "Save and display"
|
||||
@ -72,7 +72,7 @@ Feature: The description of a group can be viewed by students and teachers
|
||||
Scenario: A student can not see the group description when separate groups are set. Teachers can see group details.
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Group mode | Separate groups |
|
||||
And I press "Save and display"
|
||||
|
@ -113,7 +113,7 @@ Feature: Add h5ps to Atto
|
||||
Then I should not see "reveal"
|
||||
And I should see "Cloudberries"
|
||||
And I switch to the main frame
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I click on ".h5p-placeholder" "css_element"
|
||||
And I click on "Insert H5P" "button" in the "#fitem_id_page" "css_element"
|
||||
# External URL
|
||||
@ -149,7 +149,7 @@ Feature: Add h5ps to Atto
|
||||
And I should not see "Embed"
|
||||
And I should not see "Rights of use"
|
||||
And I switch to the main frame
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I click on ".h5p-placeholder" "css_element"
|
||||
And I click on "Insert H5P" "button" in the "#fitem_id_page" "css_element"
|
||||
And I click on "H5P options" "link"
|
||||
@ -165,7 +165,7 @@ Feature: Add h5ps to Atto
|
||||
And I should not see "Embed"
|
||||
And I should not see "Rights of use"
|
||||
And I switch to the main frame
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I click on ".h5p-placeholder" "css_element"
|
||||
And I click on "Insert H5P" "button" in the "#fitem_id_page" "css_element"
|
||||
# Embed and copyright buttons displayed. Download not displayed
|
||||
@ -197,7 +197,7 @@ Feature: Add h5ps to Atto
|
||||
And I should see "Far far away"
|
||||
And I should not see "Embed"
|
||||
And I switch to the main frame
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I click on ".h5p-placeholder" "css_element"
|
||||
And I click on "Insert H5P" "button" in the "#fitem_id_page" "css_element"
|
||||
And I click on "H5P options" "link"
|
||||
|
@ -20,7 +20,7 @@ Feature: Atto Autosave
|
||||
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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "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" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
Then I should not see "This is my draft"
|
||||
And I should see "Modified text"
|
||||
|
@ -38,7 +38,7 @@ Feature: Add text direction and alignment
|
||||
| <component> | <stringid> | <localstring> |
|
||||
And I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I press "Show more buttons"
|
||||
And I press "HTML"
|
||||
Then I should see "<partialtext>"
|
||||
|
@ -49,13 +49,13 @@ Feature: Using the activity grade form element
|
||||
And I set the field "scale[modgrade_scale]" to "ABCDEF"
|
||||
And I press "Save and display"
|
||||
And I should not see "You cannot change the type, as grades already exist for this item"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I should not see "Some grades have already been awarded, so the grade type"
|
||||
And I set the field "scale[modgrade_scale]" to "Letter scale"
|
||||
And I press "Save and display"
|
||||
And I should not see "You cannot change the scale, as grades already exist for this item"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I should not see "Some grades have already been awarded, so the grade type"
|
||||
And I set the field "scale[modgrade_type]" to "Point"
|
||||
@ -100,13 +100,13 @@ Feature: Using the activity grade form element
|
||||
And I follow "Discussion subject"
|
||||
And I set the field "rating" to "D"
|
||||
And I am on the "Test forum name" "forum activity" page
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
When I expand all fieldsets
|
||||
Then I should see "Some grades have already been awarded, so the grade type and scale cannot be changed"
|
||||
# Try saving the form and visiting it back to verify that everything is working ok.
|
||||
And I press "Save and display"
|
||||
And I should not see "When selecting a ratings aggregate type you must also select"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the field "Aggregate type" matches value "Average of ratings"
|
||||
And the field "scale[modgrade_type]" matches value "Scale"
|
||||
@ -144,7 +144,7 @@ Feature: Using the activity grade form element
|
||||
Then I should see "Some grades have already been awarded, so the grade type and scale cannot be changed"
|
||||
# Try saving the form and visiting it back to verify everything is working ok.
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the field "grade[modgrade_type]" matches value "Scale"
|
||||
And the field "grade[modgrade_scale]" matches value "ABCDEF"
|
||||
@ -174,7 +174,7 @@ Feature: Using the activity grade form element
|
||||
And I follow "Discussion subject"
|
||||
And I set the field "rating" to "100"
|
||||
And I am on the "Test forum name" "forum activity" page
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
When I expand all fieldsets
|
||||
Then I should see "You cannot change the type, as grades already exist for this item."
|
||||
And the "Maximum grade" "field" should be disabled
|
||||
|
@ -25,20 +25,20 @@ Feature: In an assignment, limit submittable file types
|
||||
| activity | course | name | duedate | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | assignsubmission_file_maxfiles | assignsubmission_file_maxsizebytes |
|
||||
| assign | C1 | Test assignment name | 1388534400 | 0 | 1 | 1 | 0 |
|
||||
And I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
When I set the field "Accepted file types" to "image/png;doesntexist;.anything;unreal/mimetype;nodot"
|
||||
And I press "Save and display"
|
||||
And I should see "Unknown file types: .doesntexist, .anything, unreal/mimetype, .nodot"
|
||||
And I set the field "Accepted file types" to "image/png;spreadsheet"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And the field "Accepted file types" matches value "image/png,spreadsheet"
|
||||
And I set the field "Accepted file types" to ""
|
||||
And I press "Choose"
|
||||
And I set the field "Image files" to "1"
|
||||
And I press "Save changes"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
Then the field "Accepted file types" matches value "image"
|
||||
|
||||
@javascript @_file_upload
|
||||
|
@ -44,7 +44,7 @@ Feature: View activity completion in the assignment activity
|
||||
@javascript
|
||||
Scenario: The manual completion button will not be shown on the course page if the Show activity completion conditions is set to No
|
||||
Given I am on the "Course 1" course page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Show activity completion conditions" to "No"
|
||||
And I press "Save and display"
|
||||
|
@ -108,7 +108,7 @@ Feature: Assign reset
|
||||
|
||||
Scenario: Use course reset to reset blind marking assignment.
|
||||
When I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| blindmarking | 1 |
|
||||
And I press "Save"
|
||||
|
@ -70,7 +70,7 @@ Feature: Assign group override
|
||||
|
||||
Scenario: Allow a group to have a different due date
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Allow submissions from | disabled |
|
||||
| Due date | ##1 Jan 2000 08:00## |
|
||||
@ -92,7 +92,7 @@ Feature: Assign group override
|
||||
|
||||
Scenario: Allow a group to have a different cut off date
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Due date | disabled |
|
||||
| Allow submissions from | disabled |
|
||||
@ -114,7 +114,7 @@ Feature: Assign group override
|
||||
|
||||
Scenario: Allow a group to have a different start date
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Due date | disabled |
|
||||
| Allow submissions from | ##1 January 2030 08:00## |
|
||||
@ -138,7 +138,7 @@ Feature: Assign group override
|
||||
@javascript
|
||||
Scenario: Add both a user and group override and verify that both are applied correctly
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Due date | disabled |
|
||||
| Allow submissions from | ##1 January 2040 08:00## |
|
||||
|
@ -25,7 +25,7 @@ Feature: Assignment with no calendar capabilites
|
||||
| activity | name | intro | course | section |
|
||||
| assign | Test assignment name | Test assignment description | C1 | 1 |
|
||||
And I am on the "Test assignment name" Activity page
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Allow submissions from | ##1 January 2017## |
|
||||
| Due date | ##1 February 2017## |
|
||||
@ -35,7 +35,7 @@ Feature: Assignment with no calendar capabilites
|
||||
And I log out
|
||||
|
||||
When I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Allow submissions from | ##1 January 2018## |
|
||||
| Due date | ##1 February 2018## |
|
||||
|
@ -62,7 +62,7 @@ Feature: Assign user override
|
||||
@javascript
|
||||
Scenario: Allow a user to have a different due date
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Allow submissions from | disabled |
|
||||
| Due date | ##1 Jan 2000 08:00## |
|
||||
@ -85,7 +85,7 @@ Feature: Assign user override
|
||||
@javascript
|
||||
Scenario: Allow a user to have a different cut off date
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Due date | disabled |
|
||||
| Allow submissions from | disabled |
|
||||
@ -108,7 +108,7 @@ Feature: Assign user override
|
||||
@javascript
|
||||
Scenario: Allow a user to have a different start date
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Due date | disabled |
|
||||
| Allow submissions from | ##1 January 2030 08:00## |
|
||||
@ -206,7 +206,7 @@ Feature: Assign user override
|
||||
@javascript
|
||||
Scenario: Create a user override when the assignment is not available to the student
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Availability" to "Hide from students"
|
||||
And I click on "Save and display" "button"
|
||||
|
@ -43,7 +43,7 @@ Feature: Group assignment submissions
|
||||
And I set the following fields to these values:
|
||||
| Group mode | Separate groups |
|
||||
And I press "Save and return to course"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Group mode | Separate groups |
|
||||
And I press "Save and display"
|
||||
|
@ -58,7 +58,7 @@ Feature: Hide grader identities identity from students
|
||||
Scenario: Hidden grading is enabled.
|
||||
# Enable the hidden grader option
|
||||
Given I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I follow "Expand all"
|
||||
And I set the field "Hide grader identity from students" to "1"
|
||||
And I press "Save and return to course"
|
||||
|
@ -39,7 +39,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
|
||||
And I am on the "Test assignment name" "assign activity" page
|
||||
|
||||
Scenario: Update the max grade for an assignment without rescaling existing grades
|
||||
Given I navigate to "Edit settings" in current page administration
|
||||
Given I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "No"
|
||||
And I set the field "Maximum grade" to "80"
|
||||
@ -48,14 +48,14 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
|
||||
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
|
||||
|
||||
Scenario: Update an assignment without touching the max grades
|
||||
Given I navigate to "Edit settings" in current page administration
|
||||
Given I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "No"
|
||||
And I set the field "Maximum grade" to "80"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "Yes"
|
||||
And I set the field "Maximum grade" to "80"
|
||||
@ -64,7 +64,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
|
||||
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
|
||||
|
||||
Scenario: Update the max grade for an assignment rescaling existing grades
|
||||
Given I navigate to "Edit settings" in current page administration
|
||||
Given I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "Yes"
|
||||
And I set the field "Maximum grade" to "50"
|
||||
@ -77,7 +77,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
|
||||
And I click on "Grade" "link" in the "Student 2" "table_row"
|
||||
And I wait until the page is ready
|
||||
And I follow "Assignment: Test assignment name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "Yes"
|
||||
And I set the field "Maximum grade" to "50"
|
||||
|
@ -30,7 +30,7 @@ Feature: Set availability dates for an assignment
|
||||
|
||||
Scenario: Student cannot submit an assignment prior to the 'allow submissions from' date
|
||||
Given I am on the "Assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I follow "Expand all"
|
||||
# Set 'Allow submissions from' to tomorrow at noon.
|
||||
And I set the field "Allow submissions from" to "##tomorrow noon##"
|
||||
@ -44,7 +44,7 @@ Feature: Set availability dates for an assignment
|
||||
|
||||
Scenario: Student can see the assignment's due date in the course calendar
|
||||
Given I am on the "Assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I follow "Expand all"
|
||||
# Set 'Allow submissions from' to the first day of this month at noon.
|
||||
And I set the field "Allow submissions from" to "##first day of this month noon##"
|
||||
@ -63,7 +63,7 @@ Feature: Set availability dates for an assignment
|
||||
@_file_upload
|
||||
Scenario: Student can submit an assignment before the due date
|
||||
Given I am on the "Assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I follow "Expand all"
|
||||
# Set 'Allow submissions from' to now.
|
||||
And I set the field "Allow submissions from" to "##now##"
|
||||
@ -91,7 +91,7 @@ Feature: Set availability dates for an assignment
|
||||
@_file_upload
|
||||
Scenario: Student can submit an assignment after the due date and the submission is marked as late
|
||||
Given I am on the "Assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I follow "Expand all"
|
||||
# Set 'Allow submissions from' to 3 days ago.
|
||||
And I set the field "Allow submissions from" to "##3 days ago##"
|
||||
@ -122,7 +122,7 @@ Feature: Set availability dates for an assignment
|
||||
|
||||
Scenario: Student cannot submit an assignment after the cut-off date
|
||||
Given I am on the "Assignment name" Activity page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I follow "Expand all"
|
||||
# Set 'Allow submissions from' to 3 days ago.
|
||||
And I set the field "Allow submissions from" to "##3 days ago##"
|
||||
|
@ -34,7 +34,7 @@ Feature: Display the book description in the book and optionally in the course
|
||||
Scenario: Show book description in the course homepage
|
||||
Given I am on "Course 1" course homepage
|
||||
And I follow "Test book"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And the following fields match these values:
|
||||
| Display description on course page | |
|
||||
And I set the following fields to these values:
|
||||
@ -46,7 +46,7 @@ Feature: Display the book description in the book and optionally in the course
|
||||
Scenario: Hide book description in the course homepage
|
||||
Given I am on "Course 1" course homepage
|
||||
And I follow "Test book"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And the following fields match these values:
|
||||
| Display description on course page | |
|
||||
And I press "Save and return to course"
|
||||
|
@ -40,13 +40,13 @@ Feature: In a book, change the navigation options
|
||||
And "Next" "link" should not exist
|
||||
And I click on "2. Test chapter 2" "link" in the "Table of contents" "block"
|
||||
And "Previous" "link" should not exist
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Style of navigation" to "Images"
|
||||
And I press "Save and display"
|
||||
And "Next:" "icon" should exist
|
||||
And I click on "2. Test chapter 2" "link" in the "Table of contents" "block"
|
||||
And "Previous:" "icon" should exist
|
||||
When I navigate to "Edit settings" in current page administration
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I set the field "Style of navigation" to "Text"
|
||||
And I press "Save and display"
|
||||
Then "Next" "link" should exist
|
||||
|
@ -33,7 +33,7 @@ Feature: In a book, verify log entries
|
||||
And I click on "Next" "link"
|
||||
And I click on "Previous" "link"
|
||||
And I navigate to "Print book" in current page administration
|
||||
And I navigate to "Generate IMS CP" in current page administration
|
||||
And I navigate to "Download" in current page administration
|
||||
And I navigate to "Logs" in current page administration
|
||||
Then I should see "Book exported"
|
||||
And I should see "Book printed"
|
||||
|
@ -18,7 +18,7 @@ Feature: View activity completion information in the chat activity
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
|
@ -23,14 +23,14 @@ Feature: Chat reset
|
||||
Scenario: Use course reset to update chat start date
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| startdate[day] | 1 |
|
||||
| startdate[month] | January |
|
||||
| startdate[year] | 2020 |
|
||||
And I press "Save and display"
|
||||
And I follow "Test chat name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| chattime[day] | 1 |
|
||||
| chattime[month] | January |
|
||||
@ -50,6 +50,6 @@ Feature: Chat reset
|
||||
And I press "Continue"
|
||||
Then I am on "Course 1" course homepage
|
||||
And I follow "Test chat name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the "chattime[year]" select box should contain "2030"
|
||||
|
@ -29,7 +29,7 @@ Feature: Chat with no calendar capabilites
|
||||
| moodle/calendar:manageentries | Prohibit |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test chat name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Repeat/publish session times | No repeats - publish the specified time only |
|
||||
| id_chattime_day | 1 |
|
||||
@ -42,7 +42,7 @@ Feature: Chat with no calendar capabilites
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test chat name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_chattime_year | 2018 |
|
||||
And I press "Save and return to course"
|
||||
|
@ -29,7 +29,7 @@ Feature: Allow choice preview
|
||||
|
||||
Scenario: Enable the choice preview option and view the activity as a student before the opening time
|
||||
And I follow "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| timeopen[enabled] | 1 |
|
||||
| timeclose[enabled] | 1 |
|
||||
|
@ -25,7 +25,7 @@ Feature: Restrict availability of the choice module to a deadline
|
||||
| choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| timeopen[enabled] | 1 |
|
||||
| timeopen[day] | 30 |
|
||||
@ -46,7 +46,7 @@ Feature: Restrict availability of the choice module to a deadline
|
||||
| choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| timeopen[enabled] | 1 |
|
||||
| timeopen[day] | 30 |
|
||||
@ -67,7 +67,7 @@ Feature: Restrict availability of the choice module to a deadline
|
||||
| choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| timeclose[enabled] | 1 |
|
||||
| timeclose[day] | 30 |
|
||||
@ -88,7 +88,7 @@ Feature: Restrict availability of the choice module to a deadline
|
||||
| choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| timeclose[enabled] | 1 |
|
||||
| timeclose[day] | 30 |
|
||||
|
@ -29,7 +29,7 @@ Feature: Choice with no calendar capabilites
|
||||
Given I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_timeopen_enabled | 1 |
|
||||
| id_timeopen_day | 1 |
|
||||
@ -44,7 +44,7 @@ Feature: Choice with no calendar capabilites
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_timeopen_year | 2018 |
|
||||
| id_timeclose_year | 2018 |
|
||||
|
@ -26,7 +26,7 @@ Feature: Limit choice responses
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Limit 1" to "1"
|
||||
And I press "Save and display"
|
||||
And I log out
|
||||
@ -48,7 +48,7 @@ Feature: Limit choice responses
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Limit the number of responses allowed | No |
|
||||
And I press "Save and return to course"
|
||||
|
@ -40,7 +40,7 @@ Feature: Teacher can modify choices of the students
|
||||
And I log in as "teacher1"
|
||||
And I change window size to "large"
|
||||
And I am on the "Choice name" "choice activity" page
|
||||
And I navigate to "View 1 responses" in current page administration
|
||||
And I navigate to "Responses" in current page administration
|
||||
And I click on "Student 1 Option 1" "checkbox"
|
||||
And I select "Delete" from the "With selected" singleselect
|
||||
And "Student 1 Option 1" "checkbox" should not exist
|
||||
@ -60,7 +60,7 @@ Feature: Teacher can modify choices of the students
|
||||
And I log out
|
||||
And I change window size to "large"
|
||||
And I am on the "Choice name" "choice activity" page logged in as teacher1
|
||||
And I navigate to "View 1 responses" in current page administration
|
||||
And I navigate to "Responses" in current page administration
|
||||
And I click on "Student 1 Option 1" "checkbox"
|
||||
And I click on "Student 2 Not answered yet" "checkbox"
|
||||
And I click on "Student 3 Not answered yet" "checkbox"
|
||||
@ -85,7 +85,7 @@ Feature: Teacher can modify choices of the students
|
||||
And I log out
|
||||
And I change window size to "large"
|
||||
And I am on the "Choice name" "choice activity" page logged in as teacher1
|
||||
And I navigate to "View 1 responses" in current page administration
|
||||
And I navigate to "Responses" in current page administration
|
||||
And I click on "Student 1 Option 2" "checkbox"
|
||||
And I select "Delete" from the "With selected" singleselect
|
||||
And I click on "Student 1 Option 1" "checkbox"
|
||||
|
@ -46,7 +46,7 @@ Feature: Multiple option choice response
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Choice name"
|
||||
And I click on "Actions menu" "link"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And I set the following fields to these values:
|
||||
| Limit 1 | 1 |
|
||||
| Limit 2 | 1 |
|
||||
@ -77,7 +77,7 @@ Feature: Multiple option choice response
|
||||
And I should see "Limit: 1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Limit the number of responses allowed | No |
|
||||
And I press "Save and return to course"
|
||||
|
@ -22,7 +22,7 @@ Feature: Test the display of the choice module on my home
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| timeopen[enabled] | 1 |
|
||||
| timeclose[enabled] | 1 |
|
||||
|
@ -24,7 +24,7 @@ Feature: A student can see how the results of the choice activity will be publis
|
||||
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Publish results | Do not publish results to students |
|
||||
And I press "Save and return to course"
|
||||
@ -40,7 +40,7 @@ Feature: A student can see how the results of the choice activity will be publis
|
||||
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Publish results | Show results to students after they answer |
|
||||
| Privacy of results | Publish full results, showing names and their choices |
|
||||
@ -57,7 +57,7 @@ Feature: A student can see how the results of the choice activity will be publis
|
||||
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Publish results" to "Show results to students after they answer"
|
||||
And I press "Save and return to course"
|
||||
And I log out
|
||||
@ -72,7 +72,7 @@ Feature: A student can see how the results of the choice activity will be publis
|
||||
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Publish results" to "Show results to students only after the choice is closed"
|
||||
And I set the field "Privacy of results" to "Publish full results, showing names and their choices"
|
||||
And I press "Save and return to course"
|
||||
@ -88,7 +88,7 @@ Feature: A student can see how the results of the choice activity will be publis
|
||||
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Publish results" to "Show results to students only after the choice is closed"
|
||||
And I press "Save and return to course"
|
||||
And I log out
|
||||
@ -103,7 +103,7 @@ Feature: A student can see how the results of the choice activity will be publis
|
||||
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Publish results" to "Always show results to students"
|
||||
And I press "Save and return to course"
|
||||
And I log out
|
||||
|
@ -30,7 +30,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
||||
| option | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Publish results | Do not publish results to students |
|
||||
And I press "Save and return to course"
|
||||
@ -53,7 +53,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
||||
| option | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Publish results | Show results to students after they answer |
|
||||
And I press "Save and return to course"
|
||||
@ -78,7 +78,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
||||
| option | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Publish results | Show results to students only after the choice is closed |
|
||||
And I press "Save and return to course"
|
||||
@ -92,7 +92,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
And I follow "Edit settings"
|
||||
And I follow "Settings"
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
| timeopen[enabled] | 1 |
|
||||
@ -121,7 +121,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
||||
| option | Option 1, Option 2 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Publish results | Always show results to students |
|
||||
And I press "Save and return to course"
|
||||
|
@ -26,7 +26,7 @@ Feature: A teacher can choose whether to publish choice activity results anonymo
|
||||
| choice | Choice 1 | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Publish results | Always show results to students |
|
||||
| Privacy of results | Publish anonymous results, do not show student names |
|
||||
@ -48,7 +48,7 @@ Feature: A teacher can choose whether to publish choice activity results anonymo
|
||||
| choice | Choice 1 | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Publish results | Always show results to students |
|
||||
| Privacy of results | Publish full results, showing names and their choices |
|
||||
|
@ -37,7 +37,7 @@ Feature: Update a choice activity removing options
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
And I should see "View 2 responses"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "option[2]" to ""
|
||||
And I press "Save and display"
|
||||
Then I should see "View 1 responses"
|
||||
|
@ -29,7 +29,7 @@ Feature: Database with no calendar capabilites
|
||||
| data | Test database name | Test database description | C1 | 1 | data1 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test database name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_timeavailablefrom_enabled | 1 |
|
||||
| id_timeavailablefrom_day | 1 |
|
||||
@ -52,7 +52,7 @@ Feature: Database with no calendar capabilites
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test database name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_timeavailablefrom_year | 2018 |
|
||||
| id_timeavailableto_year | 2018 |
|
||||
|
@ -237,7 +237,7 @@ Feature: Anonymous feedback
|
||||
|
||||
Scenario: Collecting new non-anonymous feedback from a previously anonymous feedback activity
|
||||
When I am on the "Course feedback" "feedback activity" page logged in as teacher
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Allow multiple submissions | Yes |
|
||||
And I press "Save and display"
|
||||
|
@ -29,7 +29,7 @@ Feature: Feedback with no calendar capabilites
|
||||
And I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test feedback name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_timeopen_enabled | 1 |
|
||||
| id_timeopen_day | 1 |
|
||||
@ -44,7 +44,7 @@ Feature: Feedback with no calendar capabilites
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test feedback name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| id_timeopen_year | 2018 |
|
||||
| id_timeclose_year | 2018 |
|
||||
|
@ -24,7 +24,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Latest announcements" block
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "id_newsitems" to "1"
|
||||
And I press "Save and display"
|
||||
|
@ -134,7 +134,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
And I log out
|
||||
And I am on the "Test forum name" "forum activity" page logged in as admin
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Subscription mode | Auto subscription |
|
||||
And I press "Save and return to course"
|
||||
@ -178,7 +178,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
And I am on the "Test forum name" "forum activity" page
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Subscription mode | Auto subscription |
|
||||
And I press "Save and return to course"
|
||||
|
@ -91,7 +91,7 @@ Feature: View activity completion in the forum activity
|
||||
@javascript
|
||||
Scenario: Use manual completion
|
||||
Given I am on the "Music history" "forum activity" page logged in as teacher1
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the field "Completion tracking" to "Students can manually mark the activity as completed"
|
||||
And I press "Save and display"
|
||||
|
@ -27,7 +27,7 @@ Feature: A user can control their own subscription preferences for a forum
|
||||
| section | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
Given I follow "Test forum name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Subscription mode | Subscription disabled |
|
||||
And I press "Save and return to course"
|
||||
@ -54,7 +54,7 @@ Feature: A user can control their own subscription preferences for a forum
|
||||
| section | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
Given I follow "Test forum name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Subscription mode | Forced subscription |
|
||||
And I press "Save and return to course"
|
||||
@ -81,7 +81,7 @@ Feature: A user can control their own subscription preferences for a forum
|
||||
| section | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
Given I follow "Test forum name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Subscription mode | Optional subscription |
|
||||
And I press "Save and return to course"
|
||||
@ -110,7 +110,7 @@ Feature: A user can control their own subscription preferences for a forum
|
||||
| section | 1 |
|
||||
And I am on "Course 1" course homepage
|
||||
Given I follow "Test forum name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Subscription mode | Auto subscription |
|
||||
And I press "Save and return to course"
|
||||
|
@ -72,7 +72,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||
| idnumber | 0001 |
|
||||
| section | 1 |
|
||||
And I am on the "Forced Forum 2" "forum activity" page
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Subscription mode | Forced subscription |
|
||||
| Availability | Show on course page |
|
||||
|
@ -29,7 +29,7 @@ Feature: A teacher can control the subscription to a forum
|
||||
When I log in as "teacher"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Subscription mode | Auto subscription |
|
||||
And I press "Save and return to course"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user