And I should not see "C_shortname Course fullname"
Scenario: Courses list with extended course names
- Given I expand "Site administration" node
- And I click on "Courses" "link" in the "//div[@id='settingsnav']/descendant::li[contains(concat(' ', normalize-space(@class), ' '), ' type_setting ')][contains(., 'Appearance')]" "xpath_element"
+ Given I navigate to "Appearance > Courses" in site administration
And I set the field "Display extended course names" to "1"
When I press "Save changes"
And I am on site homepage
And I log in as "admin"
And I add "User Two (two@example.com)" user to "CH1" cohort members
And I add "User Three (three@example.com)" user to "CH1" cohort members
- And I follow "Browse list of users"
+ And I navigate to "Users > Accounts > Browse list of users" in site administration
Scenario: Filter user accounts by role and cohort
When I set the following fields to these values:
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
Then I should see "Group 1"
And I should see "Group 2"
And I follow "Groupings"
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Permissions"
+ And I navigate to "Users > Permissions" in current page administration
And I set the field "Advanced role override" to "Student (1)"
Then "mod/forum:editanypost" capability has "Allow" permission
And I press "Cancel"
And the following "course enrolments" exist:
| user | course | role |
| user4 | C1 | custom1 |
+ | user2 | C1 | student |
+ | user3 | C1 | editingteacher |
And the following "role assigns" exist:
| user | role | contextlevel | reference |
| user1 | manager | System | |
| user2 | editingteacher | Category | CAT1 |
- | user3 | editingteacher | Course | C1 |
| user5 | custom2 | System | |
When I log in as "user1"
And I am on site homepage
- Then I should see "Front page settings"
+ Then "Edit settings" "link" should exist in current page administration
And I log out
And I log in as "user2"
And I am on site homepage
And I follow "Course 1"
- And I should see "Turn editing on"
+ And "Turn editing on" "link" should exist in current page administration
And I log out
And I log in as "user3"
And I am on site homepage
And I follow "Course 1"
- And I should see "Turn editing on"
+ And "Turn editing on" "link" should exist in current page administration
And I log out
And I log in as "user4"
And I am on site homepage
And I follow "Course 1"
- And I should see "Turn editing on"
+ And "Turn editing on" "link" should exist in current page administration
And I log out
And I log in as "user5"
And I should see "You are logged in as"
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
Then the "groups" select box should contain "Group 1 (1)"
And the "groups" select box should contain "Group 2 (1)"
And I set the field "groups" to "Group 1 (1)"
| System cohort A | 1 |
| System cohort B | 2 |
And I should not see "Cohort in category"
- And I follow "Courses"
+ And I am on course index
And I follow "Cat 1"
And I follow "Cohorts"
And I should not see "System cohort"
| fullname | course | gradecategory |
| Grade sub category 2 | C1 | Grade category 1 |
When I log in as "admin"
- And I am on site homepage
- And I follow "Courses"
+ And I am on course index
And I follow "Course 1"
And I go to "View > Grader report" in the course gradebook
Then I should see "Grade category 1"
Scenario: Course capabilities overrides
Given I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Permissions"
+ And I navigate to "Users > Permissions" in current page administration
And I override the system permissions of "Student" role with:
| mod/forum:deleteanypost | Prohibit |
| mod/forum:editanypost | Prevent |
| Forum name | I'm the name |
| Description | I'm the introduction |
And I follow "I'm the name"
- And I navigate to "Permissions" node in "Forum administration"
+ And I navigate to "Permissions" in current page administration
And I override the system permissions of "Student" role with:
| mod/forum:deleteanypost | Prohibit |
| mod/forum:editanypost | Prevent |
| activity | course | idnumber | name | intro | firstpagetitle | wikimode | visible |
| wiki | C1 | wiki1 | Test this one | Test this one | Test this one | collaborative | 0 |
And I log in as "admin"
- And I expand "Site administration" node
- And I expand "Appearance" node
And I am on site homepage
And I follow "Course 1"
And I navigate to "Reset" node in "Course administration"
| HTML format | Student page contents |
And I press "Save"
Then I should see "Student page contents" in the "region-main" "region"
- And I click on "Edit" "link" in the "Administration" "block"
# Select (multi-select) - Checking "I set the field".
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
# Checkbox - Checking "I set the field".
And I set the field "Display description on course page" to "1"
And I press "Save and return to course"
And I should see "Test this one"
And I follow "Test this one"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
# Checkbox - Checking "the field matches value" and "the following fields match these values".
And the following fields match these values:
| Display description on course page | 1 |
# 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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And the following fields match these values:
| Default format | NWiki |
| Group mode | Separate groups |
@javascript
Scenario: with JS enabled all form fields getters and setters works as expected
Then I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
# Select (multi-select & AJAX) - Checking "I set the field" and "select box should contain".
And I set the field "groups" to "Group 2"
And the "members" select box should contain "Student 2"
And the "available[day]" "field" should be enabled
And the field "deadline[enabled]" matches value "1"
And I press "Save and display"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
Background:
Given I log in as "admin"
And I am on site homepage
- And I expand "Site administration" node
- When I expand "Competencies" node
- Then I should see "Competency frameworks"
Scenario: Create a new framework
- Given I follow "Competency frameworks"
+ Given I navigate to "Competencies > Competency frameworks" in site administration
And I should see "List of competency frameworks"
And I click on "Add new competency framework" "button"
And I should see "General"
Given the following lp "frameworks" exist:
| shortname | idnumber |
| Science Year-2 | sc-y-2 |
- And I follow "Competency frameworks"
+ And I navigate to "Competencies > Competency frameworks" in site administration
And I should see "Science Year-2"
When I click on "Science Year-2" "link"
Then I should see "Science Year-2"
Given the following lp "frameworks" exist:
| shortname | idnumber |
| Science Year-3 | sc-y-3 |
- And I follow "Competency frameworks"
+ And I navigate to "Competencies > Competency frameworks" in site administration
And I should see "Science Year-3"
And I click on "Edit" of edit menu in the "Science Year-3" row
And the field "Name" matches value "Science Year-3 "
Given the following lp "frameworks" exist:
| shortname | idnumber |
| Science Year-4 | sc-y-4 |
- And I follow "Competency frameworks"
+ And I navigate to "Competencies > Competency frameworks" in site administration
And I should see "Science Year-4"
And I should see "sc-y-4"
And I click on "Delete" of edit menu in the "Science Year-4" row
| user | competency |
| admin | Comp1 |
| admin | Comp2 |
- And I follow "Competency frameworks"
+ And I navigate to "Competencies > Competency frameworks" in site administration
And I should see "Science Year-5"
And I click on "Edit" of edit menu in the "Science Year-5" row
And the field "Name" matches value "Science Year-5 "
| user | competency | plan |
| admin | Comp1 | Plan Science-6 |
| admin | Comp2 | Plan Science-6 |
- And I follow "Competency frameworks"
+ And I navigate to "Competencies > Competency frameworks" in site administration
And I should see "Science Year-6"
And I click on "Edit" of edit menu in the "Science Year-6" row
And the field "Name" matches value "Science Year-6 "
| shortname | description |
| Science template | science template description |
And I follow "Home"
- And I expand "Site administration" node
- And I expand "Competencies" node
- And I follow "Learning plan templates"
+ And I navigate to "Competencies > Learning plan templates" in site administration
And I click on ".template-userplans" "css_element" in the "Science template" "table_row"
And I click on ".form-autocomplete-downarrow" "css_element"
And I click on "Admin" item in the autocomplete list
| student-plan1 | COHORTPLAN |
| student-plan2 | COHORTPLAN |
And I follow "Home"
- And I expand "Site administration" node
- And I expand "Competencies" node
- And I follow "Learning plan templates"
+ And I navigate to "Competencies > Learning plan templates" in site administration
And I click on ".template-cohorts" "css_element" in the "Science template cohort" "table_row"
And I click on ".form-autocomplete-downarrow" "css_element"
And I click on "cohort plan" item in the autocomplete list
| Test-Plan3 | user1 | Description of plan 3 for user 1 | active | manager1 |
| Test-Plan4 | user1 | Description of plan 4 for user 1 | active | manager1 |
And I log in as "manager1"
- And I expand "Site administration" node
- And I expand "Users" node
- And I expand "Accounts" node
- And I follow "Browse list of users"
+ And I navigate to "Users > Accounts > Browse list of users" in site administration
And I follow "User 1"
And I follow "Learning plans"
And I should see "List of learning plans"
| Test-Plan3 | user1 | Description of plan 3 for user 1 | active | manager1 |
| Test-Plan4 | user1 | Description of plan 4 for user 1 | active | manager1 |
And I log in as "manager1"
- And I expand "Site administration" node
- And I expand "Users" node
- And I expand "Accounts" node
- And I follow "Browse list of users"
+ And I navigate to "Users > Accounts > Browse list of users" in site administration
And I follow "User 1"
And I follow "Learning plans"
And I should see "List of learning plans"
| Test-Plan3 | user1 | Description of plan 3 for user 1 | complete | manager1 |
| Test-Plan4 | user1 | Description of plan 4 for user 1 | complete | manager1 |
And I log in as "manager1"
- And I expand "Site administration" node
- And I expand "Users" node
- And I expand "Accounts" node
- And I follow "Browse list of users"
+ And I navigate to "Users > Accounts > Browse list of users" in site administration
And I follow "User 1"
And I follow "Learning plans"
And I should see "List of learning plans"
Background:
Given I log in as "admin"
And I am on site homepage
- And I expand "Site administration" node
- When I expand "Competencies" node
- Then I should see "Learning plan templates"
Scenario: Create a new learning plan template
- Given I follow "Learning plan templates"
+ Given I navigate to "Competencies > Learning plan templates" in site administration
And I should see "List of learning plan templates"
And I click on "Add new learning plan template" "button"
And I should see "Add new learning plan template"
Given the following lp "templates" exist:
| shortname | description |
| Science template Year-2 | science template description |
- And I follow "Learning plan templates"
+ And I navigate to "Competencies > Learning plan templates" in site administration
And I should see "Science template Year-2"
When I click on "Science template Year-2" "link"
Then I should see "Science template Year-2"
Given the following lp "templates" exist:
| shortname | description |
| Science template Year-3 | science template description |
- And I follow "Learning plan templates"
+ And I navigate to "Competencies > Learning plan templates" in site administration
And I should see "Science template Year-3"
And I click on "Edit" of edit menu in the "Science template Year-3" row
And the field "Name" matches value "Science template Year-3"
Given the following lp "templates" exist:
| shortname | description |
| Science template Year-4 | science template description |
- And I follow "Learning plan templates"
+ And I navigate to "Competencies > Learning plan templates" in site administration
And I should see "Science template Year-4"
And I click on "Delete" of edit menu in the "Science template Year-4" row
And "Confirm" "dialogue" should be visible
And I should see "Section 1"
And I press "Upload users"
And I press "Continue"
- And I follow "Browse list of users"
+ And I navigate to "Users > Accounts > Browse list of users" in site administration
And I should see "Tom Jones"
And I should see "Trent Reznor"
And I should see "reznor@example.com"
And I am on site homepage
And I follow "Maths"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I set the field "groups" to "Section 1 (1)"
And the "members" select box should contain "Tom Jones"
And I add steps to the "First tour" tour:
| targettype | targetvalue_selector | Title | Content |
| Selector | .usermenu | User menu | This is your personal user menu. You'll find your personal preferences and your user profile here. |
- When I click on "Dashboard" "link" in the "Navigation" "block"
+ When I am on homepage
Then I should see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
And I press "Next"
And I should see "This area shows you what's happening in some of your courses"
And I should see "This area shows you what's happening in some of your courses"
And I press "End tour"
And I should not see "This area shows you what's happening in some of your courses"
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
And I should not see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
And I should not see "This area shows you what's happening in some of your courses"
And I follow "Reset user tour on this page"
And I add steps to the "First tour" tour:
| targettype | Title | Content |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful |
- When I click on "Dashboard" "link" in the "Navigation" "block"
+ When I am on homepage
Then I should not see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
@javascript
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful |
And I open the User tour settings page
When I click on "Enable" "link" in the "My first tour" "table_row"
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
Then I should see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
And I add steps to the "First tour" tour:
| targettype | Title | Content |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful |
- When I click on "Dashboard" "link" in the "Navigation" "block"
+ When I am on homepage
Then I should not see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
@javascript
# Give the assignment 40%.
And I follow "A1"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
# Pick the grade link in the row that has s@example.com in it.
And I click on "Grade" "link" in the "s@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
# Edit it again and check the setting still works.
When I follow "P1"
- And I navigate to "Edit settings" node in "Page module administration"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
Then the field "User profile field" matches value "Super field"
And the field "Value to compare against" matches value "Bananaman"
# Check the button still works after saving and editing.
And I press "Save and display"
- And I navigate to "Edit settings" node in "Forum administration"
+ And I navigate to "Edit 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"
Then I should see "Course 1 restored in a new course"
And I should see "Community finder" in the "Community finder" "block"
And I should see "Test forum name"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" node in "Course administration"
And I expand all fieldsets
And the field "id_format" matches value "Topics format"
And the field "Number of sections" matches value "15"
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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" node in "Course administration"
And I expand all fieldsets
And the field "id_format" matches value "Topics format"
And I set the following fields to these values:
And I press "Save and display"
And I should see "1 January - 7 January"
And I should see "Test forum name"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" node in "Course 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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" node in "Course administration"
And I expand all fieldsets
And the field "id_format" matches value "Social format"
And I press "Cancel"
| 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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" node in "Course administration"
And I expand all fieldsets
Then the field "id_format" matches value "Topics format"
And the field "Number of sections" matches value "15"
| workshop | Test workshop name | Test workshop description | C1 | workshop1 |
When I log in as "admin"
- And I follow "Courses"
+ And I am on course index
And I follow "Course 1"
And I turn editing mode on
And I add the "Activities" block
| id_config_nameformat | Display full names |
And I press "Save changes"
When I follow "Test assignment"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
And I press "Award badge"
And I log out
When I log in as "teacher1"
- And I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "Badge 1" in the "Latest badges" "block"
And I create a calendar event with form data:
| id_eventtype | User |
| id_name | User Event |
- When I click on "Dashboard" "link" in the "Navigation" "block"
+ When I am on homepage
And I follow "Course 1"
And I follow "Hide course events"
And I hover over today in the calendar
And I create a calendar event with form data:
| id_eventtype | User |
| id_name | User Event |
- When I click on "Dashboard" "link" in the "Navigation" "block"
+ When I am on homepage
And I follow "Course 1"
And I hover over today in the calendar
Then I should see "User Event"
And I create a calendar event with form data:
| id_eventtype | User |
| id_name | User Event |
- When I click on "Dashboard" "link" in the "Navigation" "block"
+ When I am on homepage
And I follow "Course 1"
And I follow "Hide user events"
And I hover over today in the calendar
And I follow "Course 1"
And I turn editing mode on
And I follow "Test page name"
- And I navigate to "Edit settings" node in "Page module administration"
+ And I navigate to "Edit 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 |
And I follow "Course 1"
And I turn editing mode on
And I follow "Test page name"
- And I navigate to "Edit settings" node in "Page module administration"
+ And I navigate to "Edit 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 |
And I follow "Course 1"
And I turn editing mode on
And I follow "Test page name"
- And I navigate to "Edit settings" node in "Page module administration"
+ And I navigate to "Edit 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 |
And I click on "Enable" "link" in the "Course meta link" "table_row"
And I am on site homepage
And I follow "Course 2"
- And I navigate to "Enrolment methods" node in "Course administration > Users"
And I add "Course meta link" enrolment method with:
| Link course | C1 |
And I log out
| glossary | Tips and Tricks | Frontpage glossary description | Acceptance test site | glossary0 |
And I log in as "admin"
And I am on site homepage
- And I click on "Turn editing on" "link" in the "Administration" "block"
+ And I turn editing mode on
And I add the "Random glossary entry" block
And I configure the "block_glossary_random" block
And I set the following fields to these values:
Scenario: Configuring the HTML block with Javascript on
Given I log in as "admin"
And I am on site homepage
- When I click on "Turn editing on" "link" in the "Administration" "block"
+ When I turn editing mode on
And I add the "HTML" block
And I configure the "(new HTML block)" block
And I set the field "Content" to "Static text without a header"
Scenario: Configuring the HTML block with Javascript off
Given I log in as "admin"
And I am on site homepage
- When I click on "Turn editing on" "link" in the "Administration" "block"
+ When I turn editing mode on
And I add the "HTML" block
And I configure the "(new HTML block)" block
And I set the field "Content" to "Static text without a header"
Background:
Given I log in as "admin"
And I am on site homepage
- When I click on "Turn editing on" "link" in the "Administration" "block"
+ When I turn editing mode on
And I add the "HTML" block
Scenario: Other users can not see HTML block that has not been configured
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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| News items to show | 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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| News items to show | 0 |
And I press "Save and display"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "ForumNew"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| name | ForumUpdated |
And I press "Save and return to course"
And I follow "Course 1"
And I turn editing mode on
And I follow "Announcements"
- And I navigate to "Edit settings" node in "Forum administration"
+ And I navigate to "Edit 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"
Scenario: Blocks on the dashboard page can have roles assigned to them
Given I log in as "manager1"
- And I click on "Dashboard" "link" in the "Navigation" "block"
When I press "Customise this page"
- Then I should see "Assign roles in Navigation block"
+ Then I should see "Assign roles in Private files block"
Scenario: Blocks on courses can have roles assigned to them
Given I log in as "teacher1"
@javascript
Scenario: Blocks can safely be customised
Given I log in as "admin"
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
And I press "Customise this page"
And I add the "HTML" block
And I configure the "(new HTML block)" block
| block/activity_modules:addinstance | Prohibit |
And I am on site homepage
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Permissions"
+ And I navigate to "Users > Permissions" in current page administration
And I override the system permissions of "Teacher" role with:
| block/completionstatus:addinstance | Prohibit |
And I log out
And I follow "Turn editing on"
And I add the "Tags" block
Then I should see "Tags" in the "Tags" "block"
- And I click on "Participants" "link" in the "//li[p/a[contains(normalize-space(string(.)), 'Courses')]]" "xpath_element"
+ And I navigate to course participants
And I configure the "Tags" block
And I set the following fields to these values:
| Display on page types | Any page |
And I should see "Tags" in the "Tags" "block"
And I follow "Course 1"
And "Tags" "block" should not exist
- And I navigate to "Participants" node in "Courses > C1"
+ And I navigate to course participants
And "Tags" "block" should not exist
And I follow "Course 1"
And I add a "Assignment" to section "1" and I fill the form with:
And I press "Save changes"
And I follow "Course 1"
And I should see "Tags" in the "Tags" "block"
- And I navigate to "Participants" node in "Courses > C1"
+ And I navigate to course participants
And I should see "Tags" in the "Tags" "block"
Scenario: A student can not see another student's blog entries.
Given I log in as "testuser"
And I follow "Course 1"
- And I follow "Participants"
+ And I navigate to course participants
And I follow "Test2 User2"
And I should see "Miscellaneous"
Then I should not see "Blog entries"
And the "Cohort" select box should contain "System empty cohort"
And I set the field "Cohort" to "System cohort"
And I press "Add method"
+ And I follow "Course 1"
And I navigate to "Enrolled users" node in "Course administration > Users"
And I should see "student@example.com"
+ And I follow "Course 1"
And I navigate to "Groups" node in "Course administration > Users"
And I press "Auto-create groups"
And the "Select members from cohort" select box should contain "Cohort in category 1"
And the "Current users" select box should not contain "Forth User (forth@example.com)"
Scenario: Add users to a cohort using a bulk user action
- When I follow "Bulk user actions"
+ When I follow "Accounts"
+ And I follow "Bulk user actions"
And I set the field "Available" to "Third User"
And I press "Add to selection"
And I set the field "Available" to "Forth User"
And I press "Go"
And I set the field "Cohort" to "Test cohort name [333]"
And I press "Add to cohort"
+ And I follow "Accounts"
And I follow "Cohorts"
Then I should see "2" in the "#cohorts" "css_element"
And I click on "Assign" "link" in the "Test cohort name" "table_row"
And I press "Upload users"
And I press "Upload users"
And I press "Continue"
- And I follow "Cohorts"
+ And I navigate to "Users > Accounts > Cohorts" in site administration
And I click on "Assign" "link" in the "Cohort 1" "table_row"
Then the "Current users" select box should contain "Tom Jones (tomjones@example.com)"
And the "Current users" select box should contain "Bob Jones (bobjones@example.com)"
And the "Current users" select box should contain "Alice Smith (alicesmith@example.com)"
And I am on site homepage
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Enrolled users"
+ And I navigate to "Users > Enrolled users" in current page administration
And I should see "Tom Jones"
And I should see "Bob Jones"
And I should not see "Mary Smith"
And I am on site homepage
And I follow "Course 2"
- And I expand "Users" node
- And I follow "Enrolled users"
+ And I navigate to "Users > Enrolled users" in current page administration
And I should see "Mary Smith"
And I should see "Alice Smith"
And I should not see "Tom Jones"
| user | role | contextlevel | reference |
| user1 | manager | Category | CAT1 |
When I log in as "user1"
- And I follow "Courses"
+ And I am on course index
And I follow "Cat 1"
- And I navigate to "Cohorts" node in "Category: Cat 1"
+ And I navigate to "Cohorts" in current page administration
And I follow "Upload cohorts"
And I upload "cohort/tests/fixtures/uploadcohorts1.csv" file to "File" filemanager
And I click on "Preview" "button"
Scenario: Manager in category can see cohorts in the category
When I log in as "user2"
- And I follow "Courses"
+ And I am on course index
And I follow "Cat 1"
And I follow "Cohorts"
And I should not see "All cohorts"
And I am on site homepage
And I follow "Course 1"
And I turn editing mode on
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Enable completion tracking | Yes |
And I press "Save and display"
And I log in as "teacher1"
And I am on site homepage
And I follow "Course 1"
- And I expand "Reports" node
- And I follow "Activity completion"
+ And I navigate to "Reports > Activity completion" in current page administration
And "Student First" user has completed "Test forum name" activity
And I am on site homepage
And I follow "Course 1"
And I follow "Grade assignment"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student First" "table_row"
And I set the following fields to these values:
| Grade | 21 |
And I am on site homepage
And I follow "Course 1"
And I turn editing mode on
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Enable completion tracking | Yes |
And I press "Save and display"
And I am on site homepage
And I follow "Course 1"
And I follow "Grade assignment"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student First" "table_row"
And I set the following fields to these values:
| Grade | 21 |
And I follow "Course 1"
Scenario: When number of discussions is decreased fewer discussions appear
- Given I click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| numdiscussions | 5 |
When I press "Save and display"
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 click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| numdiscussions | -1 |
When I press "Save and display"
And I should not see "This is forum post ten"
Scenario: When number of discussions is increased more discussions appear
- Given I click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| numdiscussions | 9 |
When I press "Save and display"
@javascript
Scenario: Pressing the unlock button allows the user to edit completion settings
Given I follow "TestPage"
- When I click on "Edit settings" "link" in the "Administration" "block"
+ When I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I press "Unlock completion options"
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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
@javascript
Scenario: Even when completion is locked, the user can still set the date
Given I follow "TestPage"
- When I click on "Edit settings" "link" in the "Administration" "block"
+ When I navigate to "Edit settings" in current page administration
And I expand all fieldsets
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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
Then the field "id_completionexpected_year" matches value "2013"
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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Group mode | No groups |
| Force group mode | No |
| Allow comments on entries | Yes |
And I turn editing mode off
Then I should not see "Adding a new"
- And I follow "Test name"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I turn editing mode on
+ And I open "Test name" actions menu
+ And I click on "Edit settings" "link" in the "Test name" activity
And I expand all fieldsets
And the field "Name" matches value "Test name"
And the field "Entries required for completion" matches value "9"
| name | category | idnumber |
| Cat 1 | 0 | CAT1 |
And I log in as "admin"
- And I expand "Site administration" node
- And I expand "Courses" node
- And I follow "Add a category"
+ And I navigate to "Courses > Add a category" in site administration
And I set the following fields to these values:
| Category name | Test duplicate |
| Category ID number | CAT1 |
| manager | manager | Category | CAT1 |
And I log in as "admin"
-
@javascript
Scenario: A user with a category role can assign roles
Given I define the allowed role assignments for the "Manager" role as:
| Teacher | Assignable |
And I log out
And I log in as "manager"
- And I follow "Courses"
+ And I am on course index
When I follow "Cat 1"
- Then I should see "Assign roles"
+ Then "Assign roles" "link" should exist in current page administration
@javascript
Scenario: A user with a category role cannot assign roles if there are no roles to assign
| Student | Not assignable |
And I log out
And I log in as "manager"
- And I follow "Courses"
+ And I am on course index
When I follow "Cat 1"
- Then I should not see "Assign roles"
+ Then "Assign roles" "link" should not exist in current page administration
I need to create courses and set default values on them
@javascript
- Scenario: Courses are created with the default forum and blocks
+ Scenario: Courses are created with the default announcements forum
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@example.com |
Then "Latest announcements" "block" should exist
And I follow "Announcements"
And "Add a new topic" "button" should exist
- And "Forced subscription" "link" should not exist
+ And "Subscription mode > Forced subscription" "link" should not exist in current page administration
+ And "Subscription mode > Forced subscription" "text" should exist in current page administration
And I log out
And I log in as "student1"
And I follow "Course 1"
And I follow "Announcements"
And "Add a new topic" "button" should not exist
- And I should see "Forced subscription" in the "Administration" "block"
+ And "Subscription mode > Forced subscription" "text" should exist in current page administration
Scenario: Create a course from the management interface and return to it
Given the following "courses" exist:
| teacher2 | c2 | teacher |
And I log in as "teacher1"
And I follow "Course 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Tags | Mathematics |
And I press "Save and display"
Scenario: Set course tags using the course edit form
When I log in as "teacher1"
And I follow "Course 1"
- And "Course tags" "link" should not exist in the "Administration" "block"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" node in "Course administration"
And I expand all fieldsets
Then I should see "Mathematics" in the ".form-autocomplete-selection" "css_element"
And I set the following fields to these values:
| Tags | Algebra |
And I press "Save and display"
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
And I follow "Course 2"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" node in "Course administration"
And I set the following fields to these values:
| Tags | Mathematics, Geometry |
And I press "Save and display"
And I log out
When I log in as "teacher2"
And I follow "Course 1"
- And "Edit settings" "link" should not exist in the "Administration" "block"
- And I click on "Course tags" "link" in the "Administration" "block"
+ And I navigate to "Course tags" in current page administration
Then I should see "Mathematics" in the ".form-autocomplete-selection" "css_element"
And I set the following fields to these values:
| Tags | Algebra |
And I press "Save changes"
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
And I follow "Course 2"
- And I click on "Course tags" "link" in the "Administration" "block"
+ And I navigate to "Course tags" in current page administration
And I set the following fields to these values:
| Tags | Mathematics, Geometry |
And I press "Save changes"
| teacher1 | C1 | editingteacher |
And I log in as "teacher1"
And I follow "Course 1"
- When I click on "Edit settings" "link" in the "Administration" "block"
+ When I navigate to "Edit 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 |
And I should not see "C1"
And I should see "Edited course fullname"
And I should see "Edited course shortname"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
@javascript
Scenario: Forced group mode using separate groups
And I add the "Recent activity" block
And I follow "Delete Recent activity block"
And I press "Yes"
- And I follow "Configure Navigation block"
- And I set the following fields to these values:
- | Visible | Yes |
- And I press "Save changes"
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 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 click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit 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"
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 click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit 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"
And I should see "Test forum name" in the "Topic 1" "section"
Scenario: Move up and down a section with Javascript disabled in the course home of a course using paged mode
- Given I click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit 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"
And I should see "Test forum name" in the "Topic 1" "section"
Scenario: Sections can not be moved with Javascript disabled in a section page of a course using paged mode
- Given I click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit 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"
Scenario: A user can return to the category page from enrolment page
When I log in as "user2"
- And I click on "Courses" "link" in the "Navigation" "block"
+ And I am on course index
And I follow "Miscellaneous"
And I follow "Sample course"
And I press "Continue"
| moodle/course:view | Allow |
And I log out
When I log in as "user1"
- And I click on "Courses" "link" in the "Navigation" "block"
+ And I am on course index
And I follow "Miscellaneous"
And I follow "Sample course"
And I follow "Test choice"
| student1 | C1 | student |
And I log in as "teacher1"
And I follow "Course 1"
- When I click on "Edit settings" "link" in the "Administration" "block"
+ When I go to "Edit 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 |
And I follow "Switch role to..." in the user menu
Then "Tutor" "button" should exist
And "Learner" "button" should exist
- And I follow "Participants"
+ And I navigate to course participants
And the "roleid" select box should contain "Tutor"
And the "roleid" select box should contain "Learner"
And the "roleid" select box should not contain "Student"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I follow "Course 1"
+ And I go to "Edit settings" in current page administration
And I set the following fields to these values:
| Your word for 'Non-editing teacher' | |
| Your word for 'Student' | |
And I should see "Teacher"
And "Student" "button" should exist
And "Learner" "button" should not exist
- And I follow "Participants"
+ And I navigate to course participants
And the "roleid" select box should contain "Non-editing teacher"
And the "roleid" select box should contain "Student"
| mod/chat:addinstance | Prohibit |
And I am on site homepage
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Permissions"
+ And I navigate to "Users > Permissions" in current page administration
And I override the system permissions of "Teacher" role with:
| mod/glossary:addinstance | Prohibit |
And I log out
Scenario: Teacher can rename roles
Given I log in as "teacher1"
And I follow "Course 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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 |
And I follow "Log out"
When I log in as "teacher1"
And I follow "Course 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
Then I should not see "Role renaming"
And I should not see "Your word for 'Teacher'"
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 should see "Test sub subfolder"
- And I navigate to "Edit settings" node in "Folder administration"
+ And I navigate to "Edit settings" in current page administration
And I set the field "Display folder contents" to "Inline on a course page"
And I set the field "Show subfolders expanded" to ""
And I press "Save and return to course"
And I log in as "admin"
And I navigate to "Manage enrol plugins" node in "Site administration > Plugins > Enrolments"
And I click on "Enable" "link" in the "Course meta link" "table_row"
- And I am on homepage
- And I follow "Courses"
+ And I am on course index
Scenario: Add meta enrolment instance without groups
When I follow "Course 3"
And I press "Next"
And I press "Perform restore"
And I trigger cron
- And I am on homepage
- And I follow "Courses"
+ And I am on course index
And I follow "Course 4"
And I navigate to "Enrolment methods" node in "Course administration > Users"
Then I should see "Course meta link (Course 1)"
| Custom instance name | Test student enrolment |
| Enrolment key | moodle_rules |
| Use group enrolment keys | Yes |
- And I follow "Groups"
+ And I follow "Course 1"
+ And I navigate to "Users > Groups" in current page administration
And I press "Create group"
And I set the following fields to these values:
| Group name | Group 1 |
| fullname | shortname |
| Course 001 | C001 |
And I log in as "admin"
- And I follow "Courses"
+ And I am on course index
And I follow "Course 001"
Scenario: User can be enrolled without javascript
| teacher1 | C1 | editingteacher |
And I log in as "teacher1"
And I follow "Course 1"
- And I navigate to "Participants" node in "My courses > C1"
+ And I navigate to course participants
Scenario: Check the participants link when "All partipants" selected
Given I select "All participants" from the "roleid" singleselect
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
- Then I should see "Legacy course files"
+ Then "Legacy course files" "link" should exist in current page administration
And I navigate to "Legacy course files" node in "Course administration"
And I press "Edit legacy course files"
And "Add..." "link" should be visible
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
- Then I should see "Legacy course files"
+ Then "Legacy course files" "link" should exist in current page administration
And I navigate to "Legacy course files" node in "Course administration"
And I press "Edit legacy course files"
And "Add..." "link" should not be visible
And I press "Ok"
And I follow "Edit settings"
And I follow "Test assignment 1 name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
# Checking that the user grade is correct.
Then I should see "80" in the "Student 1" "table_row"
And I log out
And I should see "Criterion 1"
And I should see "Criterion 2"
And I should see "Criterion 3"
+ And I follow "Course 1"
And I go to "Test assignment 1 name" advanced grading definition page
And I should see "Criterion 1"
And I should see "Criterion 2"
Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment one"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50 |
And I press "Save changes"
And I press "Ok"
- And I follow "Edit settings"
- And I follow "View gradebook"
+ And I follow "Course 1"
+ And I go to "View > Grader report" in the course gradebook
And I follow "Single view for Test assignment one"
Then the field "Grade for james (Student) 1" matches value "50.00"
And the field "Override for james (Student) 1" matches value "0"
Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment two"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50 |
And I press "Save changes"
And I press "Ok"
- And I follow "Edit settings"
- And I follow "View gradebook"
+ And I follow "Course 1"
+ And I go to "View > Grader report" in the course gradebook
# And I click on "input[title='Dock Navigation block']" "css_element"
# And I click on "input[title='Dock Administration block']" "css_element"
And I follow "Single view for Test assignment two"
@javascript
Scenario: Validate that switching the type of grading used correctly disables input form elements
When I follow "Test Assignment 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "Point"
Then the "Scale" "select" should be disabled
@javascript
Scenario: Create an activity with a maximum grade point value less than the system maximum
When I follow "Test Assignment 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "point"
And I set the field "grade[modgrade_point]" to "600"
And I press "Save and display"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
Then the field "grade[modgrade_point]" matches value "600"
And the "Scale" "select" should be disabled
And I press "Save and return to course"
@javascript
Scenario: Create an activity with a scale as the grade type
When I follow "Test Assignment 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "Scale"
And I set the field "grade[modgrade_scale]" to "Separate and Connected ways of knowing"
And I press "Save and display"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
Then the field "grade[modgrade_scale]" matches value "Separate and Connected ways of knowing"
And the "Maximum grade" "field" should be disabled
And I press "Save and return to course"
@javascript
Scenario: Create an activity with no grade as the grade type
When I follow "Test Assignment 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "None"
And I press "Save and display"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And the "Scale" "select" should be disabled
And the "Maximum grade" "field" should be disabled
And I press "Save and return to course"
Scenario: Create an activity with a maximum grade point value higher than the system maximum
When I follow "Test Assignment 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "Point"
And I set the field "grade[modgrade_point]" to "20000"
Scenario: Create an activity with a valid maximum grade point and then change the system maximum to be lower
When I follow "Test Assignment 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "point"
And I set the field "grade[modgrade_point]" to "600"
And I am on site homepage
And I follow "Course 1"
And I follow "Test Assignment 1"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I press "Save and display"
Then I should see "Invalid grade value. This must be an integer between 1 and 100"
And I press "Cancel"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment one"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "Scale"
And I set the field "grade[modgrade_scale]" to "Letterscale"
And I press "Save and display"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "A"
And I press "Save changes"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment one"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "Scale"
And I set the field "grade[modgrade_scale]" to "Singleitem"
And I press "Save and display"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "A"
And I press "Save changes"
And I set the field "Grade to pass" to "80"
And I press "Save changes"
And I follow "Course 1"
- And I follow "Test Database 1"
- And I follow "Edit settings"
+ And I click on "Edit settings" "link" in the "Test Database 1" activity
And the field "Grade to pass" matches value "80"
Scenario: Set an invalid grade to pass for forum activity
| suspendedstudent11 | C1 | student | 1 |
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
When I press "Auto-create groups"
And I expand all fieldsets
And I log out
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
When I press "Auto-create groups"
Then I should not see "Include only active enrolments"
And I set the field "Group/member count" to "11"
| student3 | C1 | student |
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I go to "Users > Groups" in current page administration
And I press "Create group"
And I set the following fields to these values:
| Group name | Group 1 |
And the "members" select box should contain "Student 2"
And the "members" select box should contain "Student 3"
And the "members" select box should not contain "Student 0"
- And I follow "Participants"
+ And I navigate to course participants
And I set the field "Separate groups" to "Group 1"
And I should see "Student 0"
And I should see "Student 1"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I go to "Users > Groups" in current page administration
When I press "Create group"
Then the "idnumber" "field" should be readonly
And I set the following fields to these values:
And I log in as "admin"
And I am on site homepage
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I go to "Users > Groups" in current page administration
When I press "Create group"
And I set the following fields to these values:
| Group name | Group A |
And the "groups" select box should contain "Group B (0)"
And I am on site homepage
And I follow "Course 2"
- And I expand "Users" node
- And I follow "Groups"
+ And I go to "Users > Groups" in current page administration
And I press "Create group"
And I set the following fields to these values:
| Group name | Group A |
| teacher1 | C1 | editingteacher |
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I press "Create group"
And I set the following fields to these values:
| Group name | Group (without ID) |
And I log out
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
When I set the field "groups" to "Group (with ID) (0)"
Then the "Delete selected group" "button" should be disabled
And I set the field "groups" to "Group (without ID) (0)"
Scenario: Import groups and groupings as teacher
Given I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I press "Import groups"
When I upload "group/tests/fixtures/groups_import.csv" file to "Import" filemanager
And I press "Import groups"
Scenario: Import groups with idnumber when the user has proper permissions for the idnumber field
Given I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I press "Import groups"
When I upload "group/tests/fixtures/groups_import.csv" file to "Import" filemanager
And I press "Import groups"
Given I log in as "admin"
And I am on site homepage
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Permissions"
+ And I navigate to "Users > Permissions" in current page administration
And I override the system permissions of "Teacher" role with:
| moodle/course:changeidnumber | Prevent |
And I log out
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I press "Import groups"
When I upload "group/tests/fixtures/groups_import.csv" file to "Import" filemanager
And I press "Import groups"
| teacher1 | C1 | editingteacher |
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
Scenario: Group ID number uniqueness
Given I press "Create group"
| teacher1 | C1 | editingteacher |
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I press "Create group"
And I set the following fields to these values:
| Group name | Group (without ID) |
And I log out
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I set the field "groups" to "Group (with ID)"
When I press "Edit group settings"
Then the "idnumber" "field" should be readonly
And I log out
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I set the field "groups" to "Group (with ID)"
And I press "Edit group settings"
And I set the following fields to these values:
And I should not see "This enrolment key is already used for another group."
And I am on homepage
And I follow "Course 2"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I press "Create group"
And I set the following fields to these values:
| Group name | Group A |
And I follow "Manage private files..."
And I upload "lib/editor/atto/tests/fixtures/moodle-logo.png" file to "Files" filemanager
And I click on "Save changes" "button"
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
And I follow "Course 1"
And I navigate to "Edit settings" node in "Course administration"
And I set the field "Course summary" to "<p>Image test</p>"
| scale[modgrade_point] | 100 |
| Group mode | No groups |
And I follow "Test forum name"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
When I expand all fieldsets
Then I should not see "Some grades have already been awarded, so the grade type"
And I set the field "scale[modgrade_type]" to "Scale"
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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
And I follow "Test forum name"
And I follow "Discussion subject"
And I set the field "rating" to "D"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I follow "Test forum name"
+ And I navigate to "Edit 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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
| grade[modgrade_scale] | ABCDEF |
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "C"
And I press "Save changes"
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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
And I follow "Discussion subject"
And I set the field "rating" to "100"
And I press "Rate"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I follow "Test forum name"
+ And I navigate to "Edit settings" in current page administration
When I expand all fieldsets
Then I should see "Some grades have already been awarded, so the grade type cannot be changed. If you wish to change the maximum grade, you must first choose whether or not to rescale existing grades."
And I set the field "Maximum grade" to "50"
| Description | Test assignment description |
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50"
And I press "Save changes"
And the following "course enrolments" exist:
| user | course | role |
| testuser | c1 | student |
- And I am on site homepage
- And I expand "Courses" node
- When I follow "Course 1"
+ When I follow "Log in"
And I set the field "Username" to "testuser"
And I set the field "Password" to "testuser"
And I press "Log in"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Submitted for grading" "table_row"
And I click on "Grade" "link" in the "Submitted for grading" "table_row"
And I should see "Page 1 of 3"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 2" "table_row"
And I click on "Grade" "link" in the "Student 2" "table_row"
And I wait until the page is ready
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "View annotated PDF..." in the "student2@example.com" "table_row"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Submitted for grading" "table_row"
And I wait until the page is ready
And I click on ".navigate-next-button" "css_element"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Submitted for grading" "table_row"
And I click on "Grade" "link" in the "Submitted for grading" "table_row"
And I should see "Page 1 of 3"
| Maximum number of uploaded files | 2 |
| Students submit in groups | Yes |
And I follow "Test assignment name"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I follow "Expand all"
And I set the field "assignfeedback_file_enabled" to "1"
And I press "Save and display"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Allow another attempt | 1 |
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I should see "I'm the student first submission"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- When I click on "View all submissions" "link" in the "Administration" "block"
+ When I navigate to "View all submissions" in current page administration
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 3" row "Status" column of "generaltable" table should contain "No submission"
# And I log in as "teacher1"
# And I follow "Course 1"
# And I follow "Test assignment name"
-# And I click on "View all submissions" "link" in the "Administration" "block"
+# And I navigate to "View all submissions" in current page administration
# And "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
# And "Student 2" row "Status" column of "generaltable" table should contain "Reopened"
# And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading"
# And I log in as "teacher1"
# And I follow "Course 1"
# And I follow "Test assignment name"
-# I click on "View all submissions" "link" in the "Administration" "block"
+# I navigate to "View all submissions" in current page administration
# And I click on "Grade" "link" in the "Student 1" "table_row"
#And I should see "This is attempt 2 (3 attempts allowed)"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I navigate to "View all submissions" node in "Assignment administration"
+ And I navigate to "View all submissions" in current page administration
And I should see "Submitted for grading"
And I navigate to "Reset" node in "Course administration"
And I set the following fields to these values:
And I press "Continue"
And I follow "Course 1"
And I follow "Test assignment name"
- And I navigate to "View all submissions" node in "Assignment administration"
+ And I navigate to "View all submissions" in current page administration
Then I should not see "Submitted for grading"
@javascript
Scenario: Use course reset to remove user overrides.
When I follow "Test assignment name"
- And I navigate to "User overrides" node in "Assignment administration"
+ And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
| Override user | Student1 |
And I press "Continue"
And I follow "Course 1"
And I follow "Test assignment name"
- And I navigate to "User overrides" node in "Assignment administration"
+ And I navigate to "User overrides" in current page administration
Then I should not see "Sam1 Student1"
Scenario: Use course reset to remove group overrides.
When I follow "Test assignment name"
- And I navigate to "Group overrides" node in "Assignment administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
And I press "Continue"
And I follow "Course 1"
And I follow "Test assignment name"
- And I navigate to "Group overrides" node in "Assignment administration"
+ And I navigate to "Group overrides" in current page administration
Then I should not see "Group 1"
Scenario: Add, modify then delete a group override
When I follow "Test assignment name"
- And I navigate to "Group overrides" node in "Assignment administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Duplicate a user override
When I follow "Test assignment name"
- And I navigate to "Group overrides" node in "Assignment administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Allow a group to have a different due date
When I follow "Test assignment name"
- And I navigate to "Edit settings" node in "Assignment administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_duedate_enabled | 1 |
| id_allowsubmissionsfromdate_enabled | 0 |
| duedate[hour] | 08 |
| duedate[minute] | 00 |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Assignment administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Allow a group to have a different cut off date
When I follow "Test assignment name"
- And I navigate to "Edit settings" node in "Assignment administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_duedate_enabled | 0 |
| id_allowsubmissionsfromdate_enabled | 0 |
| cutoffdate[hour] | 08 |
| cutoffdate[minute] | 00 |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Assignment administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Allow a group to have a different start date
When I follow "Test assignment name"
- And I navigate to "Edit settings" node in "Assignment administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_duedate_enabled | 0 |
| id_allowsubmissionsfromdate_enabled | 1 |
| allowsubmissionsfromdate[hour] | 08 |
| allowsubmissionsfromdate[minute] | 00 |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Assignment administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
@javascript
Scenario: Add both a user and group override and verify that both are applied correctly
When I follow "Test assignment name"
- And I navigate to "Edit settings" node in "Assignment administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_duedate_enabled | 0 |
| id_allowsubmissionsfromdate_enabled | 1 |
| allowsubmissionsfromdate[hour] | 08 |
| allowsubmissionsfromdate[minute] | 00 |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Assignment administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
| allowsubmissionsfromdate[minute] | 00 |
And I press "Save"
And I should see "Wednesday, 1 January 2020, 8:00"
- And I navigate to "User overrides" node in "Assignment administration"
+ And I follow "Test assignment name"
+ And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
| Override user | Student1 |
Scenario: Add, modify then delete a user override
When I follow "Test assignment name"
- And I navigate to "User overrides" node in "Assignment administration"
+ And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
| Override user | Student1 |
Scenario: Duplicate a user override
When I follow "Test assignment name"
- And I navigate to "User overrides" node in "Assignment administration"
+ And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
| Override user | Student1 |
Scenario: Allow a user to have a different due date
When I follow "Test assignment name"
- And I navigate to "Edit settings" node in "Assignment administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_duedate_enabled | 1 |
| id_allowsubmissionsfromdate_enabled | 0 |
| duedate[hour] | 08 |
| duedate[minute] | 00 |
And I press "Save and display"
- And I navigate to "User overrides" node in "Assignment administration"
+ And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
| Override user | Student1 |
Scenario: Allow a user to have a different cut off date
When I follow "Test assignment name"
- And I navigate to "Edit settings" node in "Assignment administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_duedate_enabled | 0 |
| id_allowsubmissionsfromdate_enabled | 0 |
| cutoffdate[hour] | 08 |
| cutoffdate[minute] | 00 |
And I press "Save and display"
- And I navigate to "User overrides" node in "Assignment administration"
+ And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
| Override user | Student1 |
Scenario: Allow a user to have a different start date
When I follow "Test assignment name"
- And I navigate to "Edit settings" node in "Assignment administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_duedate_enabled | 0 |
| id_allowsubmissionsfromdate_enabled | 1 |
| allowsubmissionsfromdate[hour] | 08 |
| allowsubmissionsfromdate[minute] | 00 |
And I press "Save and display"
- And I navigate to "User overrides" node in "Assignment administration"
+ And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
| Override user | Student1 |
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50 |
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
Then I should see "50.00" in the "Student 1" "table_row"
And I should see "Submitted for grading" in the "Student 1" "table_row"
And I should see "Graded" in the "Student 1" "table_row"
| Description | Test assignment description |
| Use marking workflow | Yes |
When I follow "Test assignment name"
- Then I click on "View all submissions" "link" in the "Administration" "block"
+ Then I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50,,6"
And I press "Save changes"
| Description | Test assignment description |
| Use marking workflow | Yes |
When I follow "Test assignment name"
- Then I click on "View all submissions" "link" in the "Administration" "block"
+ Then I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50..6"
And I press "Save changes"
| Description | Test assignment description |
| Use marking workflow | Yes |
When I follow "Test assignment name"
- Then I click on "View all submissions" "link" in the "Administration" "block"
+ Then I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50"
And I press "Save changes"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
@javascript
| Students submit in groups | Yes |
| Group mode | No groups |
When I follow "Test assignment name"
- Then I click on "View all submissions" "link" in the "Administration" "block"
+ Then I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50"
And I press "Save changes"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 2" "table_row"
And I set the following fields to these values:
| Grade | 49 |
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 2" "table_row"
And I click on "View a different attempt" "link"
And I click on "//div[contains(concat(' ', normalize-space(@class), ' '), ' confirmation-dialogue ')]//input[@value='0']" "xpath_element"
And I am on site homepage
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
And I choose "Edit submission" in the open action menu
And I set the following fields to these values:
| Online text | Have you seen the movie Chef? |
And I press "Save changes"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
Then I should see "Have you seen the movie Chef?"
And I click on "Edit" "link" in the "Student 1" "table_row"
And I choose "Edit submission" in the open action menu
And I set the following fields to these values:
| Online text | I have seen the movie chef. |
And I press "Save changes"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
Then I should see "I have seen the movie chef."
| Use marking workflow | Yes |
| Use marking allocation | Yes |
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "allocatedmarker" to "Marker 1"
And I press "Save changes"
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I set the field "markerfilter" to "Marker 1"
Then I should see "Student 1"
And I should not see "Student 2"
And I log out
# Add a submission.
And I log in as "student1"
- And I click on "Dashboard" "link" in the "Navigation" "block"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "Not marked"
And I follow "Course 1"
And I set the following fields to these values:
| Online text | I'm the student's first submission |
And I press "Save changes"
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
And ".collapsibleregioncaption" "css_element" should not exist
And I should not see "Not marked"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Not marked" in the "Student 1" "table_row"
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "In review" in the "Student 1" "table_row"
And I log out
# View the grading status as a student.
And I follow "Test assignment name"
And I should see "In review" in the "Grading status" "table_row"
And I should not see "Great job! Lol, not really."
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
And ".collapsibleregioncaption" "css_element" should not exist
And I should not see "In review"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "In review" in the "Student 1" "table_row"
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Marking workflow state" to "Released"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Released" in the "Student 1" "table_row"
And I log out
# View the grading status as a student.
And I follow "Test assignment name"
And I should see "Released" in the "Grading status" "table_row"
And I should see "Great job! Lol, not really."
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
And ".collapsibleregioncaption" "css_element" should not exist
And I should not see "Released"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Released" in the "Student 1" "table_row"
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Marking workflow state" to "In marking"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "In marking" in the "Student 1" "table_row"
# The grade should also remain displayed as it's stored in the assign DB tables, but the final grade should be empty.
And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
And I log out
# Add a submission.
And I log in as "student1"
- And I click on "Dashboard" "link" in the "Navigation" "block"
When I click on ".collapsibleregioncaption" "css_element"
Then I should see "Not graded"
And I follow "Course 1"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should not see "Graded" in the "Student 1" "table_row"
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Graded" in the "Student 1" "table_row"
And I log out
# View the grading status as a student.
And I follow "Test assignment name"
And I should see "Graded" in the "Grading status" "table_row"
And I should see "Great job! Lol, not really."
- And I click on "Dashboard" "link" in the "Navigation" "block"
+ And I am on homepage
And ".collapsibleregioncaption" "css_element" should not exist
And I should not see "Graded"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- When I click on "View all submissions" "link" in the "Administration" "block"
+ When I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
And I follow "Grant extension"
And I should see "Student 1 (student1@example.com)"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- When I click on "View all submissions" "link" in the "Administration" "block"
+ When I navigate to "View all submissions" in current page administration
And I set the field "selectall" to "1"
And I set the field "operation" to "Grant extension"
And I click on "Go" "button" confirming the dialogue
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- When I click on "View all submissions" "link" in the "Administration" "block"
+ When I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
And I follow "Grant extension"
And I should see "Student 1 (student1@example.com)"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- When I click on "View all submissions" "link" in the "Administration" "block"
+ When I navigate to "View all submissions" in current page administration
And I set the field "selectall" to "1"
And I set the field "operation" to "Grant extension"
And I click on "Go" "button" confirming the dialogue
| Students submit in groups | Yes |
| Group mode | No groups |
And I follow "Test assignment name"
- When I click on "View all submissions" "link" in the "Administration" "block"
+ When I navigate to "View all submissions" in current page administration
Then "//tr[contains(., 'Student 0')][contains(., 'Default group')]" "xpath_element" should exist
And "//tr[contains(., 'Student 1')][contains(., 'Default group')]" "xpath_element" should exist
And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exist
And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exist
- And I follow "Edit settings"
+ And I follow "Test assignment name"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Group mode | Separate groups |
And I press "Save and return to course"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Group mode | Separate groups |
And I press "Save and display"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I add "Student 0 (student0@example.com)" user to "Group 1" group members
And I add "Student 1 (student1@example.com)" user to "Group 1" group members
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist
And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exist
And I should not see "Student 2"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- When I click on "View all submissions" "link" in the "Administration" "block"
+ When I navigate to "View all submissions" in current page administration
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 3" row "Status" column of "generaltable" table should not contain "Submitted for grading"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading"
| Name | Test Scale |
| Scale | Disappointing, Excellent, Good, Very good, Excellent |
And I press "Save changes"
- And I follow "Outcomes"
+ And I navigate to "Outcomes" node in "Site administration > Grades"
And I press "Add a new outcome"
And I set the following fields to these values:
| Full name | Outcome Test |
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 0" "table_row"
And I set the following fields to these values:
| Outcome Test: | Excellent |
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
And I should not see "Outcome Test: Excellent" in the "Student 1" "table_row"
| Group 1 | C1 | G1 |
And I log in as "teacher1"
And I follow "Course 1"
- And I expand "Users" node
- And I follow "Groups"
+ And I navigate to "Users > Groups" in current page administration
And I add "Student 0 (student0@example.com)" user to "Group 1" group members
And I add "Student 1 (student1@example.com)" user to "Group 1" group members
And I am on site homepage
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 0" "table_row"
And I set the following fields to these values:
| Outcome Test: | Excellent |
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
And I should see "Outcome Test: Excellent" in the "Student 1" "table_row"
And I should not see "Outcome Test: Excellent" in the "Student 2" "table_row"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
And I should see "Outcome Test: Disappointing" in the "Student 1" "table_row"
And I should not see "Outcome Test: Disappointing" in the "Student 0" "table_row"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- When I click on "View all submissions" "link" in the "Administration" "block"
+ When I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
And I follow "Prevent submission changes"
Then I should see "Submission changes not allowed"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
And I follow "Allow submission changes"
And I should not see "Submission changes not allowed"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- When I click on "View all submissions" "link" in the "Administration" "block"
+ When I navigate to "View all submissions" in current page administration
And I set the field "selectall" to "1"
And I click on "Go" "button" confirming the dialogue
Then I should see "Submission changes not allowed" in the "Student 1" "table_row"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I set the field "selectall" to "1"
And I set the field "id_operation" to "Unlock submissions"
And I click on "Go" "button" confirming the dialogue
And I am on site homepage
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I wait until the page is ready
And I press "Save changes"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50.0 |
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
Then I click on "Quick grading" "checkbox"
And I set the field "User grade" to "60.0"
And I press "Save all quick grading changes"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Hide User picture" "link"
And I click on "Hide Full name" "link"
And I click on "Hide Email address" "link"
And I am on site homepage
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
And I follow "Prevent submission changes"
And I should see "Submission changes not allowed"
And I am on site homepage
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Edit" "link" in the "Student 1" "table_row"
And I follow "Prevent submission changes"
And I should see "Submission changes not allowed"
| Assignment name | Test assignment name |
| Description | Test assignment description |
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "40"
And I press "Save changes"
And I press "Ok"
And I follow "Edit settings"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
+ And I follow "Test assignment name"
Scenario: Update the max grade for an assignment without rescaling existing grades
- Given I click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit 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"
When I press "Save and display"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
Scenario: Update an assignment without touching the max grades
- Given I click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit 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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I press "Save and display"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
When I press "Save and display"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
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 click on "Edit settings" "link" in the "Administration" "block"
+ Given I navigate to "Edit 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"
When I press "Save and display"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
Then "Student 1" row "Grade" column of "generaltable" table should contain "20.00"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Not marked" in the "I'm the student's first submission" "table_row"
And I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
And I set the field "Grade out of 100" to "50"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "In review" in the "I'm the student's first submission" "table_row"
@javascript
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Ready for release" in the "I'm the student's first submission" "table_row"
And I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
And I set the field "Marking workflow state" to "Released"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Released" in the "I'm the student's first submission" "table_row"
And I set the field "Grading action" to "Reveal student identities"
And I press "Continue"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Ready for release" in the "I'm the student's first submission" "table_row"
And I set the field "Grading action" to "Reveal student identities"
And I press "Continue"
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Released" in the "Student 1" "table_row"
And I log out
And I log in as "student1"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
When I set the following fields to these values:
| Grade out of 100 | 50 |
And I press "Ok"
And I click on "Edit settings" "link"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
Then I should see "50.00" in the "Student 1" "table_row"
And I should see "I'm the teacher feedback" in the "Student 1" "table_row"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test assignment name"
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 0 |
And I follow "Allow default group"
And I should see "1" in the "Groups" "table_row"
And I should not see "The setting 'Require group to make submission\' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Default group" in the "Student 1" "table_row"
And I should see "Default group" in the "Student 2" "table_row"
And I should see "Submitted for grading" in the "Student 1" "table_row"
And I follow "Require group membership"
And I should see "0" in the "Groups" "table_row"
And I should see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Not a member of any group, so unable to make submissions." in the "Student 1" "table_row"
And I should see "Not a member of any group, so unable to make submissions." in the "Student 2" "table_row"
And I should not see "Submitted for grading" in the "Student 1" "table_row"
And I follow "Require group membership"
And I should see "1" in the "Groups" "table_row"
And I should not see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Group 1" in the "Student 1" "table_row"
And I should see "Group 1" in the "Student 2" "table_row"
And I should see "Submitted for grading" in the "Student 1" "table_row"
And I follow "Course 3"
And I follow "Require group membership"
And I should see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
- And I click on "View all submissions" "link" in the "Administration" "block"
+ And I navigate to "View all submissions" in current page administration
And I should see "Member of more than one group, so unable to make submissions." in the "Student 3" "table_row"
And "Delete chapter \"1. Dummy first chapter\"" "link" should exist in the "Table of contents" "block"
And "Hide chapter \"1. Dummy first chapter\"" "link" should exist in the "Table of contents" "block"
And "Add new chapter" "link" should exist in the "Table of contents" "block"
- When I click on "Turn editing off" "link" in the "Administration" "block"
+ When I press "Turn editing off"
Then "Edit chapter \"1. Dummy first chapter\"" "link" should not exist in the "Table of contents" "block"
And "Delete chapter \"1. Dummy first chapter\"" "link" should not exist in the "Table of contents" "block"
And "Hide chapter \"1. Dummy first chapter\"" "link" should not exist in the "Table of contents" "block"
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 click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the field "Style of navigation" to "Images"
And I press "Save and display"
And "//a/child::img[contains(@src, 'nav_next')]" "xpath_element" should exist
And I click on "2. Test chapter 2" "link" in the "Table of contents" "block"
And "//a/child::img[contains(@src, 'nav_prev')]" "xpath_element" should exist
- When I click on "Edit settings" "link" in the "Administration" "block"
+ When I navigate to "Edit 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
And I press "Save changes"
And I click on "Next" "link"
And I click on "Previous" "link"
- And I click on "Print book" "link" in the "Administration" "block"
- And I click on "Generate IMS CP" "link" in the "Administration" "block"
- And I click on "Logs" "link" in the "Administration" "block"
+ 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 "Logs" in current page administration
Then I should see "Book exported"
And I should see "Book printed"
And I should see "Chapter viewed" in the "#report_log_r2_c5" "css_element"
| startdate[year] | 2020 |
And I press "Save and display"
And I follow "Test chat name"
- And I navigate to "Edit settings" node in "Chat administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| chattime[day] | 1 |
| chattime[month] | January |
And I press "Continue"
Then I follow "Course 1"
And I follow "Test chat name"
- And I navigate to "Edit settings" node in "Chat administration"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And the "chattime[year]" select box should contain "2030"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Choice name"
- And I click on "View 1 responses" "link" in the "Administration" "block"
+ And I navigate to "View 1 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
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Choice name"
- And I click on "View 1 responses" "link" in the "Administration" "block"
+ And I navigate to "View 1 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"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Choice name"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the field "Allow more than one choice to be selected" to "Yes"
And I press "Save and return to course"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Choice name"
- And I click on "View 1 responses" "link" in the "Administration" "block"
+ And I navigate to "View 1 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"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Choice name"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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 |
Scenario: View my home as a student before answering the choice
Given I log in as "student1"
- When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have Choices that need attention"
And I should see "Not answered yet"
And I log out
And I should see "Your selection: Option 1"
And I should see "Your choice has been saved"
And "Save my choice" "button" should not exist
- When I click on "Dashboard" "link" in the "Navigation" "block"
+ When I follow "Dashboard"
Then I should not see "You have Choices that need attention"
And I log out
And "Save my choice" "button" should not exist
And I log out
When I log in as "teacher1"
- And I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have Choices that need attention"
And I should see "View 1 responses"
And I log out
And I follow "Course 1"
And I follow "Choice name"
And I should see "View 2 responses"
- And I navigate to "Edit settings" node in "Choice administration"
+ And I navigate to "Edit 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"
| user | course | role |
| manager | Acceptance test site | manager |
And the following "activities" exist:
- | activity | name | course | idnumber | anonymous | publish_stats |
- | feedback | Site feedback | Acceptance test site | feedback0 | 1 | 1 |
- | feedback | Course feedback | C1 | feedback1 | 1 | 1 |
+ | activity | name | course | idnumber | anonymous | publish_stats | section |
+ | feedback | Site feedback | Acceptance test site | feedback0 | 1 | 1 | 1 |
+ | feedback | Course feedback | C1 | feedback1 | 1 | 1 | 0 |
When I log in as "manager"
And I am on site homepage
- And I navigate to "Site feedback" node in "Site pages"
+ And I follow "Site feedback"
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
And I add a "Multiple choice" question to the feedback with:
| Question | Do you like our site? |
Scenario: Complete anonymous feedback on the front page as an authenticated user
And I log in as "user1"
And I am on site homepage
- When I navigate to "Site feedback" node in "Site pages"
+ When I follow "Site feedback"
And I follow "Preview"
And I should see "Do you like our site?"
And I press "Continue"
And I log out
And I log in as "user1"
And I am on site homepage
- When I navigate to "Site feedback" node in "Site pages"
+ When I follow "Site feedback"
And I follow "Preview"
And I should see "Do you like our site?"
And I press "Continue"
And I log out
And I log in as "user2"
And I am on site homepage
- And I navigate to "Site feedback" node in "Site pages"
+ And I follow "Site feedback"
And I follow "Preview"
And I should see "Do you like our site?"
And I press "Continue"
And I log out
And I log in as "manager"
And I am on site homepage
- And I navigate to "Site feedback" node in "Site pages"
- And I click on "Show responses" "link" in the "Administration" "block"
+ And I follow "Site feedback"
+ And I navigate to "Show responses" in current page administration
And I should not see "Username"
And I should see "Anonymous entries (2)"
And I follow "Response number: 1"
And I should see "1 (50.00 %)" in the "No" "table_row"
And I log in as "manager"
And I am on site homepage
- And I navigate to "Site feedback" node in "Site pages"
- And I click on "Show responses" "link" in the "Administration" "block"
+ And I follow "Site feedback"
+ And I navigate to "Show responses" in current page administration
And I should see "Anonymous entries (2)"
And I follow "Response number: 1"
And I should see "Response number: 1 (Anonymous)"
And I should see "Do you like this course?"
And I press "Continue"
And I should not see "Answer the questions..."
- And I click on "Show responses" "link" in the "Administration" "block"
+ And I navigate to "Show responses" in current page administration
And I should not see "Username"
And I should see "Anonymous entries (2)"
And I follow "Response number: 1"
| user | course | role |
| manager | Acceptance test site | manager |
And the following "activities" exist:
- | activity | name | course | idnumber | anonymous | publish_stats |
- | feedback | Course feedback | Acceptance test site | feedback0 | 1 | 1 |
- | feedback | Another feedback | C1 | feedback1 | 1 | 1 |
+ | activity | name | course | idnumber | anonymous | publish_stats | section |
+ | feedback | Course feedback | Acceptance test site | feedback0 | 1 | 1 | 1 |
+ | feedback | Another feedback | C1 | feedback1 | 1 | 1 | 0 |
When I log in as "manager"
And I am on site homepage
- And I navigate to "Course feedback" node in "Site pages"
+ And I follow "Course feedback"
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
And I add a "Information" question to the feedback with:
| Question | this is an information question |
Scenario: Site feedback is not mapped to any course
And I log in as "user1"
And I am on site homepage
- And I navigate to "Course feedback" node in "Site pages"
+ And I follow "Course feedback"
And I follow "Answer the questions..."
And I should see "Acceptance test site" in the ".feedback_form" "css_element"
And I set the following fields to these values:
And I log out
And I log in as "manager"
And I am on site homepage
- And I navigate to "Course feedback" node in "Site pages"
+ And I follow "Course feedback"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And I should see "All courses" in the "#feedback_course_filter [data-fieldtype=autocomplete] .form-autocomplete-selection [role=listitem]" "css_element"
And I show chart data for the "multichoicerated" feedback
And I should see "1 (33.33 %)" in the "option a" "table_row"
Scenario: Site feedback is mapped to courses
And I log in as "manager"
And I am on site homepage
- And I navigate to "Course feedback" node in "Site pages"
+ And I follow "Course feedback"
And I follow "Map feedback to courses"
And I set the field "Courses" to "Course 2"
And I set the field "Courses" to "Course 3"
And I log in as "user1"
And I am on site homepage
- And I navigate to "Course feedback" node in "Site pages"
+ And I follow "Course feedback"
And I should see "You can only access this feedback from a course"
And I should not see "Answer the questions..."
And I log out
And I log in as "manager"
And I am on site homepage
- And I navigate to "Course feedback" node in "Site pages"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I follow "Course feedback"
+ And I navigate to "Analysis" in current page administration
And I should see "All courses" in the "#feedback_course_filter [data-fieldtype=autocomplete] .form-autocomplete-selection [role=listitem]" "css_element"
And I show chart data for the "multichoicerated" feedback
And I should see "0" in the "option a" "table_row"
And I turn editing mode on
And I add the "Feedback" block
And I add the "Main menu" block
- And I click on "Delete" "link" in the "//*[contains(@class,'block_site_main_menu')]//li[contains(.,'Course feedback')]" "xpath_element"
+ And I click on "Delete" "link" in the "Course feedback" activity
And I press "Yes"
And I follow "Turn editing off"
And I am on site homepage
| user | course | role |
| manager | Acceptance test site | manager |
And the following "activities" exist:
- | activity | name | course | idnumber | anonymous | publish_stats | groupmode |
- | feedback | Site feedback | Acceptance test site | feedback0 | 2 | 1 | 1 |
- | feedback | Course feedback | C1 | feedback1 | 2 | 1 | 1 |
- | feedback | Course anon feedback | C1 | feedback2 | 1 | 1 | 1 |
+ | activity | name | course | idnumber | anonymous | publish_stats | groupmode | section |
+ | feedback | Site feedback | Acceptance test site | feedback0 | 2 | 1 | 1 | 1 |
+ | feedback | Course feedback | C1 | feedback1 | 2 | 1 | 1 | 0 |
+ | feedback | Course anon feedback | C1 | feedback2 | 1 | 1 | 1 | 0 |
When I log in as "manager"
And I am on site homepage
- And I navigate to "Site feedback" node in "Site pages"
+ And I follow "Site feedback"
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
And I add a "Multiple choice" question to the feedback with:
| Question | Do you like our site? |
And I log in as "teacher"
And I follow "Course 1"
And I follow "Course feedback"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And the field "Separate groups" matches value "All participants"
And I show chart data for the "multichoice1" feedback
And I should see "2 (28.57 %)" in the "Yes of course" "table_row"
And I log in as "teacher"
And I follow "Course 1"
And I follow "Course anon feedback"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And the field "Separate groups" matches value "All participants"
And I show chart data for the "multichoice1" feedback
And I should see "2 (28.57 %)" in the "Yes of course" "table_row"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And I should see "Submitted answers: 2"
And I should see "Questions: 3"
And I show chart data for the "multichoice1" feedback
And I choose "Edit question" in the open action menu
And I set the field "Do not analyse empty submits" to "Yes"
And I press "Save changes to question"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I follow "Analysis"
And I show chart data for the "multichoice1" feedback
And I should see "1 (100.00 %)" in the "option a" "table_row"
And I should not see "%" in the "option b" "table_row"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And I should see "Submitted answers: 2"
And I should see "Questions: 3"
And I show chart data for the "multichoice1" feedback
And I choose "Edit question" in the open action menu
And I set the field "Do not analyse empty submits" to "Yes"
And I press "Save changes to question"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I follow "Analysis"
And I show chart data for the "multichoice1" feedback
And I should see "1 (100.00 %)" in the "option a" "table_row"
And I should see "1 (100.00 %)" in the "option b" "table_row"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And I should see "Submitted answers: 2"
And I should see "Questions: 3"
And I show chart data for the "multichoice1" feedback
And I choose "Edit question" in the open action menu
And I set the field "Do not analyse empty submits" to "Yes"
And I press "Save changes to question"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I follow "Analysis"
And I show chart data for the "multichoice1" feedback
And I should see "1 (100.00 %)" in the "option a" "table_row"
And I should not see "%" in the "option b" "table_row"
| user | course | role |
| manager | Acceptance test site | manager |
And the following "activities" exist:
- | activity | name | course | idnumber | anonymous | publish_stats |
- | feedback | Site feedback | Acceptance test site | feedback0 | 2 | 1 |
- | feedback | Course feedback | C1 | feedback1 | 2 | 1 |
+ | activity | name | course | idnumber | anonymous | publish_stats | section |
+ | feedback | Site feedback | Acceptance test site | feedback0 | 2 | 1 | 1 |
+ | feedback | Course feedback | C1 | feedback1 | 2 | 1 | 0 |
When I log in as "manager"
And I am on site homepage
- And I navigate to "Site feedback" node in "Site pages"
+ And I follow "Site feedback"
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
And I add a "Multiple choice" question to the feedback with:
| Question | Do you like our site? |
Scenario: Complete non anonymous feedback on the front page as an authenticated user
And I log in as "user1"
And I am on site homepage
- And I navigate to "Site feedback" node in "Site pages"
+ And I follow "Site feedback"
And I follow "Preview"
And I should see "Do you like our site?"
And I press "Continue"
And I log out
And I log in as "user1"
And I am on site homepage
- When I navigate to "Site feedback" node in "Site pages"
+ When I follow "Site feedback"
And I follow "Answer the questions..."
And I should see "Do you like our site?"
And I set the following fields to these values:
And I log out
And I log in as "user2"
And I am on site homepage
- When I navigate to "Site feedback" node in "Site pages"
+ When I follow "Site feedback"
And I follow "Answer the questions..."
And I set the following fields to these values:
| Not at all | 1 |
And I log out
And I log in as "manager"
And I am on site homepage
- And I navigate to "Site feedback" node in "Site pages"
- And I click on "Show responses" "link" in the "Administration" "block"
+ And I follow "Site feedback"
+ And I navigate to "Show responses" in current page administration
And I should see "Username"
And I should see "Non anonymous entries (2)"
And I should not see "Anonymous entries"
And I should see "Do you like this course?"
And I press "Continue"
And I should not see "Answer the questions..."
- And I click on "Show responses" "link" in the "Administration" "block"
+ And I navigate to "Show responses" in current page administration
And I should see "Non anonymous entries (2)"
And I should not see "Anonymous"
And I click on "," "link" in the "Username 1" "table_row"
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And I should see "Submitted answers: 2"
And I should see "Questions: 8"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And I should see "C1" in the "(info)" "table"
And I should see "my long answer" in the "(longertext)" "table"
And I should see "lots of feedbacks" in the "(longertext)" "table"
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And I should see "Submitted answers: 2"
And I should see "Questions: 9"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
- And I click on "Analysis" "link" in the "Administration" "block"
+ And I navigate to "Analysis" in current page administration
And I should see "C1" in the "(info)" "table"
And I should see "my long answer" in the "(longertext)" "table"
And I should see "lots of feedbacks" in the "(longertext)" "table"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Frogs"
- And I click on "Show non-respondents" "link" in the "Administration" "block"
+ And I navigate to "Show non-respondents" in current page administration
# Should only show student 2; not student 1 (they did it) or 3 (not in grouping).
Then I should see "Student 2"
And I log in as "teacher1"
And I follow "Course 1"
And I turn editing mode on
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Enable completion tracking | Yes |
And I press "Save and display"
And I am on site homepage
And I follow "Course 1"
And I follow "Test forum name"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
And I am on site homepage
And I follow "Course 1"
And I follow "Test forum name"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit 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"
And I log out
And I log in as "student1"
And I follow "Course 1"
+ When I follow "Test forum name"
+ Then "Subscribe to this forum" "link" should exist in current page administration
+ And I follow "Test post subject one"
+ And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
And I follow "Test forum name"
- When I follow "Test post subject one"
- Then I should see "Subscribe to this forum"
- And I should see "Subscribe to this discussion"
- And I follow "Subscribe to this forum"
+ And I navigate to "Subscribe to this forum" in current page administration
And I should see "Student One will be notified of new posts in 'Test forum name'"
+ And "Unsubscribe from this forum" "link" should exist in current page administration
And I follow "Test post subject one"
- And I should see "Unsubscribe from this forum"
- And I should see "Unsubscribe from this discussion"
- And I follow "Unsubscribe from this discussion"
+ And "You are subscribed to this discussion. Click to unsubscribe" "link" should exist
+ And I follow "You are subscribed to this discussion. Click to unsubscribe"
And I should see "Student One will NOT be notified of new posts in 'Test post subject one' of 'Test forum name'"
And I follow "Test post subject one"
- And I should see "Unsubscribe from this forum"
- And I should see "Subscribe to this discussion"
- And I follow "Unsubscribe from this forum"
+ #And I should see "Unsubscribe from this forum"
+ And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
+ And I follow "Test forum name"
+ And I navigate to "Unsubscribe from this forum" in current page administration
And I should see "Student One will NOT be notified of new posts in 'Test forum name'"
+ And "Subscribe to this forum" "link" should exist in current page administration
And I follow "Test post subject one"
- And I should see "Subscribe to this forum"
- And I should see "Subscribe to this discussion"
- And I follow "Subscribe to this discussion"
+ And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
+ And I follow "You are not subscribed to this discussion. Click to subscribe"
And I should see "Student One will be notified of new posts in 'Test post subject one' of 'Test forum name'"
- And I should see "Subscribe to this forum"
- And I should see "Unsubscribe from this discussion"
- And I follow "Subscribe to this forum"
+ And "You are subscribed to this discussion. Click to unsubscribe" "link" should exist
+ And I follow "Test forum name"
+ And I navigate to "Subscribe to this forum" in current page administration
And I should see "Student One will be notified of new posts in 'Test forum name'"
+ And "Unsubscribe from this forum" "link" should exist in current page administration
And I follow "Test post subject one"
- And I should see "Unsubscribe from this forum"
- And I should see "Unsubscribe from this discussion"
- And I follow "Unsubscribe from this forum"
+ And "You are subscribed to this discussion. Click to unsubscribe" "link" should exist
+ And I follow "Test forum name"
+ And I navigate to "Unsubscribe from this forum" in current page administration
And I should see "Student One will NOT be notified of new posts in 'Test forum name'"
+ And "Subscribe to this forum" "link" should exist in current page administration
And I follow "Test post subject one"
- And I should see "Subscribe to this forum"
- And I should see "Subscribe to this discussion"
+ And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
Scenario: Time limit expires
Given I log out
And I log in as "admin"
- And I expand "Site administration" node
- And I expand "Security" node
- And I follow "Site policies"
+ And I navigate to "Security > Site policies" in site administration
And I set the field "Maximum time to edit posts" to "1 minutes"
And I press "Save changes"
And I am on site homepage
| Description | Test forum description |
| Subscription mode | Forced subscription |
And I follow "Forced Forum 1"
- And I click on "Show/edit current subscribers" "link" in the "Administration" "block"
+ And I navigate to "Show/edit current subscribers" in current page administration
Then I should see "Student 1"
And I should see "Teacher Teacher"
And I should see "Student 2"
And I should see "Student 3"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I follow "Forced Forum 1"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I click on "Add restriction..." "button"
And I click on "Grouping" "button" in the "Add restriction..." "dialogue"
And I set the field with xpath "//select[@name='id']" to "Grouping 1"
And I press "Save and display"
- And I click on "Show/edit current subscribers" "link" in the "Administration" "block"
+ And I navigate to "Show/edit current subscribers" in current page administration
And I should see "Student 1"
And I should see "Teacher Teacher"
And I should not see "Student 2"
| Subscription mode | Forced subscription |
| Visible | Show |
And I follow "Forced Forum 2"
- And I click on "Show/edit current subscribers" "link" in the "Administration" "block"
+ And I navigate to "Show/edit current subscribers" in current page administration
Then I should see "Teacher Teacher"
And I should see "Student 1"
And I should see "Student 2"
| Subscription mode | Forced subscription |
| Visible | Hide |
And I follow "Forced Forum 2"
- And I click on "Show/edit current subscribers" "link" in the "Administration" "block"
+ And I navigate to "Show/edit current subscribers" in current page administration
Then I should see "Teacher Teacher"
And I should not see "Student 1"
And I should not see "Student 2"
| Description | Test forum description |
| Subscription mode | Auto subscription |
And I follow "Forced Forum 1"
- And I click on "Show/edit current subscribers" "link" in the "Administration" "block"
+ And I navigate to "Show/edit current subscribers" in current page administration
Then I should see "Student 1"
And I should see "Teacher Teacher"
And I should see "Student 2"
And I should see "Student 3"
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I follow "Forced Forum 1"
+ And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I click on "Add restriction..." "button"
And I click on "Grouping" "button" in the "Add restriction..." "dialogue"
And I set the field with xpath "//select[@name='id']" to "Grouping 1"
And I press "Save and display"
- And I click on "Show/edit current subscribers" "link" in the "Administration" "block"
+ And I navigate to "Show/edit current subscribers" in current page administration
And I should see "Student 1"
And I should see "Teacher Teacher"
And I should not see "Student 2"
| label | name | check autolinking of CategoryAutoLinks and CategoryNoLinks text | C1 | label1 |
# Log in as admin and enable autolinking filter
And I log in as "admin"
- And I expand "Site administration" node
- And I expand "Plugins" node
- And I expand "Filters" node
- And I follow "Manage filters"
+ And I navigate to "Plugins > Filters > Manage filters" in site administration
And I click on "On" "option" in the "Glossary auto-linking" "table_row"
And I log out
# Log in as a teacher and make sure nothing is yet autolinked
And I log in as "teacher1"
And I follow "Course 1"
And I turn editing mode on
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Enable completion tracking | Yes |
And I press "Save and display"
And I log in as "teacher1"
And I follow "Course 1"
And I turn editing mode on
- And I click on "Edit settings" "link" in the "Administration" "block"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Enable completion tracking | Yes |
And I press "Save and display"
| id_jumpto_1 | This page |
And I press "Save page"
When I follow "Course 1"
- And I follow "Participants"
+ And I navigate to course participants
And I follow "Student 1"
And I follow "Complete report"
Then I should see "No attempts have been made on this lesson"
And I log out
Then I log in as "teacher1"
And I follow "Course 1"
- And I follow "Participants"
+ And I navigate to course participants
And I follow "Student 1"
And I follow "Complete report"
And I should see "Lesson has been started, but not yet completed"
And I log out
Then I log in as "teacher1"
And I follow "Course 1"
- And I follow "Participants"
+ And I navigate to course participants
And I follow "Student 1"
And I follow "Complete report"
And I should see "Grade: 50.00 / 100.00"
And I log out
Then I log in as "teacher1"
And I follow "Course 1"
- And I follow "Participants"
+ And I navigate to course participants
And I follow "Student 1"
And I follow "Complete report"
And I should see "Completed"
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test lesson name"
- And I navigate to "Overview" node in "Lesson administration > Reports"
+ And I navigate to "Reports > Overview" in current page administration
And I should see "Sam1 Student1"
And I navigate to "Reset" node in "Course administration"
And I set the following fields to these values:
And I press "Continue"
And I follow "Course 1"
And I follow "Test lesson name"
- And I navigate to "Overview" node in "Lesson administration > Reports"
+ And I navigate to "Reports > Overview" in current page administration
Then I should see "No attempts have been made on this lesson"
@javascript
Scenario: Use course reset to remove user overrides.
When I follow "Test lesson name"
- And I navigate to "User overrides" node in "Lesson administration"
+ And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
| Override user | Student1 |
And I press "Continue"
And I follow "Course 1"
And I follow "Test lesson name"
- And I navigate to "User overrides" node in "Lesson administration"
+ And I navigate to "User overrides" in current page administration
Then I should not see "Sam1 Student1"
Scenario: Use course reset to remove group overrides.
When I follow "Test lesson name"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
And I press "Continue"
And I follow "Course 1"
And I follow "Test lesson name"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I navigate to "Group overrides" in current page administration
Then I should not see "Group 1"
Scenario: Add, modify then delete a group override
When I follow "Test lesson name"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Duplicate a user override
When I follow "Test lesson name"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Allow a single group to have re-take the lesson
When I follow "Test lesson name"
- And I navigate to "Edit settings" node in "Lesson administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Re-takes allowed | 0 |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Allow a single group to have a different password
When I follow "Test lesson name"
- And I navigate to "Edit settings" node in "Lesson administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Password protected lesson | Yes |
| id_password | moodle_rules |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Allow a group to have a different due date
When I follow "Test lesson name"
- And I navigate to "Edit settings" node in "Lesson administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_deadline_enabled | 1 |
| deadline[day] | 1 |
| deadline[hour] | 08 |
| deadline[minute] | 00 |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Allow a group to have a different start date
When I follow "Test lesson name"
- And I navigate to "Edit settings" node in "Lesson administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_available_enabled | 1 |
| available[day] | 1 |
| available[hour] | 08 |
| available[minute] | 00 |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
Scenario: Allow a single group to have multiple attempts at each question
When I follow "Test lesson name"
- And I navigate to "Edit settings" node in "Lesson administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| Re-takes allowed | 1 |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
@javascript
Scenario: Add both a user and group override and verify that both are applied correctly
When I follow "Test lesson name"
- And I navigate to "Edit settings" node in "Lesson administration"
+ And I navigate to "Edit settings" in current page administration
And I set the following fields to these values:
| id_available_enabled | 1 |
| available[day] | 1 |
| available[hour] | 08 |
| available[minute] | 00 |
And I press "Save and display"
- And I navigate to "Group overrides" node in "Lesson administration"
+ And I follow "Test lesson name"
+ And I navigate to "Group overrides" in current page administration
And I press "Add group override"
And I set the following fields to these values:
| Override group | Group 1 |
| available[minute] | 00 |
And I press "Save"
And I should see "Wednesday, 1 January 2020, 8:00"
- And I navigate to "User overrides" node in "Lesson administration"
+ And I follow "Test lesson name"
+ And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
| Override user | Student1 |
And I should see "Your score is 2 (out of 3)."
And I log out
And I log in as "teacher1"
- When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have lessons that are due"
And I should see "3 attempts"
| id_jumpto_1 | This page |
And I press "Save page"
When I follow "Course 1"
- And I follow "Participants"
+ And I navigate to course participants
And I follow "Student 1"
And I follow "Outline report"
Then I should see "No attempts have been made on this lesson"
And I log out
Then I log in as "teacher1"
And I follow "Course 1"
- And I follow "Participants"
+ And I navigate to course participants
And I follow "Student 1"
And I follow "Outline report"
And I should see "Lesson has been started, but not yet completed"