MDL-41940 files Fixes for behat tests

Commented out second test pending MDL-42013 visibiliy checking.
This commit is contained in:
Eric Merrill 2013-10-09 07:45:01 -04:00
parent cc0bb815ad
commit ff715cc936

View File

@ -12,6 +12,7 @@ Feature: Course files
And I log in as "admin" And I log in as "admin"
And I set the following administration settings values: And I set the following administration settings values:
| Legacy course files in new courses | 1 | | Legacy course files in new courses | 1 |
| Allow adding to legacy course files | 1 |
And I follow "Home" And I follow "Home"
And I follow "Course 1" And I follow "Course 1"
Then I should see "Legacy course files" Then I should see "Legacy course files"
@ -20,19 +21,20 @@ Feature: Course files
Then I should see "Add..." Then I should see "Add..."
Then I should see "Create folder" Then I should see "Create folder"
@javascript ##Commented out pending MDL-42013 visibility checking.
Scenario: Add legacy file disabled # @javascript
Given the following "courses" exists: # Scenario: Add legacy file disabled
| fullname | shortname | category | legacyfiles | # Given the following "courses" exists:
| Course 1 | C1 | 0 | 2 | # | fullname | shortname | category | legacyfiles |
And I log in as "admin" # | Course 1 | C1 | 0 | 2 |
And I set the following administration settings values: # And I log in as "admin"
| Legacy course files in new courses | 1 | # And I set the following administration settings values:
| Allow adding to legacy course files | 1 | # | Legacy course files in new courses | 1 |
And I follow "Home" # | Allow adding to legacy course files | 0 |
And I follow "Course 1" # And I follow "Home"
Then I should see "Legacy course files" # And I follow "Course 1"
And I follow "Legacy course files" # Then I should see "Legacy course files"
And I press "Edit legacy course files" # And I follow "Legacy course files"
Then I should not see "Add..." # And I press "Edit legacy course files"
Then I should not see "Create folder" # Then I should not see "Add..."
# Then I should not see "Create folder"