Commit | Line | Data |
---|---|---|
81ad5438 | 1 | @core @core_files |
cc0bb815 EM |
2 | Feature: Course files |
3 | In order to add legacy files | |
4 | As a user | |
5 | I need to upload files | |
6 | ||
7 | @javascript | |
8 | Scenario: Add legacy files | |
9 | Given the following "courses" exists: | |
10 | | fullname | shortname | category | legacyfiles | | |
11 | | Course 1 | C1 | 0 | 2 | | |
12 | And I log in as "admin" | |
13 | And I set the following administration settings values: | |
14 | | Legacy course files in new courses | 1 | | |
ff715cc9 | 15 | | Allow adding to legacy course files | 1 | |
53d79266 | 16 | When I follow "Home" |
cc0bb815 EM |
17 | And I follow "Course 1" |
18 | Then I should see "Legacy course files" | |
19 | And I follow "Legacy course files" | |
20 | And I press "Edit legacy course files" | |
63950e4d DM |
21 | And "Add..." "link" should be visible |
22 | And "Create folder" "link" should be visible | |
cc0bb815 | 23 | |
89376590 DM |
24 | @javascript |
25 | Scenario: Add legacy file disabled | |
26 | Given the following "courses" exists: | |
27 | | fullname | shortname | category | legacyfiles | | |
28 | | Course 1 | C1 | 0 | 2 | | |
29 | And I log in as "admin" | |
30 | And I set the following administration settings values: | |
31 | | Legacy course files in new courses | 1 | | |
32 | | Allow adding to legacy course files | 0 | | |
33 | When I follow "Home" | |
34 | And I follow "Course 1" | |
35 | Then I should see "Legacy course files" | |
36 | And I follow "Legacy course files" | |
37 | And I press "Edit legacy course files" | |
63950e4d DM |
38 | And "Add..." "link" should not be visible |
39 | And "Create folder" "link" should not be visible |