1 |
efrain |
1 |
@mod @mod_questionnaire
|
|
|
2 |
Feature: Add a questionnaire activity
|
|
|
3 |
In order to conduct surveys of the users in a course
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to add a questionnaire activity to a moodle course
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: Add a questionnaire to a course without questions
|
|
|
9 |
Given the following "users" exist:
|
|
|
10 |
| username | firstname | lastname | email |
|
|
|
11 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
12 |
| student1 | Student | 1 | student1@example.com |
|
|
|
13 |
And the following "courses" exist:
|
|
|
14 |
| fullname | shortname | category |
|
|
|
15 |
| Course 1 | C1 | 0 |
|
|
|
16 |
And the following "course enrolments" exist:
|
|
|
17 |
| user | course | role |
|
|
|
18 |
| teacher1 | C1 | editingteacher |
|
|
|
19 |
| student1 | C1 | student |
|
|
|
20 |
And the following "activities" exist:
|
|
|
21 |
| activity | name | description | course | idnumber |
|
|
|
22 |
| questionnaire | Test questionnaire | Test questionnaire description | C1 | questionnaire0 |
|
|
|
23 |
And I log in as "student1"
|
|
|
24 |
And I am on "Course 1" course homepage
|
|
|
25 |
And I follow "Test questionnaire"
|
|
|
26 |
Then I should see "This questionnaire does not contain any questions."
|