Autoría | Ultima modificación | Ver Log |
@core @core_courseFeature: Add activities to coursesIn order to provide tools for students learningAs a teacherI need to add activites to a courseBackground:Given the following "courses" exist:| fullname | shortname | format || Course 1 | Course 1 | topics |Scenario: Add an activity to a courseGiven I log in as "admin"When I add a data activity to course "Course 1" section "3" and I fill the form with:| Name | Test name || Description | Test database description || ID number | TESTNAME || Allow comments on entries | Yes || Force language | English |Then I should not see "Adding a new"And I am on the "Test name" "data activity editing" pageAnd the following fields match these values:| Name | Test name || ID number | TESTNAME || Allow comments on entries | Yes || Force language | English ‎(en)‎ |Scenario: Add an activity supplying only the nameGiven I log in as "admin"When I add a data activity to course "Course 1" section "3" and I fill the form with:| Name | Test name |Then I should see "Test name"Scenario: Set activity description to required then add an activity supplying only the nameGiven the following config values are set as admin:| requiremodintro | 1 |And I log in as "admin"And I add a data activity to course "Course 1" section "3" and I fill the form with:| Name | Test name |Then I should see "Required"Scenario: The activity description should use the user's preferred editor on creationGiven the following "user preferences" exist:| user | preference | value || admin | htmleditor | textarea |And I am logged in as adminWhen I add a data activity to course "Course 1" section "3"Then the field "Description format" matches value "0"Scenario: The activity description should preserve the format used once edited (markdown version)Given the following "activities" exist:| activity | name | intro | introformat | course || assign | A4 | Desc 4 | 4 | Course 1 |And the following "user preferences" exist:| user | preference | value || admin | htmleditor | textarea |And I am logged in as adminWhen I am on the "A4" "assign activity editing" pageThen the field "Description format" matches value "4"Scenario: The activity description should preserve the format used once edited (plain text version)Given the following "activities" exist:| activity | name | intro | introformat | course || assign | A2 | Desc 2 | 2 | Course 1 |And the following "user preferences" exist:| user | preference | value || admin | htmleditor | textarea |And I am logged in as adminWhen I am on the "A2" "assign activity editing" pageThen the field "Description format" matches value "2"