MDL-38817 behat: New test

According to MDLQA-50, in a survey activity
a teacher can set three types of survey
This commit is contained in:
David Monllao 2013-04-01 13:57:01 +08:00
parent 1c00d6f636
commit 424f56fc90

View File

@ -0,0 +1,36 @@
@mod_survey
Feature: A teacher can set three types of survey activity
In order to use verified survey instruments
As a moodle teacher
I need to set survey activities and select which survey type suits my needs
Scenario: Switching between the three survey types
Given the following "users" exists:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
And the following "courses" exists:
| fullname | shortname | format |
| Course 1 | C1 | topics |
And the following "course enrolments" exists:
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "teacher1"
And I follow "Course 1"
And I turn editing mode on
When I add a "Survey" to section "1" and I fill the form with:
| Name | Test survey name |
| Survey type | ATTLS (20 item version) |
| Description | Test survey description |
And I follow "Test survey name"
Then I should see "Attitudes Towards Thinking and Learning"
And I follow "Edit settings"
And I fill the moodle form with:
| Survey type | Critical incidents |
And I press "Save and display"
And I should see "At what moment in class were you most engaged as a learner?"
And I follow "Edit settings"
And I fill the moodle form with:
| Survey type | COLLES (Preferred and Actual) |
And I press "Save and display"
And I should see "In this online unit..."
And I should see "my learning focuses on issues that interest me."