forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-40600-master-duplicate_section' of https://github.c…
- Loading branch information
Showing
9 changed files
with
151 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@core @core_course @core_courseformat | ||
Feature: Duplicate a section | ||
In order to set up my course contents quickly | ||
As a teacher | ||
I need to duplicate sections inside the same course | ||
|
||
Background: | ||
Given the following "course" exists: | ||
| fullname | Course 1 | | ||
| shortname | C1 | | ||
| category | 0 | | ||
| enablecompletion | 1 | | ||
| numsections | 4 | | ||
And the following "activities" exist: | ||
| activity | name | intro | course | idnumber | section | | ||
| assign | Activity sample 1 | Test assignment description | C1 | sample1 | 1 | | ||
| book | Activity sample 2 | Test book description | C1 | sample2 | 1 | | ||
| choice | Activity sample 3 | Test choice description | C1 | sample3 | 2 | | ||
And I log in as "admin" | ||
And I am on "Course 1" course homepage with editing mode on | ||
|
||
@javascript | ||
Scenario: Duplicate section | ||
Given I open section "1" edit menu | ||
When I click on "Duplicate" "link" in the "Topic 1" "section" | ||
Then I should see "Activity sample 2" in the "Topic 2" "section" | ||
|
||
@javascript | ||
Scenario: Duplicate a named section | ||
Given I set the field "Edit topic name" in the "Topic 1" "section" to "New name" | ||
And I should see "New name" in the "New name" "section" | ||
When I open section "1" edit menu | ||
And I click on "Duplicate" "link" in the "New name" "section" | ||
Then I should see "Activity sample 2" in the "New name (copy)" "section" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters