MDL-56614 behat: navigate without navigation and admin blocks
This commit is contained in:
@@ -16,8 +16,7 @@ Feature: Display extended course names
|
||||
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
|
||||
|
||||
@@ -25,7 +25,7 @@ Feature: An administrator can filter user accounts by role, cohort and other pro
|
||||
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:
|
||||
|
||||
@@ -59,8 +59,7 @@ Feature: Set up contextual data for tests
|
||||
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"
|
||||
@@ -90,8 +89,7 @@ Feature: Set up contextual data for tests
|
||||
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"
|
||||
@@ -134,30 +132,31 @@ Feature: Set up contextual data for tests
|
||||
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"
|
||||
@@ -264,8 +263,7 @@ Feature: Set up contextual data for tests
|
||||
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)"
|
||||
@@ -302,7 +300,7 @@ Feature: Set up contextual data for tests
|
||||
| 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"
|
||||
@@ -322,8 +320,7 @@ Feature: Set up contextual data for tests
|
||||
| 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"
|
||||
|
||||
@@ -32,8 +32,7 @@ Feature: Edit capabilities
|
||||
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 |
|
||||
@@ -52,7 +51,7 @@ Feature: Edit capabilities
|
||||
| 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 |
|
||||
|
||||
@@ -33,8 +33,6 @@ Feature: Verify that all form fields values can be get and set
|
||||
| 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"
|
||||
@@ -60,9 +58,8 @@ Feature: Verify that all form fields values can be get and set
|
||||
| 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"
|
||||
@@ -75,7 +72,7 @@ Feature: Verify that all form fields values can be get and set
|
||||
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 |
|
||||
@@ -91,7 +88,7 @@ Feature: Verify that all form fields values can be get and set
|
||||
# Select (simple) - Checking "I set the field".
|
||||
And I set the field "Group mode" to "Separate groups"
|
||||
And I press "Save and display"
|
||||
And I 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 |
|
||||
@@ -134,8 +131,7 @@ Feature: Verify that all form fields values can be get and set
|
||||
@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"
|
||||
@@ -158,7 +154,7 @@ Feature: Verify that all form fields values can be get and set
|
||||
And the "available[day]" "field" should be enabled
|
||||
And the field "deadline[enabled]" matches value "1"
|
||||
And I press "Save and display"
|
||||
And I 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"
|
||||
|
||||
@@ -7,12 +7,9 @@ Feature: Manage competency frameworks
|
||||
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"
|
||||
@@ -34,7 +31,7 @@ Feature: Manage competency frameworks
|
||||
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"
|
||||
@@ -43,7 +40,7 @@ Feature: Manage competency frameworks
|
||||
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 "
|
||||
@@ -57,7 +54,7 @@ Feature: Manage competency frameworks
|
||||
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
|
||||
@@ -90,7 +87,7 @@ Scenario: Edit a framework with competencies in user competency
|
||||
| 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 "
|
||||
@@ -120,7 +117,7 @@ Scenario: Edit a framework with competencies in user competency plan
|
||||
| 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 "
|
||||
|
||||
@@ -26,9 +26,7 @@ Feature: Manage plearning plan
|
||||
| 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
|
||||
@@ -52,9 +50,7 @@ Feature: Manage plearning plan
|
||||
| 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
|
||||
|
||||
@@ -145,10 +145,7 @@ Feature: Manage plan workflow
|
||||
| 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"
|
||||
@@ -167,10 +164,7 @@ Feature: Manage plan workflow
|
||||
| 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"
|
||||
@@ -191,10 +185,7 @@ Scenario: Manager reopen a complete learning plan
|
||||
| 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"
|
||||
|
||||
@@ -7,12 +7,9 @@ Feature: Manage plearning plan templates
|
||||
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"
|
||||
@@ -26,7 +23,7 @@ Feature: Manage plearning plan templates
|
||||
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"
|
||||
@@ -36,7 +33,7 @@ Feature: Manage plearning plan templates
|
||||
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"
|
||||
@@ -49,7 +46,7 @@ Feature: Manage plearning plan templates
|
||||
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
|
||||
|
||||
@@ -29,14 +29,13 @@ Feature: Upload users
|
||||
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"
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ Feature: Add a new user tour
|
||||
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"
|
||||
@@ -38,7 +38,7 @@ Feature: Add a new user tour
|
||||
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"
|
||||
@@ -58,7 +58,7 @@ Feature: Add a new user tour
|
||||
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
|
||||
@@ -77,5 +77,5 @@ Feature: Add a new user tour
|
||||
| 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"
|
||||
|
||||
@@ -16,7 +16,7 @@ Feature: Apply tour filters to a tour
|
||||
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
|
||||
|
||||
@@ -115,7 +115,7 @@ Feature: availability_grade
|
||||
|
||||
# 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 [email protected] 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"
|
||||
|
||||
@@ -101,7 +101,7 @@ Feature: availability_profile
|
||||
|
||||
# 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"
|
||||
|
||||
@@ -216,7 +216,7 @@ Feature: edit_availability
|
||||
|
||||
# Check the button still works after saving and editing.
|
||||
And I press "Save and display"
|
||||
And I navigate to "Edit settings" 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"
|
||||
|
||||
@@ -41,7 +41,7 @@ Feature: Restore Moodle 2 course backups
|
||||
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"
|
||||
@@ -83,7 +83,7 @@ Feature: Restore Moodle 2 course backups
|
||||
When I restore "test_backup.mbz" backup into a new course using this options:
|
||||
Then I should see "Topic 1"
|
||||
And I should see "Test forum name"
|
||||
And I 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:
|
||||
@@ -95,14 +95,14 @@ Feature: Restore Moodle 2 course backups
|
||||
And I press "Save and display"
|
||||
And I should see "1 January - 7 January"
|
||||
And I should see "Test forum name"
|
||||
And I 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"
|
||||
@@ -119,7 +119,7 @@ Feature: Restore Moodle 2 course backups
|
||||
| Confirmation | Filename | test_backup.mbz |
|
||||
And I restore "test_backup.mbz" backup into "Course 2" course using this options:
|
||||
| Schema | Overwrite course configuration | Yes |
|
||||
And I 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"
|
||||
|
||||
@@ -109,7 +109,7 @@ Feature: Block activity modules
|
||||
| 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
|
||||
|
||||
@@ -33,7 +33,7 @@ Feature: The activity results block displays student scores
|
||||
| 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"
|
||||
|
||||
@@ -35,5 +35,4 @@ Feature: Enable Block Badges on the dashboard and view awarded badges
|
||||
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"
|
||||
|
||||
@@ -86,7 +86,7 @@ Feature: Enable the calendar block in a course and test it's functionality
|
||||
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
|
||||
@@ -102,7 +102,7 @@ Feature: Enable the calendar block in a course and test it's functionality
|
||||
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"
|
||||
@@ -120,7 +120,7 @@ Feature: Enable the calendar block in a course and test it's functionality
|
||||
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
|
||||
|
||||
@@ -43,7 +43,7 @@ Feature: Enable Block Completion in a course
|
||||
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 |
|
||||
|
||||
+2
-2
@@ -25,7 +25,7 @@ Feature: Enable Block Completion in a course using activity completion
|
||||
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 |
|
||||
@@ -47,7 +47,7 @@ Feature: Enable Block Completion in a course using activity completion
|
||||
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 |
|
||||
|
||||
@@ -153,7 +153,6 @@ Feature: View the course overview block on the dashboard and test it's functiona
|
||||
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
|
||||
|
||||
@@ -10,7 +10,7 @@ Scenario: Admin can add random glossary block to the frontpage
|
||||
| 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:
|
||||
|
||||
@@ -8,7 +8,7 @@ Feature: Adding and configuring HTML blocks
|
||||
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"
|
||||
@@ -25,7 +25,7 @@ Feature: Adding and configuring HTML blocks
|
||||
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"
|
||||
|
||||
@@ -7,7 +7,7 @@ Feature: Adding and configuring HTML blocks
|
||||
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
|
||||
|
||||
@@ -34,14 +34,14 @@ Feature: Latest announcements block displays the course latest news
|
||||
Then I should see "Discussion One" in the "Latest announcements" "block"
|
||||
And I should see "Discussion Two" in the "Latest announcements" "block"
|
||||
And I should see "Discussion Three" in the "Latest announcements" "block"
|
||||
And I 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"
|
||||
|
||||
@@ -165,7 +165,7 @@ Feature: View structural changes in recent activity block
|
||||
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"
|
||||
|
||||
@@ -43,7 +43,7 @@ Feature: The search forums block allows users to search for forum posts
|
||||
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"
|
||||
|
||||
@@ -50,9 +50,8 @@ Feature: Add and configure blocks throughout the site
|
||||
|
||||
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"
|
||||
@@ -64,7 +63,7 @@ Feature: Add and configure blocks throughout the site
|
||||
@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
|
||||
|
||||
@@ -30,8 +30,7 @@ Feature: Allowed blocks controls
|
||||
| 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
|
||||
|
||||
@@ -14,7 +14,7 @@ Feature: The context of a block can always be returned to it's original state.
|
||||
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 |
|
||||
@@ -31,7 +31,7 @@ Feature: The context of a block can always be returned to it's original state.
|
||||
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:
|
||||
@@ -45,5 +45,5 @@ Feature: The context of a block can always be returned to it's original state.
|
||||
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"
|
||||
|
||||
@@ -27,7 +27,7 @@ Feature: Blogs can be set to be only visible by the author.
|
||||
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"
|
||||
|
||||
@@ -58,8 +58,10 @@ Feature: Access visible and hidden cohorts
|
||||
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"
|
||||
|
||||
@@ -38,7 +38,8 @@ Feature: Add cohorts of users
|
||||
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"
|
||||
@@ -47,6 +48,7 @@ Feature: Add cohorts of users
|
||||
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"
|
||||
|
||||
@@ -28,7 +28,7 @@ Feature: Upload users to a cohort
|
||||
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)"
|
||||
@@ -38,15 +38,13 @@ Feature: Upload users to a cohort
|
||||
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"
|
||||
|
||||
@@ -90,9 +90,9 @@ Feature: A privileged user can create cohorts using a CSV file
|
||||
| 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"
|
||||
|
||||
@@ -53,7 +53,7 @@ Feature: View cohort list
|
||||
|
||||
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"
|
||||
|
||||
@@ -21,7 +21,7 @@ Feature: Allow students to manually mark an activity as complete
|
||||
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"
|
||||
@@ -38,6 +38,5 @@ Feature: Allow students to manually mark an activity as complete
|
||||
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
|
||||
|
||||
@@ -56,7 +56,7 @@ Feature: Restrict activity availability through grade conditions
|
||||
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 |
|
||||
|
||||
@@ -23,7 +23,7 @@ Feature: Restrict sections availability through completion or grade conditions
|
||||
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"
|
||||
@@ -93,7 +93,7 @@ Feature: Restrict sections availability through completion or grade conditions
|
||||
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 |
|
||||
|
||||
@@ -97,7 +97,7 @@ Background:
|
||||
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"
|
||||
@@ -106,7 +106,7 @@ Scenario: When number of discussions is decreased fewer discussions appear
|
||||
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"
|
||||
@@ -115,7 +115,7 @@ Scenario: When number of discussions is decreased to less than 1 only 1 discussi
|
||||
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"
|
||||
|
||||
@@ -35,24 +35,24 @@ Feature: Edit completion settings of an activity
|
||||
@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"
|
||||
|
||||
@@ -21,7 +21,7 @@ Feature: Toggle activities groups mode from the course page
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Description | Test forum description |
|
||||
And I 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 |
|
||||
|
||||
@@ -30,8 +30,9 @@ Feature: Add activities to courses
|
||||
| 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"
|
||||
|
||||
@@ -340,9 +340,7 @@ Feature: Test category management actions
|
||||
| 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 |
|
||||
|
||||
@@ -16,16 +16,15 @@ Feature: Role assignments can be made at the category level
|
||||
| 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
|
||||
@@ -37,6 +36,6 @@ Feature: Role assignments can be made at the category level
|
||||
| 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
|
||||
|
||||
@@ -5,7 +5,7 @@ Feature: Managers can create courses
|
||||
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 |
|
||||
@@ -24,13 +24,14 @@ Feature: Managers can create courses
|
||||
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:
|
||||
|
||||
@@ -25,7 +25,7 @@ Feature: Tagging courses
|
||||
| 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"
|
||||
@@ -34,16 +34,15 @@ Feature: Tagging courses
|
||||
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"
|
||||
@@ -70,15 +69,14 @@ Feature: Tagging courses
|
||||
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"
|
||||
|
||||
@@ -17,7 +17,7 @@ Feature: Edit course settings
|
||||
| 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 |
|
||||
@@ -28,7 +28,7 @@ Feature: Edit course settings
|
||||
And I should not see "C1"
|
||||
And I should see "Edited course fullname"
|
||||
And I should see "Edited course shortname"
|
||||
And I 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"
|
||||
|
||||
@@ -20,7 +20,7 @@ Feature: Force group mode in a course
|
||||
And I add a "Chat" to section "1" and I fill the form with:
|
||||
| Name of this chat room | Chat room |
|
||||
| Description | Chat description |
|
||||
And I 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
|
||||
|
||||
@@ -20,10 +20,6 @@ Feature: Activities can be moved between sections
|
||||
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 |
|
||||
@@ -34,7 +30,7 @@ Feature: Activities can be moved between sections
|
||||
And I should not see "Test forum name" in the "Topic 1" "section"
|
||||
|
||||
Scenario: Move activities in the course home with Javascript disabled using paged mode
|
||||
Given I 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"
|
||||
@@ -43,7 +39,7 @@ Feature: Activities can be moved between sections
|
||||
And I should not see "Test forum name" in the "Topic 1" "section"
|
||||
|
||||
Scenario: Move activities in a course section with Javascript disabled using paged mode
|
||||
Given I 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"
|
||||
|
||||
@@ -28,7 +28,7 @@ Feature: Sections can be moved
|
||||
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"
|
||||
@@ -41,7 +41,7 @@ Feature: Sections can be moved
|
||||
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"
|
||||
|
||||
@@ -19,7 +19,7 @@ Feature: Browse course list and return back from enrolment page
|
||||
|
||||
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"
|
||||
@@ -57,7 +57,7 @@ Feature: Browse course list and return back from enrolment page
|
||||
| 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"
|
||||
|
||||
@@ -21,7 +21,7 @@ Feature: Rename roles within a course
|
||||
| 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 |
|
||||
@@ -29,11 +29,12 @@ Feature: Rename roles within a course
|
||||
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' | |
|
||||
@@ -42,6 +43,6 @@ Feature: Rename roles within a course
|
||||
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"
|
||||
|
||||
@@ -35,8 +35,7 @@ Feature: Restrict activities availability
|
||||
| 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
|
||||
|
||||
@@ -20,7 +20,7 @@ Feature: Rename roles in a course
|
||||
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 |
|
||||
@@ -38,6 +38,6 @@ Feature: Rename roles in a course
|
||||
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'"
|
||||
|
||||
@@ -53,7 +53,7 @@ Feature: View subfolders in a course in-line
|
||||
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"
|
||||
|
||||
@@ -31,8 +31,7 @@ Feature: Enrolments are synchronised with meta courses
|
||||
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"
|
||||
@@ -94,8 +93,7 @@ Feature: Enrolments are synchronised with meta courses
|
||||
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)"
|
||||
|
||||
@@ -74,7 +74,8 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
|
||||
| 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 |
|
||||
|
||||
@@ -12,7 +12,7 @@ Feature: User can be enrolled into a course
|
||||
| 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
|
||||
|
||||
@@ -20,7 +20,7 @@ Feature: Manage enrollments from participants page
|
||||
| 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
|
||||
|
||||
@@ -15,7 +15,7 @@ Feature: Course files
|
||||
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
|
||||
@@ -32,7 +32,7 @@ Feature: Course files
|
||||
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
|
||||
|
||||
@@ -87,7 +87,7 @@ Feature: Marking guides can be created and edited
|
||||
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
|
||||
|
||||
@@ -40,6 +40,7 @@ Feature: Reuse my rubrics in other activities
|
||||
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"
|
||||
|
||||
@@ -33,14 +33,14 @@ Feature: We can bulk insert grades for students in a course
|
||||
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"
|
||||
@@ -74,14 +74,14 @@ Feature: We can bulk insert grades for students in a course
|
||||
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"
|
||||
|
||||
@@ -25,7 +25,7 @@ Feature: We can change the grading type and maximum grade point values
|
||||
@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
|
||||
@@ -41,12 +41,12 @@ Feature: We can change the grading type and maximum grade point values
|
||||
@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"
|
||||
@@ -54,12 +54,12 @@ Feature: We can change the grading type and maximum grade point values
|
||||
@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"
|
||||
@@ -67,18 +67,18 @@ Feature: We can change the grading type and maximum grade point values
|
||||
@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"
|
||||
@@ -88,7 +88,7 @@ Feature: We can change the grading type and maximum grade point values
|
||||
|
||||
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"
|
||||
@@ -100,7 +100,7 @@ Feature: We can change the grading type and maximum grade point values
|
||||
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"
|
||||
|
||||
@@ -44,12 +44,12 @@ Feature: View gradebook when scales are used
|
||||
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"
|
||||
|
||||
@@ -38,12 +38,12 @@ Feature: View gradebook when single item scales are used
|
||||
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"
|
||||
|
||||
@@ -187,8 +187,7 @@ Feature: We can set the grade to pass value
|
||||
And I set the field "Grade to pass" to "80"
|
||||
And I press "Save changes"
|
||||
And I 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
|
||||
|
||||
@@ -38,8 +38,7 @@ Feature: Automatic creation of groups
|
||||
| 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
|
||||
|
||||
@@ -165,8 +164,7 @@ Feature: Automatic creation of groups
|
||||
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"
|
||||
|
||||
@@ -25,8 +25,7 @@ Feature: Organize students into groups
|
||||
| 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 |
|
||||
@@ -47,7 +46,7 @@ Feature: Organize students into groups
|
||||
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"
|
||||
@@ -73,8 +72,7 @@ Feature: Organize students into groups
|
||||
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:
|
||||
@@ -97,8 +95,7 @@ Feature: Organize students into groups
|
||||
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 |
|
||||
@@ -121,8 +118,7 @@ Feature: Organize students into groups
|
||||
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 |
|
||||
|
||||
@@ -16,8 +16,7 @@ Feature: Automatic deletion of groups and groupings
|
||||
| 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) |
|
||||
@@ -66,8 +65,7 @@ Feature: Automatic deletion of groups and groupings
|
||||
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)"
|
||||
|
||||
@@ -19,8 +19,7 @@ Feature: Importing of groups and groupings
|
||||
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"
|
||||
@@ -44,8 +43,7 @@ Feature: Importing of groups and groupings
|
||||
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"
|
||||
@@ -82,15 +80,13 @@ Feature: Importing of groups and groupings
|
||||
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"
|
||||
|
||||
@@ -16,8 +16,7 @@ Feature: Uniqueness of Group ID number
|
||||
| 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"
|
||||
|
||||
@@ -16,8 +16,7 @@ Feature: Automatic updating of groups and groupings
|
||||
| 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) |
|
||||
@@ -73,8 +72,7 @@ Feature: Automatic updating of groups and groupings
|
||||
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
|
||||
@@ -111,8 +109,7 @@ Feature: Automatic updating of groups and groupings
|
||||
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:
|
||||
@@ -138,8 +135,7 @@ Feature: Automatic updating of groups and groupings
|
||||
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 |
|
||||
|
||||
@@ -55,7 +55,7 @@ Feature: Atto Autosave
|
||||
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>"
|
||||
|
||||
@@ -43,20 +43,20 @@ Feature: Using the activity grade form element
|
||||
| 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"
|
||||
@@ -105,13 +105,14 @@ Feature: Using the activity grade form element
|
||||
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"
|
||||
@@ -142,7 +143,7 @@ Feature: Using the activity grade form element
|
||||
| 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"
|
||||
@@ -152,7 +153,7 @@ Feature: Using the activity grade form element
|
||||
Then I should see "Some grades have already been awarded, so the grade type and scale cannot be changed"
|
||||
# Try saving the form and visiting it back to verify everything is working ok.
|
||||
And I press "Save and display"
|
||||
And I 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"
|
||||
@@ -185,7 +186,8 @@ Feature: Using the activity grade form element
|
||||
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"
|
||||
@@ -202,7 +204,7 @@ Feature: Using the activity grade form element
|
||||
| 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"
|
||||
|
||||
@@ -49,9 +49,7 @@ Feature: Change password
|
||||
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"
|
||||
|
||||
@@ -51,7 +51,7 @@ Feature: In an assignment, teacher can annotate PDF files during 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 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"
|
||||
@@ -127,7 +127,7 @@ Feature: In an assignment, teacher can annotate PDF files during 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 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
|
||||
@@ -138,5 +138,5 @@ Feature: In an assignment, teacher can annotate PDF files during grading
|
||||
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"
|
||||
|
||||
@@ -49,7 +49,7 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
|
||||
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"
|
||||
|
||||
@@ -43,7 +43,7 @@ Feature: In an assignment, teacher can view the feedback for a previous attempt.
|
||||
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"
|
||||
|
||||
@@ -34,7 +34,7 @@ Feature: In an assignment, teacher can submit feedback files during grading
|
||||
| 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"
|
||||
|
||||
@@ -38,7 +38,7 @@ Feature: In an assignment, students start a new attempt based on their previous
|
||||
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 |
|
||||
@@ -55,7 +55,7 @@ Feature: In an assignment, students start a new attempt based on their previous
|
||||
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"
|
||||
|
||||
@@ -112,7 +112,7 @@ Feature: In an assignment, students start a new attempt based on their previous
|
||||
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"
|
||||
@@ -142,7 +142,7 @@ Feature: In an assignment, students start a new attempt based on their previous
|
||||
# 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"
|
||||
@@ -164,6 +164,6 @@ Feature: In an assignment, students start a new attempt based on their previous
|
||||
# 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)"
|
||||
|
||||
@@ -49,7 +49,7 @@ Feature: Assign reset
|
||||
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:
|
||||
@@ -58,13 +58,13 @@ Feature: Assign reset
|
||||
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 |
|
||||
@@ -83,12 +83,12 @@ Feature: Assign reset
|
||||
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 |
|
||||
@@ -107,5 +107,5 @@ Feature: Assign reset
|
||||
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"
|
||||
|
||||
@@ -42,7 +42,7 @@ Feature: Assign group override
|
||||
|
||||
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 |
|
||||
@@ -65,7 +65,7 @@ Feature: Assign group override
|
||||
|
||||
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 |
|
||||
@@ -87,7 +87,7 @@ Feature: Assign group override
|
||||
|
||||
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 |
|
||||
@@ -98,7 +98,7 @@ Feature: Assign group override
|
||||
| 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 |
|
||||
@@ -123,7 +123,7 @@ Feature: Assign group override
|
||||
|
||||
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 |
|
||||
@@ -134,7 +134,7 @@ Feature: Assign group override
|
||||
| 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 |
|
||||
@@ -159,7 +159,7 @@ Feature: Assign group override
|
||||
|
||||
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 |
|
||||
@@ -170,7 +170,7 @@ Feature: Assign group override
|
||||
| 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 |
|
||||
@@ -197,7 +197,7 @@ Feature: Assign group override
|
||||
@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 |
|
||||
@@ -208,7 +208,7 @@ Feature: Assign group override
|
||||
| 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 |
|
||||
@@ -220,7 +220,8 @@ Feature: Assign group override
|
||||
| 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 |
|
||||
|
||||
@@ -31,7 +31,7 @@ Feature: Assign user override
|
||||
|
||||
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 |
|
||||
@@ -54,7 +54,7 @@ Feature: Assign user override
|
||||
|
||||
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 |
|
||||
@@ -76,7 +76,7 @@ Feature: Assign user override
|
||||
|
||||
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 |
|
||||
@@ -87,7 +87,7 @@ Feature: Assign user override
|
||||
| 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 |
|
||||
@@ -112,7 +112,7 @@ Feature: Assign user override
|
||||
|
||||
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 |
|
||||
@@ -123,7 +123,7 @@ Feature: Assign user override
|
||||
| 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 |
|
||||
@@ -148,7 +148,7 @@ Feature: Assign user override
|
||||
|
||||
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 |
|
||||
@@ -159,7 +159,7 @@ Feature: Assign user override
|
||||
| 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 |
|
||||
|
||||
@@ -40,7 +40,7 @@ Feature: In an assignment, teachers can edit a students submission inline
|
||||
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 |
|
||||
@@ -50,7 +50,7 @@ Feature: In an assignment, teachers can edit a students submission inline
|
||||
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"
|
||||
|
||||
@@ -28,7 +28,7 @@ Feature: Check that the assignment grade can not be input in a wrong format.
|
||||
| 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"
|
||||
@@ -58,7 +58,7 @@ Feature: Check that the assignment grade can not be input in a wrong format.
|
||||
| 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"
|
||||
|
||||
@@ -28,14 +28,14 @@ Feature: Check that the assignment grade can be updated correctly
|
||||
| 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
|
||||
@@ -64,12 +64,12 @@ Feature: Check that the assignment grade can be updated correctly
|
||||
| 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"
|
||||
|
||||
@@ -40,7 +40,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
|
||||
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 |
|
||||
@@ -58,7 +58,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
|
||||
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"
|
||||
|
||||
@@ -36,18 +36,18 @@ Feature: In an assignment, the administrator can edit students' submissions
|
||||
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."
|
||||
|
||||
@@ -32,7 +32,7 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
|
||||
| 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"
|
||||
@@ -42,7 +42,7 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
|
||||
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"
|
||||
|
||||
@@ -31,7 +31,6 @@ Feature: View the grading status of an assignment
|
||||
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"
|
||||
@@ -42,7 +41,7 @@ Feature: View the grading status of an assignment
|
||||
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
|
||||
@@ -50,7 +49,7 @@ Feature: View the grading status of an assignment
|
||||
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"
|
||||
@@ -60,7 +59,7 @@ Feature: View the grading status of an assignment
|
||||
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.
|
||||
@@ -69,7 +68,7 @@ Feature: View the grading status of an assignment
|
||||
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
|
||||
@@ -77,7 +76,7 @@ Feature: View the grading status of an assignment
|
||||
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"
|
||||
@@ -85,7 +84,7 @@ Feature: View the grading status of an assignment
|
||||
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.
|
||||
@@ -94,7 +93,7 @@ Feature: View the grading status of an assignment
|
||||
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
|
||||
@@ -102,7 +101,7 @@ Feature: View the grading status of an assignment
|
||||
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"
|
||||
@@ -110,7 +109,7 @@ Feature: View the grading status of an assignment
|
||||
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"
|
||||
@@ -130,7 +129,6 @@ Feature: View the grading status of an assignment
|
||||
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"
|
||||
@@ -146,7 +144,7 @@ Feature: View the grading status of an assignment
|
||||
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"
|
||||
@@ -155,7 +153,7 @@ Feature: View the grading status of an assignment
|
||||
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.
|
||||
@@ -164,7 +162,7 @@ Feature: View the grading status of an assignment
|
||||
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
|
||||
|
||||
@@ -35,7 +35,7 @@ Feature: Grant an extension to an offline student
|
||||
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)"
|
||||
@@ -56,7 +56,7 @@ Feature: Grant an extension to an offline student
|
||||
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
|
||||
@@ -88,7 +88,7 @@ Feature: Grant an extension to an offline student
|
||||
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)"
|
||||
@@ -110,7 +110,7 @@ Feature: Grant an extension to an offline student
|
||||
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
|
||||
|
||||
@@ -35,26 +35,26 @@ Feature: Group assignment submissions
|
||||
| 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"
|
||||
@@ -113,7 +113,7 @@ Feature: Group assignment submissions
|
||||
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"
|
||||
@@ -130,7 +130,7 @@ Feature: Group assignment submissions
|
||||
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"
|
||||
|
||||
@@ -27,7 +27,7 @@ Feature: Outcome 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 |
|
||||
@@ -62,7 +62,7 @@ Feature: Outcome grading
|
||||
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 |
|
||||
@@ -70,7 +70,7 @@ Feature: Outcome grading
|
||||
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"
|
||||
|
||||
@@ -86,8 +86,7 @@ Feature: Outcome grading
|
||||
| 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
|
||||
@@ -112,7 +111,7 @@ Feature: Outcome grading
|
||||
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 |
|
||||
@@ -121,7 +120,7 @@ Feature: Outcome grading
|
||||
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"
|
||||
@@ -133,7 +132,7 @@ Feature: Outcome grading
|
||||
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"
|
||||
|
||||
@@ -45,7 +45,7 @@ Feature: Prevent or allow assignment submission changes
|
||||
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"
|
||||
@@ -59,7 +59,7 @@ Feature: Prevent or allow assignment submission 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 "Edit" "link" in the "Student 1" "table_row"
|
||||
And I follow "Allow submission changes"
|
||||
And I should not see "Submission changes not allowed"
|
||||
@@ -98,7 +98,7 @@ Feature: Prevent or allow assignment submission changes
|
||||
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"
|
||||
@@ -112,7 +112,7 @@ Feature: Prevent or allow assignment submission 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 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
|
||||
|
||||
@@ -38,7 +38,7 @@ Feature: In an assignment, teachers grade multiple students on one page
|
||||
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"
|
||||
@@ -110,7 +110,7 @@ Feature: In an assignment, teachers grade multiple students on one page
|
||||
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 |
|
||||
@@ -120,7 +120,7 @@ Feature: In an assignment, teachers grade multiple students on one page
|
||||
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"
|
||||
@@ -148,7 +148,7 @@ Feature: In an assignment, teachers grade multiple students on one page
|
||||
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"
|
||||
|
||||
@@ -41,7 +41,7 @@ Feature: Submissions are unlocked when a new attempt is given
|
||||
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"
|
||||
@@ -76,7 +76,7 @@ Feature: Submissions are unlocked when a new attempt is given
|
||||
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"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user