Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 19... Línea 19...
19
    And the following "activities" exist:
19
    And the following "activities" exist:
20
      | activity | name               | intro                     | course | idnumber   | section |
20
      | activity | name               | intro                     | course | idnumber   | section |
21
      | data     | Test database name | Test database description | C1     | database1  | 1       |
21
      | data     | Test database name | Test database description | C1     | database1  | 1       |
22
    And the following config values are set as admin:
22
    And the following config values are set as admin:
23
      | backup_import_activities | 0 | backup |
23
      | backup_import_activities | 0 | backup |
-
 
24
    And the following "core_badges > Badges" exist:
-
 
25
      | name            | course | description       | image                        | status | type |
-
 
26
      | My course badge | C1     | Badge description | badges/tests/behat/badge.png | active | 2    |
-
 
27
    And the following "core_badges > Criterias" exist:
-
 
28
      | badge             | role           |
-
 
29
      | My course badge   | editingteacher |
24
    And I log in as "teacher1"
30
    And I log in as "teacher1"
25
    And I am on "Course 1" course homepage with editing mode on
31
    And I am on "Course 1" course homepage with editing mode on
26
    And I duplicate "Test database name" activity
32
    And I duplicate "Test database name" activity
27
    And I should see "Test database name (copy)"
33
    And I should see "Test database name (copy)"
28
    And I wait until section "1" is available
34
    And I wait until section "1" is available
Línea 36... Línea 42...
36
      | Description | Duplicated database description |
42
      | Description | Duplicated database description |
37
    And I press "Save and return to course"
43
    And I press "Save and return to course"
38
    Then I should see "Original database name" in the "Section 1" "section"
44
    Then I should see "Original database name" in the "Section 1" "section"
39
    And I should see "Duplicated database name" in the "Section 1" "section"
45
    And I should see "Duplicated database name" in the "Section 1" "section"
40
    And "Original database name" "link" should appear before "Duplicated database name" "link"
46
    And "Original database name" "link" should appear before "Duplicated database name" "link"
-
 
47
    # Check that badges are not duplicated. If they are duplicated, they will appear as "Not available".
-
 
48
    And I navigate to "Badges" in current page administration
-
 
49
    And the following should not exist in the "reportbuilder-table" table:
-
 
50
      | Name             | Badge status  |
-
 
51
      | My course badge  | Not available |