Skip to content

Commit

Permalink
MDL-41940 files Fixes for behat tests
Browse files Browse the repository at this point in the history
Commented out second test pending MDL-42013 visibiliy checking.
  • Loading branch information
ericmerrill committed Oct 9, 2013
1 parent cc0bb81 commit ff715cc
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions files/tests/behat/course_files.feature
Expand Up @@ -12,6 +12,7 @@ Feature: Course files
And I log in as "admin"
And I set the following administration settings values:
| Legacy course files in new courses | 1 |
| Allow adding to legacy course files | 1 |
And I follow "Home"
And I follow "Course 1"
Then I should see "Legacy course files"
Expand All @@ -20,19 +21,20 @@ Feature: Course files
Then I should see "Add..."
Then I should see "Create folder"

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

0 comments on commit ff715cc

Please sign in to comment.