Feature: Test that teachers can add the dynamo activity and students can view the survey.
Given the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
And the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | email@example.com |
| student1 | Student | 1 | firstname.lastname@example.org |
And the following "course enrolments" exist:
| course | user | role |
| C1 | teacher1 | editingteacher |
| C1 | student1 | student |
And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
Scenario: Teachers can add the dynamo activity
When I add a "Dynamo" to section "1" and I fill the form with:
| Name | Test name |
| Description | Test dynamo description |
| ID number | TESTNAME |
And I turn editing mode off
Then I should not see "Adding a new"
And I turn editing mode on
And I open "Test name" actions menu
And I click on "Edit settings" "link" in the "Test name" activity
And I expand all fieldsets
And the field "Name" matches value "Test name"
And the field "ID number" matches value "TESTNAME"
And I get this error.
That I've to provide some 'special' functions to create records in DB ?
Any help will be welcome. I'm lost. I'll continue to read documentation to find a way.