mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-70152 behat: Forum behat generators use UI
Replace steps that manually add forum and forum post instances via the UI and use Behat generators. This improves the speed of Behat test runs.
This commit is contained in:
parent
505940f91e
commit
640db57c0e
19 changed files with 196 additions and 280 deletions
|
@ -153,14 +153,11 @@ Feature: Apply tour filters to a tour
|
||||||
| Course 1 | C1 | topics | 1 |
|
| Course 1 | C1 | topics | 1 |
|
||||||
| Course 2 | C2 | topics | 1 |
|
| Course 2 | C2 | topics | 1 |
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | course | name | firstpagetitle | wikimode |
|
| activity | course | name | firstpagetitle | wikimode | idnumber | intro | type |
|
||||||
| wiki | C1 | Test wiki name | First page | collaborative |
|
| wiki | C1 | Test wiki name | First page | collaborative | | | |
|
||||||
|
| forum | C2 | Test forum name | | | 001 | Test forum description | general |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
And I am on "Course 2" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
|
||||||
| Forum name | Test forum name |
|
|
||||||
| Forum type | Standard forum for general use |
|
|
||||||
| Description | Test forum description |
|
|
||||||
And I add a new user tour with:
|
And I add a new user tour with:
|
||||||
| Name | Wiki tour |
|
| Name | Wiki tour |
|
||||||
| Description | A tour with both matches |
|
| Description | A tour with both matches |
|
||||||
|
|
|
@ -27,6 +27,12 @@ Feature: edit_availability
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
And the following "activity" exists:
|
||||||
|
| activity | forum |
|
||||||
|
| course | C1 |
|
||||||
|
| section | 1 |
|
||||||
|
| name | MyForum |
|
||||||
|
| intro | x |
|
||||||
|
|
||||||
Scenario: Confirm the 'enable availability' option is working
|
Scenario: Confirm the 'enable availability' option is working
|
||||||
Given the following config values are set as admin:
|
Given the following config values are set as admin:
|
||||||
|
@ -180,7 +186,7 @@ Feature: edit_availability
|
||||||
| enableavailability | 0 |
|
| enableavailability | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
And I add a "Forum" to section "1"
|
And I am on the "MyForum" "forum activity editing" page
|
||||||
When I expand all fieldsets
|
When I expand all fieldsets
|
||||||
Then "Add group/grouping access restriction" "button" should not exist
|
Then "Add group/grouping access restriction" "button" should not exist
|
||||||
|
|
||||||
|
@ -192,10 +198,7 @@ Feature: edit_availability
|
||||||
| GX1 | C1 | GXI1 |
|
| GX1 | C1 | GXI1 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
And I add a "Forum" to section "1"
|
And I am on the "MyForum" "forum activity editing" page
|
||||||
And I set the following fields to these values:
|
|
||||||
| Forum name | MyForum |
|
|
||||||
| Description | x |
|
|
||||||
When I expand all fieldsets
|
When I expand all fieldsets
|
||||||
Then the "Add group/grouping access restriction" "button" should be disabled
|
Then the "Add group/grouping access restriction" "button" should be disabled
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ Feature: Restore Moodle 2 course backups
|
||||||
| activity | course | idnumber | name | intro | section | externalurl |
|
| activity | course | idnumber | name | intro | section | externalurl |
|
||||||
| assign | C3 | assign1 | Test assign name | Assign description | 1 | |
|
| assign | C3 | assign1 | Test assign name | Assign description | 1 | |
|
||||||
| data | C3 | data1 | Test database name | Database description | 2 | |
|
| data | C3 | data1 | Test database name | Database description | 2 | |
|
||||||
|
| forum | C1 | 0001 | Test forum name | Test forum description | 1 | |
|
||||||
| url | C1 | url1 | Test URL name | Test URL description | 3 | http://www.moodle.org |
|
| url | C1 | url1 | Test URL name | Test URL description | 3 | http://www.moodle.org |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
|
@ -63,10 +64,12 @@ Feature: Restore Moodle 2 course backups
|
||||||
Scenario: Restore a backup into the same course removing it's contents before that
|
Scenario: Restore a backup into the same course removing it's contents before that
|
||||||
When I backup "Course 1" course using this options:
|
When I backup "Course 1" course using this options:
|
||||||
| Confirmation | Filename | test_backup.mbz |
|
| Confirmation | Filename | test_backup.mbz |
|
||||||
And I am on "Course 1" course homepage
|
And the following "activity" exists:
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
| activity | forum |
|
||||||
| Forum name | Test forum post backup name |
|
| course | C1 |
|
||||||
| Description | Test forum post backup description |
|
| section | 1 |
|
||||||
|
| name | Test forum post backup name |
|
||||||
|
| intro | Test forum post backup description |
|
||||||
And I am on the "Course 1" "restore" page
|
And I am on the "Course 1" "restore" page
|
||||||
And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options:
|
And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options:
|
||||||
| Schema | Section 3 | 0 |
|
| Schema | Section 3 | 0 |
|
||||||
|
@ -109,7 +112,11 @@ Feature: Restore Moodle 2 course backups
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Restore a backup in an existing course retaining the backup course settings
|
Scenario: Restore a backup in an existing course retaining the backup course settings
|
||||||
Given I hide section "3"
|
Given I add a "URL" to section "3" and I fill the form with:
|
||||||
|
| Name | Test URL name |
|
||||||
|
| Description | Test URL description |
|
||||||
|
| id_externalurl | http://www.moodle.org |
|
||||||
|
And I hide section "3"
|
||||||
And I hide section "7"
|
And I hide section "7"
|
||||||
When I backup "Course 1" course using this options:
|
When I backup "Course 1" course using this options:
|
||||||
| Confirmation | Filename | test_backup.mbz |
|
| Confirmation | Filename | test_backup.mbz |
|
||||||
|
@ -131,7 +138,11 @@ Feature: Restore Moodle 2 course backups
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Restore a backup in an existing course keeping the target course settings
|
Scenario: Restore a backup in an existing course keeping the target course settings
|
||||||
Given I hide section "3"
|
Given I add a "URL" to section "3" and I fill the form with:
|
||||||
|
| Name | Test URL name |
|
||||||
|
| Description | Test URL description |
|
||||||
|
| id_externalurl | http://www.moodle.org |
|
||||||
|
And I hide section "3"
|
||||||
And I hide section "7"
|
And I hide section "7"
|
||||||
When I backup "Course 1" course using this options:
|
When I backup "Course 1" course using this options:
|
||||||
| Confirmation | Filename | test_backup.mbz |
|
| Confirmation | Filename | test_backup.mbz |
|
||||||
|
@ -153,7 +164,11 @@ Feature: Restore Moodle 2 course backups
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Restore a backup in an existing course deleting contents and retaining the backup course settings
|
Scenario: Restore a backup in an existing course deleting contents and retaining the backup course settings
|
||||||
Given I hide section "3"
|
Given I add a "URL" to section "3" and I fill the form with:
|
||||||
|
| Name | Test URL name |
|
||||||
|
| Description | Test URL description |
|
||||||
|
| id_externalurl | http://www.moodle.org |
|
||||||
|
And I hide section "3"
|
||||||
And I hide section "7"
|
And I hide section "7"
|
||||||
When I backup "Course 1" course using this options:
|
When I backup "Course 1" course using this options:
|
||||||
| Initial | Include enrolled users | 0 |
|
| Initial | Include enrolled users | 0 |
|
||||||
|
@ -177,7 +192,11 @@ Feature: Restore Moodle 2 course backups
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Restore a backup in an existing course deleting contents and keeping the current course settings
|
Scenario: Restore a backup in an existing course deleting contents and keeping the current course settings
|
||||||
Given I hide section "3"
|
Given I add a "URL" to section "3" and I fill the form with:
|
||||||
|
| Name | Test URL name |
|
||||||
|
| Description | Test URL description |
|
||||||
|
| id_externalurl | http://www.moodle.org |
|
||||||
|
And I hide section "3"
|
||||||
And I hide section "7"
|
And I hide section "7"
|
||||||
When I backup "Course 1" course using this options:
|
When I backup "Course 1" course using this options:
|
||||||
| Initial | Include enrolled users | 0 |
|
| Initial | Include enrolled users | 0 |
|
||||||
|
@ -201,7 +220,11 @@ Feature: Restore Moodle 2 course backups
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Restore a backup in an existing course deleting contents decreasing the number of sections
|
Scenario: Restore a backup in an existing course deleting contents decreasing the number of sections
|
||||||
Given I hide section "3"
|
Given I add a "URL" to section "3" and I fill the form with:
|
||||||
|
| Name | Test URL name |
|
||||||
|
| Description | Test URL description |
|
||||||
|
| id_externalurl | http://www.moodle.org |
|
||||||
|
And I hide section "3"
|
||||||
And I hide section "7"
|
And I hide section "7"
|
||||||
When I backup "Course 1" course using this options:
|
When I backup "Course 1" course using this options:
|
||||||
| Initial | Include enrolled users | 0 |
|
| Initial | Include enrolled users | 0 |
|
||||||
|
|
|
@ -26,14 +26,16 @@ Feature: Edit activities in main menu block
|
||||||
Scenario: Activities in main menu block can be made available but not visible on a course page
|
Scenario: Activities in main menu block can be made available but not visible on a course page
|
||||||
Given the following config values are set as admin:
|
Given the following config values are set as admin:
|
||||||
| allowstealth | 1 |
|
| allowstealth | 1 |
|
||||||
|
And the following "blocks" exist:
|
||||||
|
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||||
|
| site_main_menu | System | 1 | site-index | side-post |
|
||||||
|
And the following "activities" exist:
|
||||||
|
| activity | course | section | name |
|
||||||
|
| forum | Acceptance test site | 0 | Visible forum |
|
||||||
|
| forum | Acceptance test site | 0 | My forum name |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
And I am on site homepage
|
And I am on site homepage
|
||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
And I add the "Main menu" block
|
|
||||||
When I add a "Forum" to section "0" and I fill the form with:
|
|
||||||
| Forum name | Visible forum |
|
|
||||||
When I add a "Forum" to section "0" and I fill the form with:
|
|
||||||
| Forum name | My forum name |
|
|
||||||
And "My forum name" activity in site main menu block should have "Hide" editing icon
|
And "My forum name" activity in site main menu block should have "Hide" editing icon
|
||||||
And "My forum name" activity in site main menu block should not have "Show" editing icon
|
And "My forum name" activity in site main menu block should not have "Show" editing icon
|
||||||
And "My forum name" activity in site main menu block should not have "Make available" editing icon
|
And "My forum name" activity in site main menu block should not have "Make available" editing icon
|
||||||
|
|
|
@ -17,16 +17,22 @@ Feature: Allow students to manually mark an activity as complete
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
And the following "activity" exists:
|
||||||
|
| activity | forum |
|
||||||
|
| course | C1 |
|
||||||
|
| section | 1 |
|
||||||
|
| name | Test forum name |
|
||||||
|
| intro | Test forum description |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Enable completion tracking | Yes |
|
| Enable completion tracking | Yes |
|
||||||
And I press "Save and display"
|
And I press "Save and display"
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
And I am on the "Test forum name" "forum activity editing" page
|
||||||
| Forum name | Test forum name |
|
And I set the following fields to these values:
|
||||||
| Description | Test forum description |
|
| completion | 1 |
|
||||||
| Completion tracking | Students can manually mark the activity as completed |
|
And I press "Save and return to course"
|
||||||
And "Student First" user has not completed "Test forum name" activity
|
And "Student First" user has not completed "Test forum name" activity
|
||||||
And I log out
|
And I log out
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
|
|
|
@ -44,12 +44,15 @@ Feature: Collapse course sections
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: No chevron on site home
|
Scenario: No chevron on site home
|
||||||
Given I log in as "admin"
|
Given the following activity" exists:
|
||||||
|
| activity | forum |
|
||||||
|
| course | Acceptance test site |
|
||||||
|
| section | 1 |
|
||||||
|
| name | Test forum post backup name |
|
||||||
|
| intro | Test forum post backup description |
|
||||||
|
And I log in as "admin"
|
||||||
And I am on site homepage
|
And I am on site homepage
|
||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
|
||||||
| Forum name | Test forum post backup name |
|
|
||||||
| Description | Test forum post backup description |
|
|
||||||
And I click on "Edit summary" "link" in the "region-main" "region"
|
And I click on "Edit summary" "link" in the "region-main" "region"
|
||||||
And I click on "Custom" "checkbox"
|
And I click on "Custom" "checkbox"
|
||||||
And I set the field "New value for Section name" to "New section name"
|
And I set the field "New value for Section name" to "New section name"
|
||||||
|
|
|
@ -26,6 +26,10 @@ Feature: Course activity controls works as expected
|
||||||
And the following "course enrolments" exist:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
|
And the following "activities" exist:
|
||||||
|
| activity | course | section | name | intro |
|
||||||
|
| forum | C1 | 1 | Test forum name 1 | Test forum description 1 |
|
||||||
|
| forum | C1 | 1 | Test forum name 2 | Test forum description 2 |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
When I click on <targetpage> "link" in the "region-main" "region"
|
When I click on <targetpage> "link" in the "region-main" "region"
|
||||||
|
@ -34,12 +38,6 @@ Feature: Course activity controls works as expected
|
||||||
And I click on "Delete Recent activity block" "link"
|
And I click on "Delete Recent activity block" "link"
|
||||||
And I click on "Delete" "button" in the "Delete block?" "dialogue"
|
And I click on "Delete" "button" in the "Delete block?" "dialogue"
|
||||||
And <belowpage> "section" <should_see_other_sections> exist
|
And <belowpage> "section" <should_see_other_sections> exist
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
|
||||||
| Forum name | Test forum name 1 |
|
|
||||||
| Description | Test forum description 1 |
|
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
|
||||||
| Forum name | Test forum name 2 |
|
|
||||||
| Description | Test forum description 2 |
|
|
||||||
And <belowpage> "section" <should_see_other_sections> exist
|
And <belowpage> "section" <should_see_other_sections> exist
|
||||||
And I open "Test forum name 1" actions menu
|
And I open "Test forum name 1" actions menu
|
||||||
And I click on "Edit settings" "link" in the "Test forum name 1" activity
|
And I click on "Edit settings" "link" in the "Test forum name 1" activity
|
||||||
|
|
|
@ -14,13 +14,10 @@ Feature: Activities can be moved between sections
|
||||||
And the following "course enrolments" exist:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And the following "activity" exists:
|
And the following "activities" exist:
|
||||||
| activity | forum |
|
| activity | name | intro | course | idnumber | section |
|
||||||
| course | C1 |
|
| forum | Test forum name | Test forum description | C1 | 00001 | 1 |
|
||||||
| idnumber | 00001 |
|
| forum | Second forum name | Second forum description | C1 | 00002 | 1 |
|
||||||
| name | Test forum name |
|
|
||||||
| intro | Test forum description |
|
|
||||||
| section | 1 |
|
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
|
|
||||||
|
@ -40,13 +37,6 @@ Feature: Activities can be moved between sections
|
||||||
|
|
||||||
Scenario: Move activities in a course section with Javascript disabled using paged mode
|
Scenario: Move activities in a course section with Javascript disabled using paged mode
|
||||||
Given I navigate to "Settings" in current page administration
|
Given I navigate to "Settings" in current page administration
|
||||||
And the following "activity" exists:
|
|
||||||
| activity | forum |
|
|
||||||
| course | C1 |
|
|
||||||
| idnumber | 00002 |
|
|
||||||
| name | Second forum name |
|
|
||||||
| intro | Second forum description |
|
|
||||||
| section | 1 |
|
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Course layout | Show one section per page |
|
| Course layout | Show one section per page |
|
||||||
And I press "Save and display"
|
And I press "Save and display"
|
||||||
|
|
|
@ -17,31 +17,6 @@ Feature: Show/hide course sections
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
|
||||||
| Forum name | Test hidden forum 11 name |
|
|
||||||
| Description | Test hidden forum 11 description |
|
|
||||||
| Availability | Hide on course page |
|
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
|
||||||
| Forum name | Test hidden forum 12 name |
|
|
||||||
| Description | Test hidden forum 12 description |
|
|
||||||
| Availability | Show on course page |
|
|
||||||
And I add a "Forum" to section "2" and I fill the form with:
|
|
||||||
| Forum name | Test hidden forum 21 name |
|
|
||||||
| Description | Test hidden forum 21 description |
|
|
||||||
| Availability | Hide on course page |
|
|
||||||
And I add a "Forum" to section "2" and I fill the form with:
|
|
||||||
| Forum name | Test hidden forum 22 name |
|
|
||||||
| Description | Test hidden forum 22 description |
|
|
||||||
| Availability | Show on course page |
|
|
||||||
And I add a "Forum" to section "3" and I fill the form with:
|
|
||||||
| Forum name | Test hidden forum 31 name |
|
|
||||||
| Description | Test hidden forum 31 description |
|
|
||||||
| Availability | Hide on course page |
|
|
||||||
And I add a "Forum" to section "3" and I fill the form with:
|
|
||||||
| Forum name | Test hidden forum 32 name |
|
|
||||||
| Description | Test hidden forum 32 description |
|
|
||||||
| Availability | Show on course page |
|
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Show / hide section icon functions correctly
|
Scenario: Show / hide section icon functions correctly
|
||||||
|
@ -75,7 +50,7 @@ Feature: Show/hide course sections
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Students can not navigate to hidden sections
|
Scenario: Students can not navigate to hidden sections
|
||||||
Given I am on "Course 1" course homepage
|
Given I am on "Course 1" course homepage with editing mode on
|
||||||
And I hide section "2"
|
And I hide section "2"
|
||||||
Given I navigate to "Settings" in current page administration
|
Given I navigate to "Settings" in current page administration
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
|
@ -98,7 +73,7 @@ Feature: Show/hide course sections
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Students can not navigate to restricted sections
|
Scenario: Students can not navigate to restricted sections
|
||||||
Given I am on "Course 1" course homepage
|
Given I am on "Course 1" course homepage with editing mode on
|
||||||
Given I navigate to "Settings" in current page administration
|
Given I navigate to "Settings" in current page administration
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Course layout | Show one section per page |
|
| Course layout | Show one section per page |
|
||||||
|
|
|
@ -20,59 +20,48 @@ Feature: Using the activity grade form element
|
||||||
| name | scale |
|
| name | scale |
|
||||||
| ABCDEF | F,E,D,C,B,A |
|
| ABCDEF | F,E,D,C,B,A |
|
||||||
| Letter scale | Disappointing, Good, Very good, Excellent |
|
| Letter scale | Disappointing, Good, Very good, Excellent |
|
||||||
And the following "activity" exists:
|
|
||||||
| activity | assign |
|
|
||||||
| course | C1 |
|
|
||||||
| section | 1 |
|
|
||||||
| name | Test assignment name |
|
|
||||||
| intro | Test assignment description |
|
|
||||||
|
|
||||||
Scenario: Being able to change the grade type, scale and maximum grade when there are no grades
|
|
||||||
Given I log in as "admin"
|
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber |
|
| activity | course | section | name | intro | idnumber | type | groupmode |
|
||||||
| forum | Test forum name | Test forum description | C1 | forum1 |
|
| assign | C1 | 1 | Test assignment name | Test assignment description | | | |
|
||||||
And I am on the "Test forum name" "forum activity editing" page logged in as teacher1
|
| forum | C1 | 1 | Test forum name | Test forum description | forum1 | general | 0 |
|
||||||
|
|
||||||
|
@javascript
|
||||||
|
Scenario: Being able to change the grade type, scale and maximum grade when there are no grades
|
||||||
|
Given I am on the "Test forum name" "forum activity editing" page logged in as teacher1
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Forum type | Standard forum for general use |
|
| Ratings > Aggregate type | Average of ratings |
|
||||||
| Aggregate type | Average of ratings |
|
| id_scale_modgrade_type | Point |
|
||||||
| scale[modgrade_type] | Point |
|
| Ratings > scale[modgrade_point] | 60 |
|
||||||
| scale[modgrade_point] | 100 |
|
|
||||||
| Group mode | No groups |
|
|
||||||
And I press "Save and return to course"
|
And I press "Save and return to course"
|
||||||
And I am on the "Test forum name" "forum activity editing" page
|
And I am on the "Test forum name" "forum activity editing" page
|
||||||
When I expand all fieldsets
|
When I expand all fieldsets
|
||||||
Then I should not see "Some grades have already been awarded, so the grade type"
|
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 "id_scale_modgrade_type" to "Scale"
|
||||||
And I set the field "scale[modgrade_scale]" to "ABCDEF"
|
And I set the field "Ratings > scale[modgrade_scale]" to "ABCDEF"
|
||||||
And I press "Save and display"
|
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 should not see "You cannot change the type, as grades already exist for this item"
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I expand all fieldsets
|
And I expand all fieldsets
|
||||||
And I should not see "Some grades have already been awarded, so the grade type"
|
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 set the field "Ratings > scale[modgrade_scale]" to "Letter scale"
|
||||||
And I press "Save and display"
|
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 should not see "You cannot change the scale, as grades already exist for this item"
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I expand all fieldsets
|
And I expand all fieldsets
|
||||||
And I should not see "Some grades have already been awarded, so the grade type"
|
And I should not see "Some grades have already been awarded, so the grade type"
|
||||||
And I set the field "scale[modgrade_type]" to "Point"
|
And I set the field "id_scale_modgrade_type" to "Point"
|
||||||
And I set the field "Maximum grade" to "50"
|
And I set the field "Ratings > Maximum grade" to "50"
|
||||||
And I press "Save and display"
|
And I press "Save and display"
|
||||||
And I should not see "You must choose whether to rescale existing grades or not"
|
And I should not see "You must choose whether to rescale existing grades or not"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Attempting to change the scale when grades already exist in rating activity
|
Scenario: Attempting to change the scale when grades already exist in rating activity
|
||||||
Given I log in as "teacher1"
|
Given I am on the "Test forum name" "forum activity editing" page logged in as teacher1
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I set the following fields to these values:
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
| Ratings > Aggregate type | Average of ratings |
|
||||||
| Forum name | Test forum name |
|
| id_scale_modgrade_type | Scale |
|
||||||
| Forum type | Standard forum for general use |
|
| Ratings > scale[modgrade_scale] | ABCDEF |
|
||||||
| Description | Test forum description |
|
And I press "Save and return to course"
|
||||||
| Aggregate type | Average of ratings |
|
|
||||||
| scale[modgrade_type] | Scale |
|
|
||||||
| scale[modgrade_scale] | ABCDEF |
|
|
||||||
| Group mode | No groups |
|
|
||||||
And I log out
|
And I log out
|
||||||
And I am on the "Test forum name" "forum activity" page logged in as student1
|
And I am on the "Test forum name" "forum activity" page logged in as student1
|
||||||
And I click on "Add discussion topic" "link"
|
And I click on "Add discussion topic" "link"
|
||||||
|
@ -93,9 +82,9 @@ Feature: Using the activity grade form element
|
||||||
And I should not see "When selecting a ratings aggregate type you must also select"
|
And I should not see "When selecting a ratings aggregate type you must also select"
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I expand all fieldsets
|
And I expand all fieldsets
|
||||||
And the field "Aggregate type" matches value "Average of ratings"
|
And the field "Ratings > Aggregate type" matches value "Average of ratings"
|
||||||
And the field "scale[modgrade_type]" matches value "Scale"
|
And the field "id_scale_modgrade_type" matches value "Scale"
|
||||||
And the field "scale[modgrade_scale]" matches value "ABCDEF"
|
And the field "Ratings > scale[modgrade_scale]" matches value "ABCDEF"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Attempting to change the scale when grades already exist in non-rating activity
|
Scenario: Attempting to change the scale when grades already exist in non-rating activity
|
||||||
|
@ -122,16 +111,11 @@ Feature: Using the activity grade form element
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Attempting to change the maximum grade when ratings exist
|
Scenario: Attempting to change the maximum grade when ratings exist
|
||||||
Given the following "activities" exist:
|
Given I am on the "Test forum name" "forum activity editing" page logged in as teacher1
|
||||||
| activity | name | intro | course | idnumber | section |
|
|
||||||
| forum | Test forum name | Test forum description | C1 | forum1 | 1 |
|
|
||||||
And I am on the "Test forum name" "forum activity editing" page logged in as teacher1
|
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Forum type | Standard forum for general use |
|
| Ratings > Aggregate type | Average of ratings |
|
||||||
| Aggregate type | Average of ratings |
|
| id_scale_modgrade_type | Point |
|
||||||
| scale[modgrade_type] | Point |
|
| Ratings > scale[modgrade_point] | 100 |
|
||||||
| scale[modgrade_point] | 100 |
|
|
||||||
| Group mode | No groups |
|
|
||||||
And I press "Save and return to course"
|
And I press "Save and return to course"
|
||||||
And I log out
|
And I log out
|
||||||
And I am on the "Test forum name" "forum activity" page logged in as student1
|
And I am on the "Test forum name" "forum activity" page logged in as student1
|
||||||
|
|
|
@ -17,22 +17,18 @@ Feature: Add forum activities and discussions
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
And I log in as "teacher1"
|
And the following "activity" exists:
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
| activity | forum |
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
| course | C1 |
|
||||||
| Forum name | Test forum name |
|
| section | 1 |
|
||||||
| Forum type | Standard forum for general use |
|
| name | Test forum name |
|
||||||
| Description | Test forum description |
|
| type | general |
|
||||||
And I add a new discussion to "Test forum name" forum with:
|
| description | Test forum description |
|
||||||
| Subject | Forum post 1 |
|
And the following forum discussions exist in course "Course 1":
|
||||||
| Message | This is the body |
|
| user | forum | name | message | attachments |
|
||||||
And I log out
|
| teacher1 | Test forum name | Forum post 1 | this is the body | |
|
||||||
|
| student1 | Test forum name | Post with attachment | this is the body | empty.txt |
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I am on "Course 1" course homepage
|
|
||||||
When I add a new discussion to "Test forum name" forum with:
|
|
||||||
| Subject | Post with attachment |
|
|
||||||
| Message | This is the body |
|
|
||||||
| Attachment | lib/tests/fixtures/empty.txt |
|
|
||||||
And I reply "Forum post 1" post from "Test forum name" forum with:
|
And I reply "Forum post 1" post from "Test forum name" forum with:
|
||||||
| Subject | Reply with attachment |
|
| Subject | Reply with attachment |
|
||||||
| Message | This is the body |
|
| Message | This is the body |
|
||||||
|
|
|
@ -13,16 +13,20 @@ Feature: Add forum activities and discussions utilizing the inline add discussio
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
And I log in as "teacher1"
|
And the following "activity" exists:
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
| activity | forum |
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
| course | C1 |
|
||||||
| Forum name | Test forum name |
|
| section | 1 |
|
||||||
| Forum type | Standard forum for general use |
|
| idnumber | 0001 |
|
||||||
| Description | Test forum description |
|
| name | Test forum name |
|
||||||
And I add a new discussion to "Test forum name" forum with:
|
| description | Test forum description |
|
||||||
| Subject | Forum post 1 |
|
| type | general |
|
||||||
| Message | This is the body |
|
And the following "mod_forum > discussion" exists:
|
||||||
And I log out
|
| forum | 0001 |
|
||||||
|
| course | C1 |
|
||||||
|
| user | teacher1 |
|
||||||
|
| name | Forum post 1 |
|
||||||
|
| message | This is the body |
|
||||||
|
|
||||||
Scenario: Student can add a discussion via the inline form
|
Scenario: Student can add a discussion via the inline form
|
||||||
Given I log in as "student1"
|
Given I log in as "student1"
|
||||||
|
|
|
@ -19,12 +19,9 @@ Feature: Teachers can edit or delete any forum post
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | section | idnumber |
|
| activity | name | intro | course | section | idnumber |
|
||||||
| forum | Test forum name | Test forum description | C1 | 1 | forum1 |
|
| forum | Test forum name | Test forum description | C1 | 1 | forum1 |
|
||||||
And I log in as "teacher1"
|
And the following "mod_forum > discussions" exist:
|
||||||
And I am on "Course 1" course homepage
|
| forum | course | user | name | message |
|
||||||
And I add a new discussion to "Test forum name" forum with:
|
| forum1 | C1 | teacher1 | Teacher post subject | Teacher post message |
|
||||||
| Subject | Teacher post subject |
|
|
||||||
| Message | Teacher post message |
|
|
||||||
And I log out
|
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
And I reply "Teacher post subject" post from "Test forum name" forum with:
|
And I reply "Teacher post subject" post from "Test forum name" forum with:
|
||||||
|
|
|
@ -14,26 +14,21 @@ Feature: A user can control their own subscription preferences for a forum
|
||||||
And the following "course enrolments" exist:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
And the following "activities" exist:
|
||||||
|
| activity | course | idnumber | name | intro | type | section |
|
||||||
|
| forum | C1 | forum1 | Test forum name | Test forum description | general | 1 |
|
||||||
|
And the following "mod_forum > discussions" exist:
|
||||||
|
| forum | course | user | name | message |
|
||||||
|
| forum1 | C1 | admin | Test post subject | Test post message |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
|
||||||
Scenario: A disallowed subscription forum cannot be subscribed to
|
Scenario: A disallowed subscription forum cannot be subscribed to
|
||||||
Given the following "activity" exists:
|
Given I am on "Course 1" course homepage
|
||||||
| activity | forum |
|
And I follow "Test forum name"
|
||||||
| course | C1 |
|
|
||||||
| idnumber | forum1 |
|
|
||||||
| name | Test forum name |
|
|
||||||
| intro | Test forum description |
|
|
||||||
| type | general |
|
|
||||||
| section | 1 |
|
|
||||||
And I am on "Course 1" course homepage
|
|
||||||
Given I follow "Test forum name"
|
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Subscription mode | Subscription disabled |
|
| Subscription mode | Subscription disabled |
|
||||||
And I press "Save and return to course"
|
And I press "Save and return to course"
|
||||||
And I add a new discussion to "Test forum name" forum with:
|
|
||||||
| Subject | Test post subject |
|
|
||||||
| Message | Test post message |
|
|
||||||
And I log out
|
And I log out
|
||||||
When I log in as "student1"
|
When I log in as "student1"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
|
@ -44,23 +39,12 @@ Feature: A user can control their own subscription preferences for a forum
|
||||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should not exist in the "Test post subject" "table_row"
|
And "You are not subscribed to this discussion. Click to subscribe." "link" should not exist in the "Test post subject" "table_row"
|
||||||
|
|
||||||
Scenario: A forced subscription forum cannot be subscribed to
|
Scenario: A forced subscription forum cannot be subscribed to
|
||||||
Given the following "activity" exists:
|
Given I am on "Course 1" course homepage
|
||||||
| activity | forum |
|
And I follow "Test forum name"
|
||||||
| course | C1 |
|
|
||||||
| idnumber | forum1 |
|
|
||||||
| name | Test forum name |
|
|
||||||
| intro | Test forum description |
|
|
||||||
| type | general |
|
|
||||||
| section | 1 |
|
|
||||||
And I am on "Course 1" course homepage
|
|
||||||
Given I follow "Test forum name"
|
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Subscription mode | Forced subscription |
|
| Subscription mode | Forced subscription |
|
||||||
And I press "Save and return to course"
|
And I press "Save and return to course"
|
||||||
And I add a new discussion to "Test forum name" forum with:
|
|
||||||
| Subject | Test post subject |
|
|
||||||
| Message | Test post message |
|
|
||||||
And I log out
|
And I log out
|
||||||
When I log in as "student1"
|
When I log in as "student1"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
|
@ -71,23 +55,12 @@ Feature: A user can control their own subscription preferences for a forum
|
||||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should not exist in the "Test post subject" "table_row"
|
And "You are not subscribed to this discussion. Click to subscribe." "link" should not exist in the "Test post subject" "table_row"
|
||||||
|
|
||||||
Scenario: An optional forum can be subscribed to
|
Scenario: An optional forum can be subscribed to
|
||||||
Given the following "activity" exists:
|
Given I am on "Course 1" course homepage
|
||||||
| activity | forum |
|
And I follow "Test forum name"
|
||||||
| course | C1 |
|
|
||||||
| idnumber | forum1 |
|
|
||||||
| name | Test forum name |
|
|
||||||
| intro | Test forum description |
|
|
||||||
| type | general |
|
|
||||||
| section | 1 |
|
|
||||||
And I am on "Course 1" course homepage
|
|
||||||
Given I follow "Test forum name"
|
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Subscription mode | Optional subscription |
|
| Subscription mode | Optional subscription |
|
||||||
And I press "Save and return to course"
|
And I press "Save and return to course"
|
||||||
And I add a new discussion to "Test forum name" forum with:
|
|
||||||
| Subject | Test post subject |
|
|
||||||
| Message | Test post message |
|
|
||||||
And I log out
|
And I log out
|
||||||
When I log in as "student1"
|
When I log in as "student1"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
|
@ -100,23 +73,12 @@ Feature: A user can control their own subscription preferences for a forum
|
||||||
And I should not see "Subscribe to forum"
|
And I should not see "Subscribe to forum"
|
||||||
|
|
||||||
Scenario: An Automatic forum can be unsubscribed from
|
Scenario: An Automatic forum can be unsubscribed from
|
||||||
Given the following "activity" exists:
|
Given I am on "Course 1" course homepage
|
||||||
| activity | forum |
|
And I follow "Test forum name"
|
||||||
| course | C1 |
|
|
||||||
| idnumber | forum1 |
|
|
||||||
| name | Test forum name |
|
|
||||||
| intro | Test forum description |
|
|
||||||
| type | general |
|
|
||||||
| section | 1 |
|
|
||||||
And I am on "Course 1" course homepage
|
|
||||||
Given I follow "Test forum name"
|
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Subscription mode | Auto subscription |
|
| Subscription mode | Auto subscription |
|
||||||
And I press "Save and return to course"
|
And I press "Save and return to course"
|
||||||
And I add a new discussion to "Test forum name" forum with:
|
|
||||||
| Subject | Test post subject |
|
|
||||||
| Message | Test post message |
|
|
||||||
And I log out
|
And I log out
|
||||||
When I log in as "student1"
|
When I log in as "student1"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
|
|
|
@ -34,17 +34,17 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||||
And the following "grouping groups" exist:
|
And the following "grouping groups" exist:
|
||||||
| grouping | group |
|
| grouping | group |
|
||||||
| GG1 | G1 |
|
| GG1 | G1 |
|
||||||
|
And the following "activities" exist:
|
||||||
|
| activity | course | idnumber | section | type | name | description | forcesubscribe |
|
||||||
|
| forum | C1 | 1 | 1 | general | Forced Forum 1 | Test forum description | 1 |
|
||||||
|
| forum | C1 | 0001 | 1 | general | Forced Forum 2 | Test forum description | |
|
||||||
|
| forum | C1 | 0002 | 1 | general | Forced Forum 3 | Test forum description | 2 |
|
||||||
And I log in as "teacher"
|
And I log in as "teacher"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: A forced forum lists all subscribers
|
Scenario: A forced forum lists all subscribers
|
||||||
When I add a "Forum" to section "1" and I fill the form with:
|
When I am on the "Forced Forum 1" "forum activity" page
|
||||||
| Forum name | Forced Forum 1 |
|
|
||||||
| Forum type | Standard forum for general use |
|
|
||||||
| Description | Test forum description |
|
|
||||||
| Subscription mode | Forced subscription |
|
|
||||||
And I am on the "Forced Forum 1" "forum activity" page
|
|
||||||
And I navigate to "Subscriptions" in current page administration
|
And I navigate to "Subscriptions" in current page administration
|
||||||
Then I should see "Student 1"
|
Then I should see "Student 1"
|
||||||
And I should see "Teacher Teacher"
|
And I should see "Teacher Teacher"
|
||||||
|
@ -63,15 +63,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||||
And I should not see "Student 3"
|
And I should not see "Student 3"
|
||||||
|
|
||||||
Scenario: A forced forum does not allow to edit the subscribers
|
Scenario: A forced forum does not allow to edit the subscribers
|
||||||
Given the following "activity" exists:
|
Given I am on the "Forced Forum 2" "forum activity" page
|
||||||
| activity | forum |
|
|
||||||
| name | Forced Forum 2 |
|
|
||||||
| intro | Test forum description |
|
|
||||||
| type | general |
|
|
||||||
| course | C1 |
|
|
||||||
| idnumber | 0001 |
|
|
||||||
| section | 1 |
|
|
||||||
And I am on the "Forced Forum 2" "forum activity" page
|
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Subscription mode | Forced subscription |
|
| Subscription mode | Forced subscription |
|
||||||
|
@ -85,16 +77,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||||
And I should see "Student 3"
|
And I should see "Student 3"
|
||||||
|
|
||||||
Scenario: A forced and hidden forum lists only teachers
|
Scenario: A forced and hidden forum lists only teachers
|
||||||
Given the following "activity" exists:
|
Given I am on the "Forced Forum 2" "forum activity editing" page
|
||||||
| activity | forum |
|
|
||||||
| name | Forced Forum 2 |
|
|
||||||
| intro | Test forum description |
|
|
||||||
| type | general |
|
|
||||||
| course | C1 |
|
|
||||||
| idnumber | 0001 |
|
|
||||||
| section | 1 |
|
|
||||||
And I am on "Course 1" course homepage
|
|
||||||
And I am on the "Forced Forum 2" "forum activity editing" page
|
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Subscription mode | Forced subscription |
|
| Subscription mode | Forced subscription |
|
||||||
| Availability | Hide on course page |
|
| Availability | Hide on course page |
|
||||||
|
@ -108,19 +91,14 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: An automatic forum lists all subscribers
|
Scenario: An automatic forum lists all subscribers
|
||||||
When I add a "Forum" to section "1" and I fill the form with:
|
When I am on the "Forced Forum 3" "forum activity" page
|
||||||
| Forum name | Forced Forum 1 |
|
|
||||||
| Forum type | Standard forum for general use |
|
|
||||||
| Description | Test forum description |
|
|
||||||
| Subscription mode | Auto subscription |
|
|
||||||
And I am on the "Forced Forum 1" "forum activity" page
|
|
||||||
And I navigate to "Subscriptions" in current page administration
|
And I navigate to "Subscriptions" in current page administration
|
||||||
Then I should see "Student 1"
|
Then I should see "Student 1"
|
||||||
And I should see "Teacher Teacher"
|
And I should see "Teacher Teacher"
|
||||||
And I should see "Student 2"
|
And I should see "Student 2"
|
||||||
And I should see "Student 3"
|
And I should see "Student 3"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
And I am on the "Forced Forum 1" "forum activity editing" page
|
And I am on the "Forced Forum 3" "forum activity editing" page
|
||||||
And I expand all fieldsets
|
And I expand all fieldsets
|
||||||
And I click on "Add restriction..." "button"
|
And I click on "Add restriction..." "button"
|
||||||
And I click on "Grouping" "button" in the "Add restriction..." "dialogue"
|
And I click on "Grouping" "button" in the "Add restriction..." "dialogue"
|
||||||
|
|
|
@ -23,17 +23,22 @@ Feature: I can grade a students interaction across a forum
|
||||||
And the following "scales" exist:
|
And the following "scales" exist:
|
||||||
| name | scale |
|
| name | scale |
|
||||||
| Test Scale 1 | Disappointing, Good, Very good, Excellent |
|
| Test Scale 1 | Disappointing, Good, Very good, Excellent |
|
||||||
|
And the following "activity" exists:
|
||||||
|
| activity | forum |
|
||||||
|
| course | C1 |
|
||||||
|
| idnumber | 0001 |
|
||||||
|
| name | Test Forum 1 |
|
||||||
|
| description | Test |
|
||||||
|
| section | 1 |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I change window size to "large"
|
And I change window size to "large"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
|
|
||||||
Scenario: Ensure that forum grade settings do not leak to Ratings
|
Scenario: Ensure that forum grade settings do not leak to Ratings
|
||||||
Given I add a "Forum" to section "1"
|
Given I am on the "Test Forum 1" "forum activity" page
|
||||||
|
And I navigate to "Settings" in current page administration
|
||||||
And I expand all fieldsets
|
And I expand all fieldsets
|
||||||
And I set the following fields to these values:
|
|
||||||
| Forum name | Test Forum 1 |
|
|
||||||
| Description | Test |
|
|
||||||
|
|
||||||
# Fields should be hidden when grading is not set.
|
# Fields should be hidden when grading is not set.
|
||||||
When I set the field "Whole forum grading > Type" to "None"
|
When I set the field "Whole forum grading > Type" to "None"
|
||||||
|
@ -74,11 +79,9 @@ Feature: I can grade a students interaction across a forum
|
||||||
And I should see "Tutor" in the "Parent category" "fieldset"
|
And I should see "Tutor" in the "Parent category" "fieldset"
|
||||||
|
|
||||||
Scenario: Ensure that Ratings settings do not leak to Forum grading
|
Scenario: Ensure that Ratings settings do not leak to Forum grading
|
||||||
Given I add a "Forum" to section "1"
|
Given I am on the "Test Forum 1" "forum activity" page
|
||||||
|
And I navigate to "Settings" in current page administration
|
||||||
And I expand all fieldsets
|
And I expand all fieldsets
|
||||||
And I set the following fields to these values:
|
|
||||||
| Forum name | Test Forum 1 |
|
|
||||||
| Description | Test |
|
|
||||||
|
|
||||||
# Fields should be hidden when grading is not set.
|
# Fields should be hidden when grading is not set.
|
||||||
When I set the field "Ratings > Aggregate type" to "No ratings"
|
When I set the field "Ratings > Aggregate type" to "No ratings"
|
||||||
|
@ -130,17 +133,10 @@ Feature: I can grade a students interaction across a forum
|
||||||
And I should see "Tutor" in the "Parent category" "fieldset"
|
And I should see "Tutor" in the "Parent category" "fieldset"
|
||||||
|
|
||||||
Scenario: Setting both a rating and a whole forum grade does not bleed
|
Scenario: Setting both a rating and a whole forum grade does not bleed
|
||||||
Given the following "activity" exists:
|
Given I am on the "Test Forum 1" "forum activity" page
|
||||||
| activity | forum |
|
|
||||||
| course | C1 |
|
|
||||||
| idnumber | 0001 |
|
|
||||||
| name | Test Forum 1 |
|
|
||||||
| intro | Test |
|
|
||||||
| section | 1 |
|
|
||||||
And I am on "Course 1" course homepage
|
|
||||||
And I follow "Test Forum 1"
|
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I expand all fieldsets
|
And I expand all fieldsets
|
||||||
|
|
||||||
And I set the field "Ratings > Aggregate type" to "Count of ratings"
|
And I set the field "Ratings > Aggregate type" to "Count of ratings"
|
||||||
And I set the field "Ratings > Type" to "Point"
|
And I set the field "Ratings > Type" to "Point"
|
||||||
And I set the field "Ratings > Maximum grade" to "100"
|
And I set the field "Ratings > Maximum grade" to "100"
|
||||||
|
|
|
@ -13,18 +13,17 @@ Feature: Students can reply to a discussion in page.
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And the following "activity" exists:
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
| activity | forum |
|
||||||
And I add a "Forum" to section "1" and I fill the form with:
|
| course | C1 |
|
||||||
| Forum name | Test forum name |
|
| section | 1 |
|
||||||
| Description | Test forum description |
|
| idnumber | 0001 |
|
||||||
And I add a new discussion to "Test forum name" forum with:
|
| name | Test forum name |
|
||||||
| Subject | Discussion 1 |
|
| description | Test forum description |
|
||||||
| Message | Discussion contents 1, first message |
|
And the following "mod_forum > discussions" exist:
|
||||||
And I add a new discussion to "Test forum name" forum with:
|
| forum | course | user | name | message |
|
||||||
| Subject | Discussion 2 |
|
| 0001 | C1 | teacher1 | Discussion 1 | Discussion contents 1, first message |
|
||||||
| Message | Discussion contents 2, first message |
|
| 0001 | C1 | teacher1 | Discussion 2 | Discussion contents 2, first message |
|
||||||
And I log out
|
|
||||||
|
|
||||||
Scenario: Confirm inpage replies work
|
Scenario: Confirm inpage replies work
|
||||||
Given I log in as "student1"
|
Given I log in as "student1"
|
||||||
|
|
|
@ -32,10 +32,16 @@ Feature: I can grade a students by group with separate groups
|
||||||
| student1 | G3 |
|
| student1 | G3 |
|
||||||
| student2 | G3 |
|
| student2 | G3 |
|
||||||
| student3 | G3 |
|
| student3 | G3 |
|
||||||
|
And the following "activity" exists:
|
||||||
|
| activity | forum |
|
||||||
|
| course | C1 |
|
||||||
|
| section | 1 |
|
||||||
|
| name | Test Forum 1 |
|
||||||
|
| intro | Test |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
And I add a "Forum" to section "1"
|
And I am on the "Test Forum 1" "forum activity editing" page logged in as teacher1
|
||||||
And I expand all fieldsets
|
And I expand all fieldsets
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Forum name | Test Forum 1 |
|
| Forum name | Test Forum 1 |
|
||||||
|
|
|
@ -21,12 +21,9 @@ Feature: Forum discussions can be split
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | type |
|
| activity | name | intro | course | idnumber | type |
|
||||||
| forum | Study discussions | Forum to discuss your coursework. | C1 | forump1 | general |
|
| forum | Study discussions | Forum to discuss your coursework. | C1 | forump1 | general |
|
||||||
And I log in as "teacher1"
|
And the following "mod_forum > discussions" exist:
|
||||||
And I am on "Science 101" course homepage
|
| forum | course | user | name | message |
|
||||||
And I add a new discussion to "Study discussions" forum with:
|
| forump1 | C1 | teacher1 | Photosynthesis discussion | Lets discuss our learning about Photosynthesis this week in this thread. |
|
||||||
| Subject | Photosynthesis discussion |
|
|
||||||
| Message | Lets discuss our learning about Photosynthesis this week in this thread. |
|
|
||||||
And I log out
|
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I am on "Science 101" course homepage
|
And I am on "Science 101" course homepage
|
||||||
And I reply "Photosynthesis discussion" post from "Study discussions" forum with:
|
And I reply "Photosynthesis discussion" post from "Study discussions" forum with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue