Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@local @local_downloadcenter @_file_upload @amc
2
Feature: Check File in Download Center
3
 
4
  Background:
5
    Given the following "users" exist:
6
      | username | firstname | lastname | email |
7
      | teacher1 | Tina | Teacher1 | teacher1@example.com |
8
      | student1 | Sam1 | Student1 | student1@example.com |
9
    And the following "courses" exist:
10
      | fullname | shortname | category |
11
      | Course 1 | C1 | 0 |
12
    And the following "course enrolments" exist:
13
      | user | course | role |
14
      | teacher1 | C1 | editingteacher |
15
      | student1 | C1 | student |
16
    And the following "activities" exist:
17
      | activity | name                 | intro                   | course | idnumber | assignsubmission_onlinetext_enabled |
18
      | assign   | Test assignment name | Submit your online text | C1     | assign1  | 1                                   |
19
 
20
  @javascript
21
  Scenario: Check File in Download Center
22
    Given I log in as "teacher1"
23
    And I am on "Course 1" course homepage with editing mode on
24
    And I add a "File" to section "2" and I fill the form with:
25
      | Name | Test File |
26
      | Description | Test Description|
27
    And I upload "lib/tests/fixtures/gd-logo.png" file to "Select files" filemanager
28
    And I press "Save and return to course"
29
    And I follow "Download center"
30
    Then I should see "Test File"
31
    And I log out
32
    And I log in as "student1"
33
    And I am on "Course 1" course homepage
34
    And I follow "Download center"
35
    Then I should see "Test File"