1 |
efrain |
1 |
@mod @mod_survey
|
|
|
2 |
Feature: The default introduction is displayed when the activity description is empty
|
|
|
3 |
|
|
|
4 |
Background:
|
|
|
5 |
Given the following "users" exist:
|
|
|
6 |
| username | firstname | lastname | email |
|
|
|
7 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
8 |
And the following "courses" exist:
|
|
|
9 |
| fullname | shortname | format |
|
|
|
10 |
| Course 1 | C1 | topics |
|
|
|
11 |
And the following "course enrolments" exist:
|
|
|
12 |
| user | course | role |
|
|
|
13 |
| teacher1 | C1 | editingteacher |
|
|
|
14 |
And I enable "survey" "mod" plugin
|
|
|
15 |
And the following "activities" exist:
|
|
|
16 |
| activity | name | course | idnumber | template |
|
|
|
17 |
| survey | Test survey name | C1 | survey1 | 1 |
|
|
|
18 |
|
|
|
19 |
Scenario: Display the default survey introduction when activity description is empty
|
|
|
20 |
Given I am on the "Test survey name" "survey activity" page logged in as "teacher1"
|
|
|
21 |
And I should see "Test survey 1"
|
|
|
22 |
When I am on the "Test survey name" "survey activity editing" page
|
|
|
23 |
And I set the following fields to these values:
|
|
|
24 |
| Description | |
|
|
|
25 |
And I press "Save and display"
|
|
|
26 |
Then I should see "The purpose of this survey is to help us understand"
|
|
|
27 |
And I am on the "Test survey name" "survey activity editing" page
|
|
|
28 |
And I set the following fields to these values:
|
|
|
29 |
| Survey type | ATTLS (20 item version) |
|
|
|
30 |
And I press "Save and display"
|
|
|
31 |
And I should see "The purpose of this questionnaire is to help us evaluate"
|