mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-80866 behat: Fix failures after disabling Chat and Survey
This commit is contained in:
parent
e422045d92
commit
0b3b739370
@ -14,7 +14,7 @@ Feature: I can apply presets
|
||||
Scenario: Applying Starter Moodle preset changes status and settings
|
||||
# Checking the settings before applying Full Moodle preset (we're only testing one of each type).
|
||||
Given I navigate to "Plugins > Activity modules > Manage activities" in site administration
|
||||
And "Disable Chat" "icon" should exist in the "Chat" "table_row"
|
||||
And "Disable Database" "icon" should exist in the "Database" "table_row"
|
||||
And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
|
||||
And "Hide" "icon" should exist in the "Restriction by grouping" "table_row"
|
||||
And I navigate to "Plugins > Blocks > Manage blocks" in site administration
|
||||
@ -40,9 +40,9 @@ Feature: I can apply presets
|
||||
And I should see "Calculated" in the "Setting changes" "table"
|
||||
And I should see "Calculated multichoice" in the "Setting changes" "table"
|
||||
And I should see "Calculated simple" in the "Setting changes" "table"
|
||||
And I should see "Chat" in the "Setting changes" "table"
|
||||
And "Chat" row "Current value" column of "Setting changes" table should contain "Enabled"
|
||||
And "Chat" row "New value" column of "Setting changes" table should contain "Disabled"
|
||||
And I should see "Database" in the "Setting changes" "table"
|
||||
And "Database" row "Current value" column of "Setting changes" table should contain "Enabled"
|
||||
And "Database" row "New value" column of "Setting changes" table should contain "Disabled"
|
||||
And I should see "Cohort sync" in the "Setting changes" "table"
|
||||
And I should see "Comments" in the "Setting changes" "table"
|
||||
And I should see "Course completion status" in the "Setting changes" "table"
|
||||
@ -94,7 +94,7 @@ Feature: I can apply presets
|
||||
And I should see "Social activities" in the "Setting changes" "table"
|
||||
And I should see "Social" in the "Setting changes" "table"
|
||||
And I should see "Starred courses" in the "Setting changes" "table"
|
||||
And I should see "Survey" in the "Setting changes" "table"
|
||||
And I should see "Lesson" in the "Setting changes" "table"
|
||||
And I should see "Tags" in the "Setting changes" "table"
|
||||
And I should see "URL downloader" in the "Setting changes" "table"
|
||||
And I should see "Wiki" in the "Setting changes" "table"
|
||||
@ -109,7 +109,7 @@ Feature: I can apply presets
|
||||
And the field "Enable badges" matches value "0"
|
||||
And the field "Enable competencies" matches value "0"
|
||||
And I navigate to "Plugins > Activity modules > Manage activities" in site administration
|
||||
And "Disable Chat" "icon" should not exist in the "Chat" "table_row"
|
||||
And "Disable Database" "icon" should not exist in the "Database" "table_row"
|
||||
And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
|
||||
And "Hide" "icon" should not exist in the "Restriction by grouping" "table_row"
|
||||
And I navigate to "Plugins > Blocks > Manage blocks" in site administration
|
||||
|
@ -20,7 +20,7 @@ Feature: I can revert changes after a load
|
||||
And the field "Enable badges" matches value "0"
|
||||
And the field "Enable competencies" matches value "0"
|
||||
And I navigate to "Plugins > Activity modules > Manage activities" in site administration
|
||||
And "Disable Chat" "icon" should not exist in the "Chat" "table_row"
|
||||
And "Disable Database" "icon" should not exist in the "Database" "table_row"
|
||||
And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
|
||||
And "Hide" "icon" should not exist in the "Restriction by grouping" "table_row"
|
||||
And I navigate to "Plugins > Blocks > Manage blocks" in site administration
|
||||
@ -39,7 +39,7 @@ Feature: I can revert changes after a load
|
||||
Then the field "Enable badges" matches value "1"
|
||||
And the field "Enable competencies" matches value "1"
|
||||
And I navigate to "Plugins > Activity modules > Manage activities" in site administration
|
||||
And "Disable Chat" "icon" should exist in the "Chat" "table_row"
|
||||
And "Disable Database" "icon" should exist in the "Database" "table_row"
|
||||
And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
|
||||
And "Hide" "icon" should exist in the "Restriction by grouping" "table_row"
|
||||
And I navigate to "Plugins > Blocks > Manage blocks" in site administration
|
||||
|
@ -150,6 +150,8 @@ Feature: Set up contextual data for tests
|
||||
Given the following "courses" exist:
|
||||
| fullname | shortname |
|
||||
| Course 1 | C1 |
|
||||
And I enable "chat" "mod" plugin
|
||||
And I enable "survey" "mod" plugin
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber |
|
||||
| assign | Test assignment name | Test assignment description | C1 | assign1 |
|
||||
|
@ -230,7 +230,7 @@ Feature: Award badges
|
||||
@javascript
|
||||
Scenario: Award badge on course completion
|
||||
Given the following "activity" exists:
|
||||
| activity | chat |
|
||||
| activity | assign |
|
||||
| course | C1 |
|
||||
| name | Music history |
|
||||
| section | 1 |
|
||||
@ -241,7 +241,7 @@ Feature: Award badges
|
||||
And I navigate to "Course completion" in current page administration
|
||||
And I set the field "id_overall_aggregation" to "2"
|
||||
And I click on "Condition: Activity completion" "link"
|
||||
And I set the field "Chat - Music history" to "1"
|
||||
And I set the field "Assignment - Music history" to "1"
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Badges > Add a new badge" in current page administration
|
||||
@ -260,7 +260,7 @@ Feature: Award badges
|
||||
And I follow "Profile" in the user menu
|
||||
And I click on "Course 1" "link" in the "region-main" "region"
|
||||
Then I should not see "badges"
|
||||
When I am on the "Music history" "chat activity" page
|
||||
When I am on the "Music history" "assign activity" page
|
||||
And I log out
|
||||
# Completion cron won't mark the whole course completed unless the
|
||||
# individual criteria was marked completed more than a second ago. So
|
||||
|
@ -4,6 +4,10 @@ Feature: Block activity modules
|
||||
As a manager
|
||||
I can add activities block in a course or on the frontpage
|
||||
|
||||
Background:
|
||||
Given I enable "chat" "mod" plugin
|
||||
And I enable "survey" "mod" plugin
|
||||
|
||||
Scenario: Add activities block on the frontpage
|
||||
Given the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber |
|
||||
|
@ -15,9 +15,9 @@ Feature: Block appearances
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And the following "activities" exist:
|
||||
| activity | name | course | idnumber | template |
|
||||
| survey | Test survey name | C1 | survey1 | 4 |
|
||||
| book | Test book name | C1 | book1 | |
|
||||
| activity | name | course | idnumber |
|
||||
| assign | Test assign name | C1 | assign1 |
|
||||
| book | Test book name | C1 | book1 |
|
||||
And the following "mod_book > chapter" exists:
|
||||
| book | Test book name |
|
||||
| title | Book title |
|
||||
@ -33,7 +33,7 @@ Feature: Block appearances
|
||||
And I press "Save changes"
|
||||
|
||||
Scenario: Block settings can be modified so that a block apprears on any page
|
||||
When I click on "Test survey name" "link" in the "region-main" "region"
|
||||
When I click on "Test assign name" "link" in the "region-main" "region"
|
||||
Then I should see "Comments" in the "Comments" "block"
|
||||
And I am on "Course 1" course homepage
|
||||
And I configure the "Comments" block
|
||||
@ -41,7 +41,7 @@ Feature: Block appearances
|
||||
| Display on page types | Any course page |
|
||||
And I press "Save changes"
|
||||
And I turn editing mode off
|
||||
And I click on "Test survey name" "link" in the "region-main" "region"
|
||||
And I click on "Test assign name" "link" in the "region-main" "region"
|
||||
And I should not see "Comments"
|
||||
|
||||
Scenario: Block settings can be modified so that a block can be hidden
|
||||
|
@ -15,9 +15,9 @@ Feature: Block region moving
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And the following "activities" exist:
|
||||
| activity | course | name | template |
|
||||
| survey | C1 | Test survey name | 4 |
|
||||
| book | C1 | Test book name | |
|
||||
| activity | course | name |
|
||||
| assign | C1 | Test assign name |
|
||||
| book | C1 | Test book name |
|
||||
And the following "mod_book > chapter" exists:
|
||||
| book | Test book name |
|
||||
| title | Book title |
|
||||
|
@ -175,16 +175,16 @@ Feature: Allow teachers to edit the default activity completion rules in a cours
|
||||
| completion_book | Do not indicate activity completion |
|
||||
And I click on "Save changes" "button" in the "[data-region='activitycompletion-book']" "css_element"
|
||||
And I should see "Changes saved"
|
||||
And I click on "Expand Chat" "button"
|
||||
And I click on "Expand Lesson" "button"
|
||||
And I set the following fields to these values:
|
||||
# Students must manually mark the activity as done = 1.
|
||||
| id_completion_chat_1 | 1 |
|
||||
And I click on "Save changes" "button" in the "[data-region='activitycompletion-chat']" "css_element"
|
||||
| id_completion_lesson_1 | 1 |
|
||||
And I click on "Save changes" "button" in the "[data-region='activitycompletion-lesson']" "css_element"
|
||||
And I should see "Changes saved"
|
||||
# Change current page and go back to "Default activity completion", to confirm the form values have been saved properly.
|
||||
And I set the field "Course completion tertiary navigation" to "Course completion settings"
|
||||
And I set the field "Course completion tertiary navigation" to "Default activity completion"
|
||||
Then the field "id_completion_chat_1" matches value "1"
|
||||
Then the field "id_completion_lesson_1" matches value "1"
|
||||
# Check that the rules for book, assignment and forum are still the same.
|
||||
And I click on "Expand Book" "button"
|
||||
And the field "id_completion_book_0" matches value "1"
|
||||
@ -227,4 +227,4 @@ Feature: Allow teachers to edit the default activity completion rules in a cours
|
||||
Given I am on the "Course 1" course page logged in as teacher1
|
||||
When I navigate to "Course completion" in current page administration
|
||||
And I set the field "Course completion tertiary navigation" to "Default activity completion"
|
||||
Then "Survey" "text" should appear before "Text and media area" "text"
|
||||
Then "Quiz" "text" should appear before "Text and media area" "text"
|
||||
|
@ -20,7 +20,7 @@ Feature: Activity navigation in a single activity course
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | section |
|
||||
| assign | Assignment 1 | Test assignment description | C1 | assign1 | 0 |
|
||||
| chat | Chat 1 | Test chat description | C1 | chat1 | 0 |
|
||||
| lesson | Lesson 1 | Test lesson description | C1 | lesson1 | 0 |
|
||||
| forum | Forum 1 | Test forum description | C1 | forum1 | 0 |
|
||||
|
||||
Scenario: Step through hidden activities in the course as a teacher.
|
||||
@ -31,8 +31,8 @@ Feature: Activity navigation in a single activity course
|
||||
And I should see "Assignment 1 (hidden)" in the "#next-activity-link" "css_element"
|
||||
And I follow "Assignment 1 (hidden)"
|
||||
And I should see "Forum 1" in the "#prev-activity-link" "css_element"
|
||||
And I should see "Chat 1 (hidden)" in the "#next-activity-link" "css_element"
|
||||
And I follow "Chat 1 (hidden)"
|
||||
And I should see "Lesson 1 (hidden)" in the "#next-activity-link" "css_element"
|
||||
And I follow "Lesson 1 (hidden)"
|
||||
And I should see "Assignment 1 (hidden)" in the "#prev-activity-link" "css_element"
|
||||
And "#next-activity-link" "css_element" should not exist
|
||||
|
||||
@ -44,18 +44,18 @@ Feature: Activity navigation in a single activity course
|
||||
And the "Jump to..." select box should not contain "Forum 1"
|
||||
# Check drop down menu contents.
|
||||
And the "Jump to..." select box should contain "Assignment 1 (hidden)"
|
||||
And the "Jump to..." select box should contain "Chat 1 (hidden)"
|
||||
And the "Jump to..." select box should contain "Lesson 1 (hidden)"
|
||||
# Jump to a hidden activity somewhere in the middle.
|
||||
When I select "Assignment 1 (hidden)" from the "Jump to..." singleselect
|
||||
Then I should see "Assignment 1"
|
||||
And I should see "Forum 1" in the "#prev-activity-link" "css_element"
|
||||
And I should see "Chat 1 (hidden)" in the "#next-activity-link" "css_element"
|
||||
And I should see "Lesson 1 (hidden)" in the "#next-activity-link" "css_element"
|
||||
# Jump to the first activity.
|
||||
And I select "Forum 1" from the "Jump to..." singleselect
|
||||
And I should see "Assignment 1 (hidden)" in the "#next-activity-link" "css_element"
|
||||
But "#prev-activity-link" "css_element" should not exist
|
||||
# Jump to the last activity.
|
||||
And I select "Chat 1 (hidden)" from the "Jump to..." singleselect
|
||||
And I select "Lesson 1 (hidden)" from the "Jump to..." singleselect
|
||||
And I should see "Assignment 1 (hidden)" in the "#prev-activity-link" "css_element"
|
||||
But "#next-activity-link" "css_element" should not exist
|
||||
|
||||
|
@ -15,7 +15,7 @@ Feature: Sections can be edited and deleted in custom sections format
|
||||
| activity | name | intro | course | idnumber | section |
|
||||
| assign | Test assignment name | Test assignment description | C1 | assign1 | 0 |
|
||||
| book | Test book name | | C1 | book1 | 1 |
|
||||
| chat | Test chat name | Test chat description | C1 | chat1 | 4 |
|
||||
| lesson | Test lesson name | Test lesson description | C1 | lesson1 | 4 |
|
||||
| choice | Test choice name | Test choice description | C1 | choice1 | 5 |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
@ -73,7 +73,7 @@ Feature: Sections can be edited and deleted in custom sections format
|
||||
When I delete section "4"
|
||||
And I press "Delete"
|
||||
Then I should not see "Topic 5"
|
||||
And I should not see "Test chat name"
|
||||
And I should not see "Test lesson name"
|
||||
And I should see "Test choice name" in the "Topic 4" "section"
|
||||
And I should see "Topic 4"
|
||||
|
||||
|
@ -15,7 +15,7 @@ Feature: Sections can be highlighted
|
||||
| activity | name | intro | course | idnumber | section |
|
||||
| assign | Test assignment name | Test assignment description | C1 | assign1 | 0 |
|
||||
| book | Test book name | Test book description | C1 | book1 | 1 |
|
||||
| chat | Test chat name | Test chat description | C1 | chat1 | 4 |
|
||||
| lesson | Test lesson name | Test lesson description | C1 | lesson1 | 4 |
|
||||
| choice | Test choice name | Test choice description | C1 | choice1 | 5 |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
|
@ -15,7 +15,7 @@ Feature: Sections can be edited and deleted in weekly sections format
|
||||
| activity | name | intro | course | idnumber | section |
|
||||
| assign | Test assignment name | Test assignment description | C1 | assign1 | 0 |
|
||||
| book | Test book name | | C1 | book1 | 1 |
|
||||
| chat | Test chat name | Test chat description | C1 | chat1 | 4 |
|
||||
| lesson | Test lesson name | Test lesson description | C1 | lesson1 | 4 |
|
||||
| choice | Test choice name | Test choice description | C1 | choice1 | 5 |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
@ -75,7 +75,7 @@ Feature: Sections can be edited and deleted in weekly sections format
|
||||
When I delete section "4"
|
||||
And I press "Delete"
|
||||
Then I should not see "29 May - 4 June"
|
||||
And I should not see "Test chat name"
|
||||
And I should not see "Test lesson name"
|
||||
And I should see "Test choice name" in the "22 May - 28 May" "section"
|
||||
And I should see "22 May - 28 May"
|
||||
|
||||
|
@ -18,6 +18,8 @@ Feature: Activity navigation
|
||||
| student1 | C1 | student |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C2 | student |
|
||||
And I enable "chat" "mod" plugin
|
||||
And I enable "survey" "mod" plugin
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | section |
|
||||
| assign | Assignment 1 | Test assignment description | C1 | assign1 | 0 |
|
||||
|
@ -16,8 +16,10 @@ Feature: Display activity and resource description
|
||||
| teacher1 | C1 | editingteacher |
|
||||
|
||||
Scenario Outline: Display activity and resource descriptions
|
||||
Given I enable "chat" "mod" plugin
|
||||
And I enable "survey" "mod" plugin
|
||||
# Generate activity/resource with description
|
||||
Given the following "activities" exist:
|
||||
And the following "activities" exist:
|
||||
| activity | course | name | intro | showdescription |
|
||||
| <acttype> | C1 | <actname> | <actname> intro | 1 |
|
||||
When I am on the "Course 1" course page logged in as teacher1
|
||||
|
@ -15,8 +15,8 @@ Feature: Force group mode in a course
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And the following "activities" exist:
|
||||
| activity | course | name |
|
||||
| chat | C1 | Chat room |
|
||||
| activity | course | name |
|
||||
| assign | C1 | Assignment 1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Settings" in current page administration
|
||||
|
@ -11,7 +11,7 @@ Feature: Course paged mode information
|
||||
| Course 1 | C1 | 0 | <courseformat> | 3 | 1 | <completion> |
|
||||
And the following "activities" exist:
|
||||
| activity | course | name | section | completion |
|
||||
| chat | C1 | Chat room | 1 | <completion> |
|
||||
| assign | C1 | Assignment | 1 | <completion> |
|
||||
| data | C1 | Database | 1 | <completion> |
|
||||
| forum | C1 | First forum | 1 | <completion> |
|
||||
| forum | C1 | Second forum | 2 | <completion> |
|
||||
@ -49,7 +49,7 @@ Feature: Course paged mode information
|
||||
| Course 1 | C1 | 0 | <courseformat> | 3 | 1 | <completion> |
|
||||
And the following "activities" exist:
|
||||
| activity | course | name | section | completion |
|
||||
| chat | C1 | Chat room | 1 | <completion> |
|
||||
| assign | C1 | Assignment | 1 | <completion> |
|
||||
| data | C1 | Database | 1 | <completion> |
|
||||
| forum | C1 | First forum | 1 | <completion> |
|
||||
| forum | C1 | Second forum | 2 | <completion> |
|
||||
|
@ -40,8 +40,8 @@ Feature: Course paged mode
|
||||
| fullname | shortname | category | format | coursedisplay | numsections | startdate |
|
||||
| Course 1 | C1 | 0 | <courseformat> | 1 | 3 | 0 |
|
||||
And the following "activities" exist:
|
||||
| activity | course | name |
|
||||
| chat | C1 | Chat room |
|
||||
| activity | course | name |
|
||||
| assign | C1 | Assignment |
|
||||
When I am on the <courseandsection> "course > section" page logged in as "admin"
|
||||
And I turn editing mode on
|
||||
And I should see <section1> in the "div.page-context-header" "css_element"
|
||||
|
@ -15,8 +15,8 @@ Feature: Restrict activities availability
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And the following "activities" exist:
|
||||
| activity | course | name |
|
||||
| chat | C1 | Test chat name |
|
||||
| activity | course | name |
|
||||
| assign | C1 | Test assign name |
|
||||
|
||||
Scenario: Activities can be added with the default permissions
|
||||
Given I log in as "teacher1"
|
||||
@ -24,13 +24,13 @@ Feature: Restrict activities availability
|
||||
| Name | Test glossary name |
|
||||
| Description | Test glossary description |
|
||||
Then I should see "Test glossary name"
|
||||
And I should see "Test chat name"
|
||||
And I should see "Test assign name"
|
||||
|
||||
@javascript @skip_chrome_zerosize
|
||||
Scenario: Activities can not be added when the admin restricts the permissions
|
||||
Given the following "role capability" exists:
|
||||
| role | editingteacher |
|
||||
| mod/chat:addinstance | prohibit |
|
||||
| mod/assign:addinstance | prohibit |
|
||||
And I log in as "admin"
|
||||
And I am on the "Course 1" "permissions" page
|
||||
And I override the system permissions of "Teacher" role with:
|
||||
@ -39,5 +39,5 @@ Feature: Restrict activities availability
|
||||
And I log in as "teacher1"
|
||||
When I am on "Course 1" course homepage with editing mode on
|
||||
And I press "Add an activity or resource"
|
||||
Then "Add a new Chat" "link" should not exist in the "Add an activity or resource" "dialogue"
|
||||
Then "Add a new Assignment" "link" should not exist in the "Add an activity or resource" "dialogue"
|
||||
Then "Add a new Glossary" "link" should not exist in the "Add an activity or resource" "dialogue"
|
||||
|
@ -16,6 +16,7 @@ Feature: View activity completion information in the chat activity
|
||||
| user | course | role |
|
||||
| student1 | C1 | student |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I enable "chat" "mod" plugin
|
||||
|
||||
Scenario: View automatic completion items
|
||||
Given I log in as "teacher1"
|
||||
|
@ -16,6 +16,7 @@ Feature: Chat calendar entries
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I enable "chat" "mod" plugin
|
||||
|
||||
Scenario Outline: Create a chat activity with repeated chat times set
|
||||
# Create an activity with repeated chat times
|
||||
|
@ -16,6 +16,7 @@ Feature: Chat reset
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I enable "chat" "mod" plugin
|
||||
And the following "activities" exist:
|
||||
| activity | name | Description | course | idnumber |
|
||||
| chat | Test chat name | Test chat description | C1 | chat1 |
|
||||
|
@ -33,6 +33,7 @@ Feature: Chat with my group
|
||||
| user1 | G1 |
|
||||
| user2 | G2 |
|
||||
| user4 | G3 |
|
||||
And I enable "chat" "mod" plugin
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | groupmode |
|
||||
| chat | Separate Chat | Chat with separate groups | C1 | chat1 | 1 |
|
||||
|
@ -14,6 +14,7 @@ Feature: Chat with no calendar capabilites
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I enable "chat" "mod" plugin
|
||||
And the following "activity" exists:
|
||||
| activity | chat |
|
||||
| course | C1 |
|
||||
|
@ -16,6 +16,7 @@ Feature: View past chat sessions
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I enable "chat" "mod" plugin
|
||||
|
||||
Scenario Outline: View past chat sessions
|
||||
# Display or hide past chat session based on example data
|
||||
|
@ -16,6 +16,7 @@ Feature: A teacher can use activity completion to track a student progress
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I enable "survey" "mod" plugin
|
||||
And I log in as "teacher1"
|
||||
|
||||
Scenario: Require survey view
|
||||
|
@ -17,6 +17,7 @@ Feature: A teacher navigates to response reports of students
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And I enable "survey" "mod" plugin
|
||||
And the following "activities" exist:
|
||||
| activity | name | course | idnumber | template |
|
||||
| survey | Test survey name | C1 | survey1 | 5 |
|
||||
|
@ -11,6 +11,7 @@ Feature: The default introduction is displayed when the activity description is
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I enable "survey" "mod" plugin
|
||||
And the following "activities" exist:
|
||||
| activity | name | course | idnumber | template |
|
||||
| survey | Test survey name | C1 | survey1 | 1 |
|
||||
|
@ -38,6 +38,7 @@ Feature: Viewing response reports by group
|
||||
| user1 | G1 |
|
||||
| user2 | G2 |
|
||||
| user4 | G3 |
|
||||
And I enable "survey" "mod" plugin
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | groupmode | template |
|
||||
| survey | Separate survey | survey with separate groups | C1 | survey1 | 1 | 5 |
|
||||
|
@ -14,6 +14,7 @@ Feature: A teacher can set three types of survey activity
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I enable "survey" "mod" plugin
|
||||
And I log in as "teacher1"
|
||||
|
||||
Scenario: Switching between the three survey types
|
||||
|
@ -14,6 +14,7 @@ Feature: When some answers are not selected, the survey should not be submitted
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| student1 | C1 | student |
|
||||
And I enable "survey" "mod" plugin
|
||||
|
||||
Scenario: Require survey view
|
||||
Given the following "activities" exist:
|
||||
|
Loading…
x
Reference in New Issue
Block a user