[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @core @core_backup 2 Feature: Duplicate activities 3 In order to set up my course contents quickly 4 As a teacher 5 I need to duplicate activities inside the same course 6 7 @javascript 8 Scenario: Duplicate an activity 9 Given the following "courses" exist: 10 | fullname | shortname | category | 11 | Course 1 | C1 | 0 | 12 And the following "users" exist: 13 | username | firstname | lastname | email | 14 | teacher1 | Teacher | 1 | [email protected] | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 And I log in as "teacher1" 19 And I follow "Course 1" 20 And I turn editing mode on 21 And I add a "Database" to section "1" and I fill the form with: 22 | Name | Test database name | 23 | Description | Test database description | 24 And I duplicate "Test database name" activity 25 And I wait until section "1" is available 26 And I open "Test database name" actions menu 27 And I click on "Edit settings" "link" in the "Test database name" activity 28 And I set the following fields to these values: 29 | Name | Original database name | 30 And I press "Save and return to course" 31 And I open "Test database name" actions menu 32 And I click on "Edit settings" "link" in the "Test database name" activity 33 And I set the following fields to these values: 34 | Name | Duplicated database name | 35 | Description | Duplicated database description | 36 And I press "Save and return to course" 37 Then I should see "Original database name" in the "#section-1" "css_element" 38 And I should see "Duplicated database name" in the "#section-1" "css_element" 39 And "Original database name" "link" should appear before "Duplicated database name" "link"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |