Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 1... Línea 1...
1
@core @core_contentbank @core_h5p @contentbank_h5p @_file_upload @_switch_iframe @javascript
1
@core @core_contentbank @core_h5p @contentbank_h5p @_switch_iframe @javascript
2
Feature: Confirm content bank events are triggered
2
Feature: Confirm content bank events are triggered
3
  In order to log content bank actions
3
  In order to log content bank actions
4
  As an admin
4
  As an admin
5
  I need to be able to check triggered events
5
  I need to be able to check triggered events
Línea 6... Línea 6...
6
 
6
 
7
  Background:
-
 
8
    Given the following "blocks" exist:
-
 
9
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
-
 
10
      | private_files | System       | 1         | my-index        | side-post     |
-
 
11
    And I log in as "admin"
-
 
12
    And I navigate to "H5P > Manage H5P content types" in site administration
-
 
13
    And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "H5P content type" filemanager
-
 
14
    And I click on "Upload H5P content types" "button" in the "#fitem_id_uploadlibraries" "css_element"
7
  Background:
15
    And the following "courses" exist:
8
    Given the following "courses" exist:
16
      | fullname | shortname | category |
9
      | fullname | shortname | category |
17
      | Course 1 | C1        | 0        |
10
      | Course 1 | C1        | 0        |
18
    And the following "contentbank content" exist:
11
    And the following "contentbank content" exist:
19
      | contextlevel | reference | contenttype     | user  | contentname | filepath                                   |
12
      | contextlevel | reference | contenttype     | user  | contentname | filepath                                   |
20
      | Course       | C1        | contenttype_h5p | admin | Existing    | /h5p/tests/fixtures/filltheblanks.h5p      |
-
 
21
    And I follow "Dashboard"
13
      | Course       | C1        | contenttype_h5p | admin | Existing    | /h5p/tests/fixtures/filltheblanks.h5p      |
22
    And I follow "Manage private files..."
-
 
23
    And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanager
14
    And the following "user private file" exists:
24
    And I click on "Save changes" "button"
15
      | user     | admin                                |
25
    And I am on "Course 1" course homepage with editing mode on
16
      | filepath | h5p/tests/fixtures/filltheblanks.h5p |
26
    And the following config values are set as admin:
17
    And the following config values are set as admin:
-
 
18
      | unaddableblocks | | theme_boost|
-
 
19
    And I log in as "admin"
27
      | unaddableblocks | | theme_boost|
20
    And I am on "Course 1" course homepage with editing mode on
Línea 28... Línea 21...
28
    And I add the "Navigation" block if not present
21
    And I add the "Navigation" block if not present
29
 
22
 
30
  Scenario: Content created and uploaded events when uploading a content file
23
  Scenario: Content created and uploaded events when uploading a content file