Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 17... Línea 17...
17
      | Course 1 | C1        | CAT1     |
17
      | Course 1 | C1        | CAT1     |
18
    And the following "course enrolments" exist:
18
    And the following "course enrolments" exist:
19
      | user     | course | role           |
19
      | user     | course | role           |
20
      | teacher1 | C1     | editingteacher |
20
      | teacher1 | C1     | editingteacher |
21
      | teacher2 | C1     | editingteacher |
21
      | teacher2 | C1     | editingteacher |
22
    And the following "blocks" exist:
22
    And the following "user private file" exists:
23
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
23
      | user     | teacher1                             |
24
      | private_files | System       | 1         | my-index        | side-post     |
24
      | filepath | h5p/tests/fixtures/filltheblanks.h5p |
25
    And I log in as "teacher1"
25
    And I log in as "teacher1"
26
    And I follow "Manage private files..."
-
 
27
    And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanager
-
 
28
    And I click on "Save changes" "button"
-
 
Línea 29... Línea 26...
29
 
26
 
30
  Scenario: Teachers can not access system level content bank
27
  Scenario: Teachers can not access system level content bank
31
    Given I turn editing mode on
28
    Given I turn editing mode on
32
    And the following config values are set as admin:
29
    And the following config values are set as admin:
Línea 126... Línea 123...
126
    And I expand "Site pages" node
123
    And I expand "Site pages" node
127
    And I click on "Content bank" "link"
124
    And I click on "Content bank" "link"
128
    And I should not see "filltheblanks.h5p"
125
    And I should not see "filltheblanks.h5p"
Línea 129... Línea 126...
129
 
126
 
130
  Scenario: Teachers can not see existing contents when libraries are not installed
127
  Scenario: Teachers can not see existing contents when libraries are not installed
-
 
128
    Given the following "user private file" exists:
-
 
129
      | user     | admin                                |
131
    Given I log out
130
      | filepath | h5p/tests/fixtures/filltheblanks.h5p |
132
    And I log in as "admin"
-
 
133
    And I follow "Manage private files..."
-
 
134
    And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanager
-
 
135
    And I click on "Save changes" "button"
131
    And I log in as "admin"
136
    And I navigate to "H5P > Manage H5P content types" in site administration
132
    And I navigate to "H5P > Manage H5P content types" in site administration
137
    And I should not see "Fill in the Blanks"
133
    And I should not see "Fill in the Blanks"
138
    When I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "H5P content type" filemanager
134
    When I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "H5P content type" filemanager
139
    And I click on "Upload H5P content types" "button" in the "#fitem_id_uploadlibraries" "css_element"
135
    And I click on "Upload H5P content types" "button" in the "#fitem_id_uploadlibraries" "css_element"