source: moodle/trunk/fuentes/backup/util/ui/tests/behat/import_course.feature @ 1331

Last change on this file since 1331 was 1331, checked in by jrpelegrina, 3 years ago

Updated to moodle 3.0.3

File size: 1.4 KB
Line 
1@core @core_backup
2Feature: Import course's contents into another course
3  In order to move and copy contents between courses
4  As a teacher
5  I need to import a course contents into another course selecting what I want to import
6
7  Scenario: Import course's contents to another course
8    Given the following "courses" exist:
9      | fullname | shortname | category |
10      | Course 1 | C1 | 0 |
11      | Course 2 | C2 | 0 |
12    And the following "users" exist:
13      | username | firstname | lastname | email |
14      | teacher1 | Teacher | 1 | teacher1@example.com |
15    And the following "course enrolments" exist:
16      | user | course | role |
17      | teacher1 | C1 | editingteacher |
18      | teacher1 | C2 | editingteacher |
19    And I log in as "teacher1"
20    And I follow "Course 1"
21    And I turn editing mode on
22    And I add a "Database" to section "1" and I fill the form with:
23      | Name | Test database name |
24      | Description | Test database description |
25    And I add a "Forum" to section "2" and I fill the form with:
26      | Forum name | Test forum name |
27      | Description | Test forum description |
28    And I add the "Comments" block
29    And I add the "Recent blog entries" block
30    When I import "Course 1" course into "Course 2" course using this options:
31    Then I should see "Test database name"
32    And I should see "Test forum name"
33    And I should see "Comments" in the "Comments" "block"
34    And I should see "Recent blog entries"
Note: See TracBrowser for help on using the repository browser.