Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@core @core_contentbank @core_h5p @contentbank_h5p @_file_upload @javascript
2
Feature: Content bank custom fields
3
  In order to add/edit custom fields for content
4
  As a user
5
  I need to be able to access the custom fields
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 the following "custom field categories" exist:
12
      | name              | component        | area    | itemid |
13
      | Category for test | core_contentbank | content | 0      |
14
    And the following "custom fields" exist:
15
      | name       | category          | type | shortname |
16
      | Test field | Category for test | text | testfield |
17
    And the following "contentbank content" exist:
18
      | contextlevel | reference | contenttype     | user  | contentname       | filepath                              |
19
      | System       |           | contenttype_h5p | admin | filltheblanks.h5p | /h5p/tests/fixtures/filltheblanks.h5p |
20
    And I log in as "admin"
21
    And I am on site homepage
22
    And I turn editing mode on
23
    And the following config values are set as admin:
24
      | unaddableblocks | | theme_boost|
25
    And I add the "Navigation" block if not present
26
    And I configure the "Navigation" block
27
    And I set the following fields to these values:
28
      | Page contexts | Display throughout the entire site |
29
    And I press "Save changes"
30
 
31
  Scenario: Users can edit customfields
32
    Given I click on "Site pages" "list_item" in the "Navigation" "block"
33
    And I click on "Content bank" "link" in the "Navigation" "block"
34
    And I follow "filltheblanks.h5p"
35
    And I click on "Edit" "link"
36
    And I set the following fields to these values:
37
      | Test field | My test value |
38
    When I click on "Save" "button"
39
    Then I should see "Test field: My test value"