Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_files
2
Feature: View licence links
3
  In order to get select the applicable licence when uploading a file
4
  As a user
5
  I need to be able to navigate to a page containing licence terms from the file manager
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
 
12
  @javascript
13
  Scenario: Uploading a file displays licence list modal
14
    Given I log in as "admin"
15
    And I follow "Manage private files..."
16
    And I follow "Add..."
17
    And I follow "Upload a file"
18
    And I click on "Help with Choose licence" "icon" in the "File picker" "dialogue"
19
    Then I should see "Follow these links for further information on the available licence options:"
20
 
21
  @javascript @_file_upload
22
  Scenario: Altering a file should display licence list modal
23
    Given I log in as "admin"
24
    And I follow "Manage private files..."
25
    And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
26
    And I press "Save changes"
27
    And I follow "Manage private files..."
28
    And I click on "empty.txt" "link" in the "Manage private files" "dialogue"
29
    And I click on "Help with Choose licence" "icon"
30
    Then I should see "Follow these links for further information on the available licence options:"
31
 
32
  @javascript @_file_upload
33
  Scenario: Recent files should display licence list modal
34
    Given I log in as "admin"
35
    And I follow "Manage private files..."
36
    And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
37
    And I press "Save changes"
38
    And I follow "Manage private files..."
39
    And I follow "Add..."
40
    And I click on "Recent files" "link" in the "File picker" "dialogue"
41
    And I click on "empty.txt" "link" in the "File picker" "dialogue"
42
    And I click on "Help with Choose licence" "icon" in the ".fp-setlicense" "css_element"
43
    Then I should see "Follow these links for further information on the available licence options:"
44
 
45
  @javascript @_file_upload
46
  Scenario: Private files should display licence list modal
47
    Given I log in as "admin"
48
    And I follow "Manage private files..."
49
    And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
50
    And I press "Save changes"
51
    And I follow "Manage private files..."
52
    And I follow "Add..."
53
    And I click on "Private files" "link" in the "File picker" "dialogue"
54
    And I click on "empty.txt" "link" in the "File picker" "dialogue"
55
    And I click on "Help with Choose licence" "icon" in the ".fp-setlicense" "css_element"
56
    Then I should see "Follow these links for further information on the available licence options:"