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 @javascript
1
@core @core_contentbank @core_h5p @contentbank_h5p @javascript
2
Feature: Store the content bank view preference
2
Feature: Store the content bank view preference
3
  In order to consistantly view the content bank in icons or details view
3
  In order to consistantly view the content bank in icons or details view
4
  As an admin
4
  As an admin
5
  I need to be able to store my view preference
5
  I need to be able to store my view preference
Línea 6... Línea 6...
6
 
6
 
7
  Background:
7
  Background:
8
    Given the following "blocks" exist:
8
    Given the following "user private files" exist:
-
 
9
      | user  | filepath                             |
9
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
10
      | admin | h5p/tests/fixtures/filltheblanks.h5p |
10
      | private_files | System       | 1         | my-index        | side-post     |
11
      | admin | h5p/tests/fixtures/greeting-card.h5p |
11
    And I log in as "admin"
-
 
12
    And I follow "Manage private files..."
-
 
13
    And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanager
-
 
14
    And I upload "h5p/tests/fixtures/greeting-card.h5p" file to "Files" filemanager
-
 
15
    And I click on "Save changes" "button"
12
    And I log in as "admin"
16
    And I am on site homepage
13
    And I am on site homepage
17
    And I turn editing mode on
14
    And I turn editing mode on
18
    And the following config values are set as admin:
15
    And the following config values are set as admin:
19
      | unaddableblocks | | theme_boost|
16
      | unaddableblocks | | theme_boost|
Línea 53... Línea 50...
53
    And I follow "greetingcard.h5p"
50
    And I follow "greetingcard.h5p"
54
    And I click on "Content bank" "link"
51
    And I click on "Content bank" "link"
55
    And I should not see "Last modified"
52
    And I should not see "Last modified"
Línea 56... Línea 53...
56
 
53
 
57
  Scenario: Display the number of times a content is used in file details view
-
 
58
    Given I follow "Dashboard"
54
  Scenario: Display the number of times a content is used in file details view
59
    And I follow "Manage private files..."
55
    Given I am on the "My private files" page
60
    And I click on "Add..." "button"
56
    And I click on "Add..." "button"
61
    And I select "Content bank" repository in file picker
57
    And I select "Content bank" repository in file picker
62
    And I click on "fib.h5p" "file" in repository content area
58
    And I click on "fib.h5p" "file" in repository content area
63
    And I click on "Link to the file" "radio"
59
    And I click on "Link to the file" "radio"