Skip to content

Commit

Permalink
MDL-47960 behat: fix my private files navigation
Browse files Browse the repository at this point in the history
Caused by the my private files link being in user menu too..
  • Loading branch information
danpoltawski authored and marinaglancy committed Oct 30, 2014
1 parent 4f82670 commit 6469803
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions repository/recent/tests/behat/add_recent.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Feature: Recent files repository lists the recently used files
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
And I expand "My profile" node
And I follow "My private files"
And I navigate to "My private files" node in "My profile"
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
And I upload "lib/tests/fixtures/upload_users.csv" file to "Files" filemanager
And I press "Save changes"
Expand Down
3 changes: 1 addition & 2 deletions repository/tests/behat/cancel_add_file.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Feature: A selected file can be cancelled
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
And I expand "My profile" node
And I follow "My private files"
And I navigate to "My private files" node in "My profile"
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
And I press "Save changes"
And I am on homepage
Expand Down
3 changes: 1 addition & 2 deletions repository/tests/behat/create_shortcut.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Feature: Create shortcuts
| user | course | role |
| teacher1 | C1 | editingteacher |
When I log in as "teacher1"
And I expand "My profile" node
And I follow "My private files"
And I navigate to "My private files" node in "My profile"
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
Then I should see "empty.txt" in the "div.fp-content" "css_element"
And I press "Save changes"
Expand Down
3 changes: 1 addition & 2 deletions repository/tests/behat/delete_files.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ Feature: Delete files and folders from the file manager
@javascript @_bug_phantomjs
Scenario: Delete a file and a folder
Given I log in as "admin"
And I expand "My profile" node
And I follow "My private files"
And I navigate to "My private files" node in "My profile"
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
And I create "Delete me" folder in "Files" filemanager
And I press "Save changes"
Expand Down
3 changes: 1 addition & 2 deletions repository/tests/behat/overwrite_file.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Feature: Overwrite file feature
| user | course | role |
| teacher1 | C1 | editingteacher |
When I log in as "teacher1"
And I expand "My profile" node
And I follow "My private files"
And I navigate to "My private files" node in "My profile"
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
Then I should see "1" elements in "Files" filemanager
And I upload and overwrite "lib/tests/fixtures/empty.txt" file to "Files" filemanager
Expand Down

0 comments on commit 6469803

Please sign in to comment.