Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_backup
2
Feature: Import course's content's twice
3
  In order to import content from a course more than one
4
  As a teacher
5
  I need to confirm that errors will not happen
6
 
7
  Background:
8
    Given the following config values are set as admin:
9
      | enableglobalsearch | 1 |
10
    And the following "courses" exist:
11
      | fullname | shortname | category |
12
      | Course 1 | C1        | 0        |
13
      | Course 2 | C2        | 0        |
14
    And the following "users" exist:
15
      | username | firstname | lastname | email |
16
      | teacher1 | Teacher | 1 | teacher1@example.com |
17
    And the following "course enrolments" exist:
18
      | user | course | role |
19
      | teacher1 | C1 | editingteacher |
20
      | teacher1 | C2 | editingteacher |
21
    And the following "blocks" exist:
22
      | blockname | contextlevel | reference | pagetypepattern | defaultregion |
23
      | online_users | Course       | C1        | course-view-*   | site-post     |
24
    And the following "activities" exist:
25
      | activity   | name      | course | idnumber |
26
      | quiz       | Test quiz | C1     | quiz1    |
27
    And I log in as "teacher1"
28
 
29
  Scenario: Import course's contents to another course
30
    Given I am on "Course 2" course homepage
31
    And I should not see "Online users"
32
    And I should not see "Test quiz"
33
    And I import "Course 1" course into "Course 2" course using this options:
34
    And I am on "Course 2" course homepage
35
    And I should see "Online users"
36
    And I should see "Test quiz"
37
    When I import "Course 1" course into "Course 2" course using this options:
38
    And I am on "Course 2" course homepage
39
    Then I should see "Online users"
40
    And I should see "Test quiz"