Skip to content

Commit

Permalink
MDL-42013 behat: Uncommenting @core_files test
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao authored and danpoltawski committed Oct 10, 2013
1 parent e9af3ed commit 8937659
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions files/tests/behat/course_files.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@ Feature: Course files
And I should see "Add..."
And I should 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 |
# When 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"
# And I should not see "Add..."
# And I should not 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 | 0 |
When 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"
And I should not see "Add..."
And I should not see "Create folder"

0 comments on commit 8937659

Please sign in to comment.