Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_private_files @_file_upload @javascript
2
Feature: The private files block allows users to store files privately in moodle on dashboard
3
  In order to store a private file in moodle
4
  As a user
5
  I can upload the file to my private files area using the private files block on the dashboard
6
 
7
  Scenario: Upload a file to the private files block from the dashboard
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | teacher1 | Teacher | 1 | teacher1@example.com |
11
    And the following "blocks" exist:
12
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
13
      | private_files | System       | 1         | my-index        | side-post     |
14
    And I log in as "teacher1"
15
    And "Private files" "block" should exist
16
    And I should see "No files available" in the "Private files" "block"
17
    When I follow "Manage private files..."
18
    And I upload "blocks/private_files/tests/fixtures/testfile.txt" file to "Files" filemanager
19
    And I press "Save changes"
20
    Then I should see "testfile.txt" in the "Private files" "block"